Add granblue_id column to WeaponKeys table

This should have a `NOT NULL` constraint, but due to existing data it is nullable until we can update all environments with values.
This commit is contained in:
Justin Edmund 2023-03-15 03:03:58 -07:00
parent 2596e2785a
commit 74a70b8ecd

View file

@ -0,0 +1,6 @@
class AddGranblueIdToWeaponKeys < ActiveRecord::Migration[7.0]
def change
# This needs to be NOT NULL, but initially it will be nullable until we migrate data
add_column :weapon_keys, :granblue_id, :integer, unique: true, null: true
end
end