Created
April 14, 2014 17:32
-
-
Save laser/10667843 to your computer and use it in GitHub Desktop.
05: User model modifications
This file contains hidden or 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
# services/user_service/models/user.rb | |
class UserService | |
class User < ActiveRecord::Base | |
validates :email, uniqueness: true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment