Rename migrations to be after last migration
This commit is contained in:
parent
b801c99775
commit
d7d423260d
3 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
class AddNicknamesToCharacters < ActiveRecord::Migration[7.0]
|
class AddNicknamesToCharacters < ActiveRecord::Migration[7.0]
|
||||||
def change
|
def change
|
||||||
add_column :characters, :nicknames_en, :string, array: true, default: [], null: false
|
add_column :characters, :nicknames_en, :string, array: true, default: [], null: false, if_not_exists: true
|
||||||
add_column :characters, :nicknames_jp, :string, array: true, default: [], null: false
|
add_column :characters, :nicknames_jp, :string, array: true, default: [], null: false, if_not_exists: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
class AddNicknamesToSummons < ActiveRecord::Migration[7.0]
|
class AddNicknamesToSummons < ActiveRecord::Migration[7.0]
|
||||||
def change
|
def change
|
||||||
add_column :summons, :nicknames_en, :string, array: true, default: [], null: false
|
add_column :summons, :nicknames_en, :string, array: true, default: [], null: false, if_not_exists: true
|
||||||
add_column :summons, :nicknames_jp, :string, array: true, default: [], null: false
|
add_column :summons, :nicknames_jp, :string, array: true, default: [], null: false, if_not_exists: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
class AddNicknamesToWeapons < ActiveRecord::Migration[7.0]
|
class AddNicknamesToWeapons < ActiveRecord::Migration[7.0]
|
||||||
def change
|
def change
|
||||||
add_column :weapons, :nicknames_en, :string, array: true, default: [], null: false
|
add_column :weapons, :nicknames_en, :string, array: true, default: [], null: false, if_not_exists: true
|
||||||
add_column :weapons, :nicknames_jp, :string, array: true, default: [], null: false
|
add_column :weapons, :nicknames_jp, :string, array: true, default: [], null: false, if_not_exists: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Loading…
Reference in a new issue