3 ms·
Therefore the only thing left to do is run the following migration: add_index :discounts, [:promo_code_id, :customer_id, :order_id], :unique => true
by some1else 11y ago
Therefore the only thing left to do is run the following migration:
add_index :discounts, [:promo_code_id, :customer_id, :order_id], :unique => true