summaryrefslogtreecommitdiff
path: root/db/migrate/20230412015828_create_payments.rb
blob: d3adeaaf7776ea5b0c3b6f36712708efbe043b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
class CreatePayments < ActiveRecord::Migration[7.0]
  def change
    create_table :payments do |t|
      t.references :order, null: false, foreign_key: true
      t.references :card, null: false, foreign_key: true
      t.float :total

      t.timestamps
    end
  end
end