mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add PostStatus model
This commit is contained in:
4
app/models/post_status.rb
Normal file
4
app/models/post_status.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class PostStatus < ApplicationRecord
|
||||
validates :name, presence: true, uniqueness: true
|
||||
validates :color, format: { with: /\A#(?:[0-9a-fA-F]{3}){1,2}\z/ }
|
||||
end
|
||||
Reference in New Issue
Block a user