You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
The validation works if I first create the table then add the unique argument.
I created a fix on property_set.rb and passed test on table creation, will send PR later.
For the following code:
property :modelnumber, String, :unique => [:brand, :name], :required => true
The generated SQL statement is:
The correct SQL statement should be:
CREATE UNIQUE INDEX "unique_products_modelnumber" ON "products" ("modelnumber", "brand", "name")
The text was updated successfully, but these errors were encountered: