Sha256: 673338d8b1d316ab932632bfccb9157a3fe5b8876fa506083da51a1f343c6d7e

Contents?: true

Size: 257 Bytes

Versions: 33

Compression:

Stored size: 257 Bytes

Contents

class User < ActiveRecord::Base
  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

33 entries across 33 versions & 1 rubygems

Version Path
awesome_translations-0.0.58 spec/dummy/app/models/user.rb
awesome_translations-0.0.57 spec/dummy/app/models/user.rb
awesome_translations-0.0.56 spec/dummy/app/models/user.rb
awesome_translations-0.0.55 spec/dummy/app/models/user.rb
awesome_translations-0.0.54 spec/dummy/app/models/user.rb
awesome_translations-0.0.53 spec/dummy/app/models/user.rb
awesome_translations-0.0.52 spec/dummy/app/models/user.rb
awesome_translations-0.0.51 spec/dummy/app/models/user.rb
awesome_translations-0.0.50 spec/dummy/app/models/user.rb
awesome_translations-0.0.49 spec/dummy/app/models/user.rb
awesome_translations-0.0.48 spec/dummy/app/models/user.rb
awesome_translations-0.0.47 spec/dummy/app/models/user.rb
awesome_translations-0.0.46 spec/dummy/app/models/user.rb
awesome_translations-0.0.45 spec/dummy/app/models/user.rb
awesome_translations-0.0.44 spec/dummy/app/models/user.rb
awesome_translations-0.0.43 spec/dummy/app/models/user.rb
awesome_translations-0.0.42 spec/dummy/app/models/user.rb
awesome_translations-0.0.41 spec/dummy/app/models/user.rb
awesome_translations-0.0.40 spec/dummy/app/models/user.rb
awesome_translations-0.0.39 spec/dummy/app/models/user.rb