Fix inconsistent naming of Instance.by_domain_and_subdomain (#25159)
This commit is contained in:
parent
b86f3596ba
commit
b6519ab3f5
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class Instance < ApplicationRecord
|
|||
end
|
||||
|
||||
scope :matches_domain, ->(value) { where(arel_table[:domain].matches("%#{value}%")) }
|
||||
scope :by_domain_and_subdomain, ->(domain) { where("reverse('.' || domain) LIKE reverse(?)", "%.#{domain}") }
|
||||
scope :by_domain_and_subdomains, ->(domain) { where("reverse('.' || domain) LIKE reverse(?)", "%.#{domain}") }
|
||||
|
||||
def self.refresh
|
||||
Scenic.database.refresh_materialized_view(table_name, concurrently: true, cascade: false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue