Description:
lengthen host field in grader_process
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r602:ff0f3aaa7e09 - - 2 files changed: 13 inserted, 4 deleted
@@ -0,0 +1,9 | |||||
|
|
1 | + class ModifyGraderProcess < ActiveRecord::Migration | ||
|
|
2 | + def up | ||
|
|
3 | + change_column :grader_processes, :host, :string | ||
|
|
4 | + end | ||
|
|
5 | + | ||
|
|
6 | + def down | ||
|
|
7 | + change_column :grader_processes, :host, :string, limit: 20 | ||
|
|
8 | + end | ||
|
|
9 | + end |
@@ -11,7 +11,7 | |||||
|
11 | # |
|
11 | # |
|
12 | # It's strongly recommended to check this file into your version control system. |
|
12 | # It's strongly recommended to check this file into your version control system. |
|
13 |
|
13 | ||
|
14 |
- ActiveRecord::Schema.define(:version => 201 |
|
14 | + ActiveRecord::Schema.define(:version => 20161008050135) do |
|
15 |
|
15 | ||
|
16 | create_table "announcements", :force => true do |t| |
|
16 | create_table "announcements", :force => true do |t| |
|
17 | t.string "author" |
|
17 | t.string "author" |
@@ -66,12 +66,12 | |||||
|
66 | end |
|
66 | end |
|
67 |
|
67 | ||
|
68 | create_table "grader_processes", :force => true do |t| |
|
68 | create_table "grader_processes", :force => true do |t| |
|
69 |
- t.string "host" |
|
69 | + t.string "host" |
|
70 | t.integer "pid" |
|
70 | t.integer "pid" |
|
71 | t.string "mode" |
|
71 | t.string "mode" |
|
72 | t.boolean "active" |
|
72 | t.boolean "active" |
|
73 |
- t.datetime "created_at", |
|
73 | + t.datetime "created_at", :null => false |
|
74 |
- t.datetime "updated_at", |
|
74 | + t.datetime "updated_at", :null => false |
|
75 | t.integer "task_id" |
|
75 | t.integer "task_id" |
|
76 | t.string "task_type" |
|
76 | t.string "task_type" |
|
77 | t.boolean "terminated" |
|
77 | t.boolean "terminated" |
You need to be logged in to leave comments.
Login now