preview_card_trend.rb 527 B

1234567891011121314151617
  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: preview_card_trends
  5. #
  6. # id :bigint(8) not null, primary key
  7. # preview_card_id :bigint(8) not null
  8. # score :float default(0.0), not null
  9. # rank :integer default(0), not null
  10. # allowed :boolean default(FALSE), not null
  11. # language :string
  12. #
  13. class PreviewCardTrend < ApplicationRecord
  14. belongs_to :preview_card
  15. scope :allowed, -> { where(allowed: true) }
  16. end