Add migrations for nicknames

This commit is contained in:
Justin Edmund 2023-08-19 23:39:59 -07:00
parent 0ccbb7ecfe
commit b801c99775
3 changed files with 18 additions and 0 deletions

View 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

View 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

View 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