You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # == Schema Information
- #
- # Table name: system_notifications
- #
- # id :integer not null, primary key
- # subject :string(255)
- # sub_subject :string(255)
- # content :text(65535)
- # is_top :boolean
- # created_at :datetime not null
- # updated_at :datetime not null
- #
-
- class SystemNotification < ApplicationRecord
-
- default_scope { order(created_at: :desc)}
-
- scope :is_top, lambda { where(is_top: true) }
-
- end
|