diff options
author | HombreLaser <sebastian-440@live.com> | 2023-04-04 20:45:40 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-04-04 20:45:40 -0600 |
commit | 7dd7989bba156dc2e790ff6daa9df31cfa0ed7cd (patch) | |
tree | ceeef9c344d5cd45a497fc97e0b9cb1a7a8e2b20 /db/schema.rb | |
parent | 96ce018912ceffb7270b883a8982b1e2403cda1c (diff) |
Arregladas migraciones de tabla Carts
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/db/schema.rb b/db/schema.rb index b974771..4020c8d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -62,10 +62,10 @@ ActiveRecord::Schema[7.0].define(version: 2023_04_05_015505) do end create_table "carts", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| - t.bigint "user_account_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.index ["user_account_id"], name: "index_carts_on_user_account_id", unique: true + t.bigint "user_account_id" + t.index ["user_account_id"], name: "index_carts_on_user_account_id" end create_table "companies", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| @@ -131,6 +131,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_04_05_015505) do t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "role" + t.bigint "cart_id" + t.index ["cart_id"], name: "index_user_accounts_on_cart_id" end add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" @@ -140,4 +142,5 @@ ActiveRecord::Schema[7.0].define(version: 2023_04_05_015505) do add_foreign_key "product_reviews", "products" add_foreign_key "product_reviews", "user_accounts" add_foreign_key "products", "companies" + add_foreign_key "user_accounts", "carts" end |