summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-04 17:27:21 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-04 17:27:21 -0600
commita7f095d7171fe496c8037a451aaecfd234c30a01 (patch)
tree9c4115830ff339e48e8e6565908749de37eb21fa /db/schema.rb
parent283a368edd5d5c13aa8653156dd601505326864e (diff)
Añade índice entre productos, autores y reseñas
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 8506e8d..fc2bbd1 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema[7.0].define(version: 2023_03_31_001256) do
+ActiveRecord::Schema[7.0].define(version: 2023_04_04_004859) do
create_table "active_storage_attachments", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -76,6 +76,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_31_001256) do
t.integer "rating"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
+ t.index ["product_id", "user_account_id"], name: "index_product_reviews_on_product_id_and_user_account_id", unique: true
t.index ["product_id"], name: "index_product_reviews_on_product_id"
t.index ["user_account_id"], name: "index_product_reviews_on_user_account_id"
end