FIX: regex should behave the same in Ruby and Postgres
This commit is contained in:
parent
16076f9ab8
commit
727a45185d
|
@ -103,7 +103,7 @@ class Post < ActiveRecord::Base
|
|||
when 'string'
|
||||
where('raw ILIKE ?', "%#{pattern}%")
|
||||
when 'regex'
|
||||
where('raw ~ ?', pattern)
|
||||
where('raw ~ ?', "(?n)#{pattern}")
|
||||
end
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue