summaryrefslogtreecommitdiff
path: root/db/migrate/20230412015748_create_orders.rb
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-11 20:28:11 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-11 20:28:11 -0600
commitb9e6c425a6142b2b78311cfc7b51aa0de7481440 (patch)
tree9350e616a04a7ddbc148ed86ee925fb589dd7665 /db/migrate/20230412015748_create_orders.rb
parentbb9554c298a5edc6c0ff90ec7497adff299891e0 (diff)
Añadidos modelos para órdenes
Diffstat (limited to 'db/migrate/20230412015748_create_orders.rb')
-rw-r--r--db/migrate/20230412015748_create_orders.rb10
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