hensei-api/db/migrate/20230315095656_add_granblue_id_to_weapon_keys.rb
Justin Edmund 31e05179e2
Add granblue_id to WeaponKeys (#77)
* Small Rails 7 configuration changes (#72)

* Remove log call

* Show EMP skills for Row 5 classes

Row 4 EMP skills were not showing up, so you couldn't set Rage IV on Viking, for example

* Allow adding EMP skills from prior rows to team

We let you search but didn't fix the server-side validation check for skills

* 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.

* Add granblue_id to WeaponKeyBlueprint

* Migrate database
2023-03-16 08:35:28 -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