Add migrations for nicknames
This commit is contained in:
parent
0ccbb7ecfe
commit
b801c99775
3 changed files with 18 additions and 0 deletions
6
db/migrate/20230819113800_add_nicknames_to_characters.rb
Normal file
6
db/migrate/20230819113800_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/20230819113810_add_nicknames_to_summons.rb
Normal file
6
db/migrate/20230819113810_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
|
||||
6
db/migrate/20230819113900_add_nicknames_to_weapons.rb
Normal file
6
db/migrate/20230819113900_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
|
||||
Loading…
Reference in a new issue