Description:
[grader] +migration, change compiler message type in test_requests to text
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@145 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r68:131234dac624 - - 2 files changed: 11 inserted, 2 deleted
@@ -0,0 +1,9 | |||||
|
|
1 | + class ChangeCompilerMessageTypeTestRequest < ActiveRecord::Migration | ||
|
|
2 | + def self.up | ||
|
|
3 | + change_column :test_requests, :compiler_message, :text | ||
|
|
4 | + end | ||
|
|
5 | + | ||
|
|
6 | + def self.down | ||
|
|
7 | + change_column :test_requests, :compiler_message, :string | ||
|
|
8 | + end | ||
|
|
9 | + end |
@@ -9,7 +9,7 | |||||
|
9 | # |
|
9 | # |
|
10 | # It's strongly recommended to check this file into your version control system. |
|
10 | # It's strongly recommended to check this file into your version control system. |
|
11 |
|
11 | ||
|
12 |
- ActiveRecord::Schema.define(:version => 2 |
|
12 | + ActiveRecord::Schema.define(:version => 21) do |
|
13 |
|
13 | ||
|
14 | create_table "grader_processes", :force => true do |t| |
|
14 | create_table "grader_processes", :force => true do |t| |
|
15 | t.string "host", :limit => 20 |
|
15 | t.string "host", :limit => 20 |
@@ -107,7 +107,7 | |||||
|
107 | t.datetime "updated_at" |
|
107 | t.datetime "updated_at" |
|
108 | t.datetime "submitted_at" |
|
108 | t.datetime "submitted_at" |
|
109 | t.datetime "compiled_at" |
|
109 | t.datetime "compiled_at" |
|
110 |
- t. |
|
110 | + t.text "compiler_message" |
|
111 | t.datetime "graded_at" |
|
111 | t.datetime "graded_at" |
|
112 | t.string "grader_comment" |
|
112 | t.string "grader_comment" |
|
113 | t.datetime "created_at" |
|
113 | t.datetime "created_at" |
You need to be logged in to leave comments.
Login now