Sha256: 522f9fb40580cffe49e0ae2542a39aaef4a3a6607942e74a88aa75a6fb52944e

Contents?: true

Size: 200 Bytes

Versions: 27

Compression:

Stored size: 200 Bytes

Contents

##
# Extremely basic person example record.
class Person < ApplicationRecord
  has_many :posts, dependent: :destroy

  validates :first_name, presence: true
  validates :last_name, presence: true
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
sober_swag-0.25.2 example/app/models/person.rb
sober_swag-0.25.1 example/app/models/person.rb
sober_swag-0.25.0 example/app/models/person.rb
sober_swag-0.24.1 example/app/models/person.rb
sober_swag-0.24.0 example/app/models/person.rb
sober_swag-0.23.0 example/app/models/person.rb
sober_swag-0.22.0 example/app/models/person.rb
sober_swag-0.21.0 example/app/models/person.rb
sober_swag-0.20.0 example/app/models/person.rb
sober_swag-0.19.0 example/app/models/person.rb
sober_swag-0.18.0 example/app/models/person.rb
sober_swag-0.17.0 example/app/models/person.rb
sober_swag-0.16.0 example/app/models/person.rb
sober_swag-0.15.0 example/app/models/person.rb
sober_swag-0.14.0 example/app/models/person.rb
sober_swag-0.13.0 example/app/models/person.rb
sober_swag-0.12.0 example/app/models/person.rb
sober_swag-0.11.0 example/app/models/person.rb
sober_swag-0.10.0 example/app/models/person.rb
sober_swag-0.9.0 example/app/models/person.rb