Files
astuto/app/models/post.rb
2019-09-04 21:12:07 +02:00

10 lines
195 B
Ruby

class Post < ApplicationRecord
belongs_to :board
belongs_to :user
belongs_to :post_status, optional: true
validates :title, presence: true, length: { in: 4..64 }
paginates_per 15
end