saucy/db/migrate/20230712103042_create_payments.rb

12 lines
244 B
Ruby
Raw Normal View History

class CreatePayments < ActiveRecord::Migration[7.0]
def change
create_table :payments, id: :uuid do |t|
t.references :member, type: :uuid, foreign_key: true, null: false
t.string :status
t.timestamps
end
end
end