Add titles to warning presets in admin UI (#13252)

This commit is contained in:
Eugen Rochko
2020-03-12 17:57:59 +01:00
committed by GitHub
parent aeebbe90dc
commit f556f79b77
56 changed files with 48 additions and 67 deletions

View File

@ -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