Description:
[web] added runstat columns to test_request
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@161 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
r81:bbc4d8cd0ec5 - - 2 files changed: 17 inserted, 1 deleted
@@ -0,0 +1,13 | |||||
|
|
1 | + class AddRunstatColumnsToTestRequest < ActiveRecord::Migration | ||
|
|
2 | + def self.up | ||
|
|
3 | + add_column :test_requests, :running_time, :time | ||
|
|
4 | + add_column :test_requests, :exit_status, :string | ||
|
|
5 | + add_column :test_requests, :memory_usage, :integer | ||
|
|
6 | + end | ||
|
|
7 | + | ||
|
|
8 | + def self.down | ||
|
|
9 | + remove_column :test_requests, :running_time | ||
|
|
10 | + remove_column :test_requests, :exit_status | ||
|
|
11 | + remove_column :test_requests, :memory_usage | ||
|
|
12 | + end | ||
|
|
13 | + 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 => 23) do |
|
13 |
|
13 | ||
|
14 | create_table "configurations", :force => true do |t| |
|
14 | create_table "configurations", :force => true do |t| |
|
15 | t.string "key" |
|
15 | t.string "key" |
@@ -119,6 +119,9 | |||||
|
119 | t.datetime "graded_at" |
|
119 | t.datetime "graded_at" |
|
120 | t.string "grader_comment" |
|
120 | t.string "grader_comment" |
|
121 | t.datetime "created_at" |
|
121 | t.datetime "created_at" |
|
|
122 | + t.time "running_time" | ||
|
|
123 | + t.string "exit_status" | ||
|
|
124 | + t.integer "memory_usage" | ||
|
122 | end |
|
125 | end |
|
123 |
|
126 | ||
|
124 | add_index "test_requests", ["user_id", "problem_id"], :name => "index_test_requests_on_user_id_and_problem_id" |
|
127 | 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