saucy/db/migrate/20230712103042_create_payme...

12 lines
244 B
Ruby

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