Show More
Commit Description:
update migration
Commit Description:
update migration
References:
File last commit:
Show/Diff file:
Action:
db/migrate/20100124054458_create_user_contest_stats.rb
| 14 lines
| 346 B
| text/x-ruby
| RubyLexer
|
r822 | class CreateUserContestStats < ActiveRecord::Migration[4.2] | |||
|
r217 | def self.up | ||
r822 | create_table :user_contest_stats, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t| | |||
|
r217 | t.integer :user_id | ||
t.timestamp :started_at | ||||
t.timestamps | ||||
end | ||||
end | ||||
def self.down | ||||
drop_table :user_contest_stats | ||||
end | ||||
end | ||||