hensei-api/db/migrate/20230315095656_add_granblue_id_to_weapon_keys.rb
Justin Edmund 74a70b8ecd 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.
2023-03-15 03:03:58 -07:00

6 lines
253 B
Ruby

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