mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 14:31:47 +01:00
Make LIKE searches case-insensitive also on PgSQL
This commit is contained in:
parent
e89511aec8
commit
bbb9fc8809
7 changed files with 21 additions and 11 deletions
|
|
@ -7,7 +7,7 @@ class Context < ApplicationRecord
|
|||
scope :active, -> { where state: :active }
|
||||
scope :hidden, -> { where state: :hidden }
|
||||
scope :closed, -> { where state: :closed }
|
||||
scope :with_name, lambda { |name| where("name LIKE ?", name) }
|
||||
scope :with_name, lambda { |name| where("name " + Common.like_operator + " ?", name) }
|
||||
|
||||
acts_as_list :scope => :user, :top_of_list => 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue