The code powering m.abunchtell.com https://m.abunchtell.com
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

20 linhas
501 B

  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: announcement_mutes
  5. #
  6. # id :bigint(8) not null, primary key
  7. # account_id :bigint(8)
  8. # announcement_id :bigint(8)
  9. # created_at :datetime not null
  10. # updated_at :datetime not null
  11. #
  12. class AnnouncementMute < ApplicationRecord
  13. belongs_to :account
  14. belongs_to :announcement, inverse_of: :announcement_mutes
  15. validates :account_id, uniqueness: { scope: :announcement_id }
  16. end