Show More
Commit Description:
use uuid cookie
Commit Description:
use uuid cookie
References:
File last commit:
Show/Diff file:
Action:
db/migrate/20161014091417_create_testcases.rb
| 15 lines
| 387 B
| text/x-ruby
| RubyLexer
|
r822 | class CreateTestcases < ActiveRecord::Migration[4.2] | |||
r607 | def change | |||
r822 | create_table :testcases, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | |||
r607 | t.references :problem | |||
t.integer :num | ||||
t.integer :group | ||||
t.integer :score | ||||
t.text :input | ||||
t.text :sol | ||||
t.timestamps | ||||
end | ||||
add_index :testcases, :problem_id | ||||
end | ||||
end | ||||