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.8.0 example/app/models/person.rb
sober_swag-0.7.0 example/app/models/person.rb
sober_swag-0.6.0 example/app/models/person.rb
sober_swag-0.5.0 example/app/models/person.rb
sober_swag-0.4.0 example/app/models/person.rb
sober_swag-0.3.0 example/app/models/person.rb
sober_swag-0.2.0 example/app/models/person.rb