Added down for creating table
This commit is contained in:
parent
2001bbcb34
commit
6d74ccc0b9
1 changed files with 13 additions and 7 deletions
|
|
@ -1,10 +1,16 @@
|
||||||
class AddRaidGroupsTable < ActiveRecord::Migration[7.0]
|
class AddRaidGroupsTable < ActiveRecord::Migration[7.0]
|
||||||
create_table :raid_groups, id: :uuid, default: -> { "gen_random_uuid()" } do |t|
|
def up
|
||||||
t.string :name_en, null: false
|
create_table :raid_groups, id: :uuid, default: -> { "gen_random_uuid()" } do |t|
|
||||||
t.string :name_jp, null: false
|
t.string :name_en, null: false
|
||||||
t.integer :difficulty
|
t.string :name_jp, null: false
|
||||||
t.integer :order, null: false
|
t.integer :difficulty
|
||||||
t.integer :section, default: 1, null: false
|
t.integer :order, null: false
|
||||||
t.boolean :extra, default: false, null: false
|
t.integer :section, default: 1, null: false
|
||||||
|
t.boolean :extra, default: false, null: false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
drop_table :raid_groups
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue