forked from fixin.me/fixin.me
parent
f3751c5fa1
commit
d6fdff252a
@ -13,6 +13,10 @@ class User < ApplicationRecord
|
|||||||
|
|
||||||
has_many :units, dependent: :destroy
|
has_many :units, dependent: :destroy
|
||||||
|
|
||||||
|
validates :email, presence: true, uniqueness: true,
|
||||||
|
length: {maximum: columns_hash['email'].limit}
|
||||||
|
validates :unconfirmed_email, length: {maximum: columns_hash['unconfirmed_email'].limit}
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
email
|
email
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user