Files
astuto/app/models/post.rb
2019-08-24 16:51:25 +02:00

8 lines
175 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 }
end