diff options
Diffstat (limited to 'db/migrate/20230412015748_create_orders.rb')
-rw-r--r-- | db/migrate/20230412015748_create_orders.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20230412015748_create_orders.rb b/db/migrate/20230412015748_create_orders.rb new file mode 100644 index 0000000..db8ea6f --- /dev/null +++ b/db/migrate/20230412015748_create_orders.rb @@ -0,0 +1,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 |