Show More
Commit Description:
initial commit...
Commit Description:
initial commit
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@1 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
db/migrate/003_create_submissions.rb
| 21 lines
| 568 B
| text/x-ruby
| RubyLexer
|
|
r0 | class CreateSubmissions < ActiveRecord::Migration | ||
def self.up | ||||
create_table :submissions do |t| | ||||
t.column :user_id, :integer | ||||
t.column :problem_id, :integer | ||||
t.column :language_id, :integer | ||||
t.column :source, :text | ||||
t.column :binary, :binary | ||||
t.column :submitted_at, :datetime | ||||
t.column :compiled_at, :datetime | ||||
t.column :compiler_message, :text | ||||
t.column :graded_at, :datetime | ||||
t.column :points, :integer | ||||
t.column :grader_comment, :text | ||||
end | ||||
end | ||||
def self.down | ||||
drop_table :submissions | ||||
end | ||||
end | ||||