mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-31 05:05:18 +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
|
|
@ -2,5 +2,5 @@ class Note < ApplicationRecord
|
|||
belongs_to :user
|
||||
belongs_to :project
|
||||
|
||||
scope :with_body, lambda { |terms| where("body LIKE ?", terms) }
|
||||
scope :with_body, lambda { |terms| where("body " + Common.like_operator + " ?", terms) }
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue