diff --git a/db/migrate/20251203224022_add_collection_references_to_grid_items.rb b/db/migrate/20251203224022_add_collection_references_to_grid_items.rb new file mode 100644 index 0000000..88311dd --- /dev/null +++ b/db/migrate/20251203224022_add_collection_references_to_grid_items.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class AddCollectionReferencesToGridItems < ActiveRecord::Migration[8.0] + def change + add_reference :grid_characters, :collection_character, + type: :uuid, foreign_key: true, null: true + add_reference :grid_weapons, :collection_weapon, + type: :uuid, foreign_key: true, null: true + add_reference :grid_summons, :collection_summon, + type: :uuid, foreign_key: true, null: true + add_reference :grid_artifacts, :collection_artifact, + type: :uuid, foreign_key: true, null: true + end +end