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