Sha256: 76445d8b24b957d5e3bbe1b08d790caf2469db3a2876e7e8b386f680a348f316

Contents?: true

Size: 230 Bytes

Versions: 15

Compression:

Stored size: 230 Bytes

Contents

class Blogo::User < ActiveRecord::Base
  has_many :posts

  has_secure_password

  validates :password, presence: true, on: :create
  validates :name    , presence: true
  validates :email   , presence: true, uniqueness: true
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
blogo-0.1.4 app/models/blogo/user.rb
blogo-0.1.3 app/models/blogo/user.rb
blogo-0.1.2 app/models/blogo/user.rb
blogo-0.1.1 app/models/blogo/user.rb
blogo-0.1.0 app/models/blogo/user.rb
blogo-0.0.10 app/models/blogo/user.rb
blogo-0.0.9 app/models/blogo/user.rb
blogo-0.0.8 app/models/blogo/user.rb
blogo-0.0.7 app/models/blogo/user.rb
blogo-0.0.6 app/models/blogo/user.rb
blogo-0.0.5 app/models/blogo/user.rb
blogo-0.0.4 app/models/blogo/user.rb
blogo-0.0.3 app/models/blogo/user.rb
blogo-0.0.2 app/models/blogo/user.rb
blogo-0.0.1 app/models/blogo/user.rb