Sha256: c57afeb720e5ea5c844b6cc8813508499072be1aa44fd2384a18b1f5745c65a5
Contents?: true
Size: 256 Bytes
Versions: 4
Compression:
Stored size: 256 Bytes
Contents
class User < ApplicationRecord validates :email, presence: true validates :email, uniqueness: true validates :email, length: {in: 2..255}, format: {with: /\A.+@.+\Z/} validates :email, confirmation: true has_many :roles, dependent: :destroy end
Version data entries
4 entries across 4 versions & 1 rubygems