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.
2021-03-10 09:31:29 +00:00
|
|
|
class Post < ApplicationRecord
|
|
|
|
belongs_to :profile
|
|
|
|
|
2021-03-10 10:18:57 +00:00
|
|
|
validates :text, presence: true, length: { maximum: 200 }
|
|
|
|
|
|
|
|
validates :published_at, presence: true
|
2021-03-10 09:31:29 +00:00
|
|
|
end
|