0
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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