class AddSpendingToBubbles < ActiveRecord::Migration[7.0] def change create_table :spendings, id: :uuid do |t| t.decimal :amount, null: false, default: 0 t.text :description, null: false, default: "" t.references :bubble, type: :uuid, null: false t.references :owner, type: :uuid, foreign_key: { to_table: :users }, null: false t.timestamps end end end