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

Version Path
awesome_translations-0.0.8 spec/dummy/app/models/user.rb
awesome_translations-0.0.7 spec/dummy/app/models/user.rb
awesome_translations-0.0.6 spec/dummy/app/models/user.rb
awesome_translations-0.0.5 spec/dummy/app/models/user.rb
awesome_translations-0.0.4 spec/dummy/app/models/user.rb
awesome_translations-0.0.3 spec/dummy/app/models/user.rb
awesome_translations-0.0.2 spec/dummy/app/models/user.rb