Show More
Commit Description:
update migration
Commit Description:
update migration
References:
File last commit:
Show/Diff file:
Action:
db/migrate/014_create_grader_processes.rb
| 16 lines
| 466 B
| text/x-ruby
| RubyLexer
|
r822 | class CreateGraderProcesses < ActiveRecord::Migration[4.2] | |||
|
r29 | def self.up | ||
r822 | create_table :grader_processes, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | |||
|
r29 | t.column :ip, :string, :limit => 20 | ||
t.column :pid, :integer | ||||
t.column :mode, :string | ||||
t.column :active, :boolean | ||||
t.timestamps | ||||
end | ||||
add_index :grader_processes, ["ip","pid"] | ||||
end | ||||
def self.down | ||||
drop_table :grader_processes | ||||
end | ||||
end | ||||