mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
5 lines
162 B
Ruby
5 lines
162 B
Ruby
class PostStatus < ApplicationRecord
|
|
validates :name, presence: true, uniqueness: true
|
|
validates :color, format: { with: /\A#(?:[0-9a-fA-F]{3}){1,2}\z/ }
|
|
end
|