summaryrefslogtreecommitdiff
path: root/db/migrate/20230412015748_create_orders.rb
blob: db8ea6f8d9c0cfd9069be19cd372ce69b0705c55 (plain)
1
2
3
4
5
6
7
8
9
10
class CreateOrders < ActiveRecord::Migration[7.0]
  def change
    create_table :orders do |t|
      t.references :user_account, null: false, foreign_key: true
      t.string :public_id

      t.timestamps
    end
  end
end