add collection references to grid tables

This commit is contained in:
Justin Edmund 2025-12-03 22:40:34 -08:00
parent 658d3d9c49
commit 35b8a674ab

View file

@ -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