Show More
Commit Description:
added message hiding for admin in msg console...
Commit Description:
added message hiding for admin in msg console
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@371 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
db/migrate/019_create_test_requests.rb
| 30 lines
| 909 B
| text/x-ruby
| RubyLexer
|
|
r36 | class CreateTestRequests < ActiveRecord::Migration | ||
def self.up | ||||
create_table :test_requests do |t| | ||||
t.column :user_id, :integer | ||||
t.column :problem_id, :integer | ||||
t.column :submission_id, :integer | ||||
t.column :input_file_name, :string | ||||
t.column :output_file_name, :string | ||||
t.column :running_stat, :string | ||||
# these are similar to tasks | ||||
t.column :status, :integer | ||||
t.column :updated_at, :datetime | ||||
# these are intentionally similar to submissions | ||||
t.column :submitted_at, :datetime | ||||
t.column :compiled_at, :datetime | ||||
t.column :compiler_message, :string | ||||
t.column :graded_at, :datetime | ||||
t.column :grader_comment, :string | ||||
t.timestamps | ||||
end | ||||
add_index :test_requests, [:user_id, :problem_id] | ||||
end | ||||
def self.down | ||||
remove_index :test_requests, :column => [:user_id, :problem_id] | ||||
drop_table :test_requests | ||||
end | ||||
end | ||||