Sha256: 3ca0c8fbdbcd2786d5fe55fa1ae7209764e5693317d2a07a6eeb8ae93e8c6eca

Contents?: true

Size: 414 Bytes

Versions: 22

Compression:

Stored size: 414 Bytes

Contents

# == Schema Information
#
# Table name: users
#
#  id         :integer          not null, primary key
#  name       :string
#  age        :integer
#  salary     :decimal(, )
#  bio        :text
#  created_at :datetime         not null
#  updated_at :datetime         not null
#  account_id :integer
#  dob        :date
#

class User < ActiveRecord::Base
  has_many :comments

  validates :name, presence: true
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
rails_db-2.4.4 test/dummy/app/models/user.rb
rails_db-2.4.3 test/dummy/app/models/user.rb
rails_db-2.4.2 test/dummy/app/models/user.rb
rails_db-2.4.1 test/dummy/app/models/user.rb
rails_db-2.4.0 test/dummy/app/models/user.rb
rails_db-2.3.1 test/dummy/app/models/user.rb
rails_db-2.3.0 test/dummy/app/models/user.rb
rails_db-2.2.1 test/dummy/app/models/user.rb
rails_db-2.2.0 test/dummy/app/models/user.rb
rails_db-2.1.1 test/dummy/app/models/user.rb
rails_db-2.1.0 test/dummy/app/models/user.rb
rails_db-2.0.6 test/dummy/app/models/user.rb
rails_db-2.0.5 test/dummy/app/models/user.rb
rails_db-2.0.4 test/dummy/app/models/user.rb
xplore-0.0.1.alpha test/dummy/app/models/user.rb
rails_db-2.0.3 test/dummy/app/models/user.rb
rails_db-2.0.2 test/dummy/app/models/user.rb
rails_db-2.0.1 test/dummy/app/models/user.rb
rails_db-2.0.0 test/dummy/app/models/user.rb
rails_db-1.6.0 test/dummy/app/models/user.rb