Add columns for object nicknames
This commit is contained in:
parent
9d777bcbf2
commit
178277ff3a
3 changed files with 18 additions and 0 deletions
6
db/migrate/20230311092753_add_nicknames_to_characters.rb
Normal file
6
db/migrate/20230311092753_add_nicknames_to_characters.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddNicknamesToCharacters < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :characters, :nicknames_en, :string, array: true, default: [], null: false
|
||||
add_column :characters, :nicknames_jp, :string, array: true, default: [], null: false
|
||||
end
|
||||
end
|
||||
6
db/migrate/20230311092803_add_nicknames_to_weapons.rb
Normal file
6
db/migrate/20230311092803_add_nicknames_to_weapons.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddNicknamesToWeapons < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :weapons, :nicknames_en, :string, array: true, default: [], null: false
|
||||
add_column :weapons, :nicknames_jp, :string, array: true, default: [], null: false
|
||||
end
|
||||
end
|
||||
6
db/migrate/20230311092812_add_nicknames_to_summons.rb
Normal file
6
db/migrate/20230311092812_add_nicknames_to_summons.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddNicknamesToSummons < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :summons, :nicknames_en, :string, array: true, default: [], null: false
|
||||
add_column :summons, :nicknames_jp, :string, array: true, default: [], null: false
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue