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 |
@@ -6,13 +6,13 | |||
|
6 | 6 | # to create the application database on another system, you should be using db:schema:load, not running |
|
7 | 7 | # all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations |
|
8 | 8 | # you'll amass, the slower it'll run and the greater likelihood for issues). |
|
9 | 9 | # |
|
10 | 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 | 14 | create_table "grader_processes", :force => true do |t| |
|
15 | 15 | t.string "host", :limit => 20 |
|
16 | 16 | t.integer "pid" |
|
17 | 17 | t.string "mode" |
|
18 | 18 | t.boolean "active" |
@@ -104,13 +104,13 | |||
|
104 | 104 | t.string "output_file_name" |
|
105 | 105 | t.string "running_stat" |
|
106 | 106 | t.integer "status" |
|
107 | 107 | t.datetime "updated_at" |
|
108 | 108 | t.datetime "submitted_at" |
|
109 | 109 | t.datetime "compiled_at" |
|
110 |
- t. |
|
|
110 | + t.text "compiler_message" | |
|
111 | 111 | t.datetime "graded_at" |
|
112 | 112 | t.string "grader_comment" |
|
113 | 113 | t.datetime "created_at" |
|
114 | 114 | end |
|
115 | 115 | |
|
116 | 116 | add_index "test_requests", ["user_id", "problem_id"], :name => "index_test_requests_on_user_id_and_problem_id" |
You need to be logged in to leave comments.
Login now