Last active
July 28, 2016 03:59
-
-
Save giancarlosisasi/1972cfee6a4bc98ed6a70245f17623fe to your computer and use it in GitHub Desktop.
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
| # my_api/app/models/user.rb | |
| class User < ActiveRecord::Base | |
| validates :email, presence: true, uniqueness: true | |
| validates :name, presence: true | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment