From 18b129f8f6ba8c5c98adaf82ccfc4ba38264a29b Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 4 Apr 2023 19:54:00 -0600 Subject: AƱade modelo Cart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20230405013826_create_carts.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20230405013826_create_carts.rb (limited to 'db/migrate/20230405013826_create_carts.rb') diff --git a/db/migrate/20230405013826_create_carts.rb b/db/migrate/20230405013826_create_carts.rb new file mode 100644 index 0000000..8975e61 --- /dev/null +++ b/db/migrate/20230405013826_create_carts.rb @@ -0,0 +1,9 @@ +class CreateCarts < ActiveRecord::Migration[7.0] + def change + create_table :carts do |t| + t.belongs_to :user_account, null: false, index: { unique: true }, foreign_key: true + + t.timestamps + end + end +end -- cgit v1.2.3