Add titles to warning presets in admin UI (#13252)
This commit is contained in:
parent
aeebbe90dc
commit
f556f79b77
56 changed files with 48 additions and 67 deletions
|
@ -8,8 +8,11 @@
|
|||
# text :text default(""), not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# title :string default(""), not null
|
||||
#
|
||||
|
||||
class AccountWarningPreset < ApplicationRecord
|
||||
validates :text, presence: true
|
||||
|
||||
scope :alphabetic, -> { order(title: :asc, text: :asc) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue