Merging from main master to my repo master. #4

Closed
Karavel wants to merge 53 commits from fixin.me/fixin.me:master into master
Showing only changes of commit d6fdff252a - Show all commits

View File

@ -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