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.

22 lines
475 B

  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: unavailable_domains
  5. #
  6. # id :bigint(8) not null, primary key
  7. # domain :string default(""), not null
  8. # created_at :datetime not null
  9. # updated_at :datetime not null
  10. #
  11. class UnavailableDomain < ApplicationRecord
  12. include DomainNormalizable
  13. after_commit :reset_cache!
  14. private
  15. def reset_cache!
  16. Rails.cache.delete('unavailable_domains')
  17. end
  18. end