Created
June 24, 2016 17:03
-
-
Save patriciojofre/13e14e287ab12e3cdc5db8ee35d35525 to your computer and use it in GitHub Desktop.
validate uniqueness_of
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it { should validate_uniqueness_of(:field_id).scoped_to(:other_field, :other_field).with_message("your message") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment