Created
September 14, 2020 09:08
-
-
Save HopperMCS/bd12d6dd6d4bcd4f93a4ddd2961a233f 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
class User < ActiveRecord::Base | |
has_secure_password | |
has_many :books | |
has_many :book_reports | |
validates :username, presence: true, uniqueness: true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment