Created
December 2, 2016 09:21
-
-
Save luckyruby/526d29bac545631cf405bd5db60e0342 to your computer and use it in GitHub Desktop.
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
validates :last_name, | |
uniqueness: { | |
scope: [:first_name, :course_id, :user_id], | |
case_sensitive: false, | |
message: "This student has already been registered." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment