diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2021-11-19 06:02:08 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 22:02:08 +0100 |
commit | 3419d3ec84c3aa4f450265642e0a85dcdd3c36d0 (patch) | |
tree | dfd530fcfaed29a5421138087ef3a240d3c45a3c /app/models/tag.rb | |
parent | 2b6a25c609e2d1814e5dd586e9f40868d944c8bc (diff) |
Bump chewy from 5.2.0 to 7.2.3 (supports Elasticsearch 7.x) (#16915)
* Bump chewy from 5.2.0 to 7.2.2 * fix style (codeclimate) * fix style * fix style * Bump chewy from 7.2.2 to 7.2.3
Diffstat (limited to 'app/models/tag.rb')
-rw-r--r-- | app/models/tag.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tag.rb b/app/models/tag.rb index 735c30608..dcce28391 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -39,7 +39,7 @@ class Tag < ApplicationRecord scope :recently_used, ->(account) { joins(:statuses).where(statuses: { id: account.statuses.select(:id).limit(1000) }).group(:id).order(Arel.sql('count(*) desc')) } scope :matches_name, ->(term) { where(arel_table[:name].lower.matches(arel_table.lower("#{sanitize_sql_like(Tag.normalize(term))}%"), nil, true)) } # Search with case-sensitive to use B-tree index - update_index('tags#tag', :self) + update_index('tags', :self) def to_param name |