debt-manager/db/migrate/20231210091848_add_owner_to_bubbles.rb

6 lines
175 B
Ruby
Raw Normal View History

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