Sha256: 2c69077fd61d1a6da6784f25bc8a3adaded69330dbe416af077d7f03853df75e

Contents?: true

Size: 196 Bytes

Versions: 27

Compression:

Stored size: 196 Bytes

Contents

##
# Extremely basic post example record.
# This is a blog post! Wow.
class Post < ApplicationRecord
  belongs_to :person

  validates :title, presence: true
  validates :body, presence: true
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
sober_swag-0.8.0 example/app/models/post.rb
sober_swag-0.7.0 example/app/models/post.rb
sober_swag-0.6.0 example/app/models/post.rb
sober_swag-0.5.0 example/app/models/post.rb
sober_swag-0.4.0 example/app/models/post.rb
sober_swag-0.3.0 example/app/models/post.rb
sober_swag-0.2.0 example/app/models/post.rb