This repository has been archived on 2023-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
|
class Post < ApplicationRecord
|
|
belongs_to :profile
|
|
|
|
validates :text, presence: true, length: { maximum: 200 }
|
|
|
|
validates :published_at, presence: true
|
|
end
|