From 74a70b8ecdefaf8a8cd611ded6531e86a26c1671 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 15 Mar 2023 03:03:58 -0700 Subject: [PATCH] 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. --- db/migrate/20230315095656_add_granblue_id_to_weapon_keys.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 db/migrate/20230315095656_add_granblue_id_to_weapon_keys.rb diff --git a/db/migrate/20230315095656_add_granblue_id_to_weapon_keys.rb b/db/migrate/20230315095656_add_granblue_id_to_weapon_keys.rb new file mode 100644 index 0000000..31830b7 --- /dev/null +++ b/db/migrate/20230315095656_add_granblue_id_to_weapon_keys.rb @@ -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