Initial app
This commit is contained in:
7
app/models/user.rb
Normal file
7
app/models/user.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class User < ApplicationRecord
|
||||
has_many :contests, dependent: :destroy
|
||||
has_many :sessions, dependent: :destroy
|
||||
has_secure_password
|
||||
|
||||
normalizes :email_address, with: ->(e) { e.strip.downcase }
|
||||
end
|
Reference in New Issue
Block a user