You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
489 B

  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: account_warning_presets
  5. #
  6. # id :bigint(8) not null, primary key
  7. # text :text default(""), not null
  8. # created_at :datetime not null
  9. # updated_at :datetime not null
  10. # title :string default(""), not null
  11. #
  12. class AccountWarningPreset < ApplicationRecord
  13. validates :text, presence: true
  14. scope :alphabetic, -> { order(title: :asc, text: :asc) }
  15. end