summaryrefslogtreecommitdiff
path: root/app/models/product_cart.rb
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-04 20:08:37 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-04 20:08:37 -0600
commit96ce018912ceffb7270b883a8982b1e2403cda1c (patch)
tree7a427516c30f52f0d121e9bc31ae952a8713351b /app/models/product_cart.rb
parent18b129f8f6ba8c5c98adaf82ccfc4ba38264a29b (diff)
Añade modelo ProductCart
Diffstat (limited to 'app/models/product_cart.rb')
-rw-r--r--app/models/product_cart.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/product_cart.rb b/app/models/product_cart.rb
new file mode 100644
index 0000000..10d4a4c
--- /dev/null
+++ b/app/models/product_cart.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+# ProductCart
+# quantity: integer
+class ProductCart < ApplicationRecord
+ belongs_to :cart
+ belongs_to :product
+end