debt-manager/db/migrate/20231210091848_add_owner_to_bubbles.rb
Louis Vallat 11f5929a1a
feat: added owner to buubles
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2023-12-31 18:11:17 +01:00

6 lines
175 B
Ruby

class AddOwnerToBubbles < ActiveRecord::Migration[7.0]
def change
add_reference(:bubbles, :owner, type: :uuid, foreign_key: { to_table: :users }, null: false)
end
end