Sha256: 330e8948f784d754e7067f7b891cb7ca6788cdb81c3b66864432136f389b7a69
Contents?: true
Size: 210 Bytes
Versions: 7
Compression:
Stored size: 210 Bytes
Contents
class User < ActiveRecord::Base validates_presence_of :email validates_uniqueness_of :email validates :email, length: {in: 2..255}, format: {with: /\A.+@.+\Z/} has_many :roles, dependent: :destroy end
Version data entries
7 entries across 7 versions & 1 rubygems