Show More
Commit Description:
utf8mb4
Commit Description:
utf8mb4
References:
File last commit:
Show/Diff file:
Action:
db/migrate/20100216162940_create_contests_problems_join_table.rb
| 12 lines
| 348 B
| text/x-ruby
| RubyLexer
|
r822 | class CreateContestsProblemsJoinTable < ActiveRecord::Migration[4.2] | |||
|
r268 | def self.up | ||
r822 | create_table :contests_problems, :id => false, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | |||
|
r268 | t.integer :contest_id | ||
t.integer :problem_id | ||||
end | ||||
end | ||||
def self.down | ||||
drop_table :contests_problems | ||||
end | ||||
end | ||||