We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 874f651 commit 938a542Copy full SHA for 938a542
2 files changed
app/models/country.rb
@@ -22,7 +22,7 @@ def to_label
22
def self.search_name(country: nil, substring: false)
23
country = "%#{country}%" if country.present? && substring
24
Country.where(
25
- "name COLLATE LIKE :country
+ "name LIKE :country
26
", {country: country}
27
)
28
end
app/models/institution.rb
@@ -21,8 +21,8 @@ def to_label
21
def self.search_name(institution: nil, substring: false)
institution = "%#{institution}%" if institution.present? && substring
Institution.where(
- "name COLLATE LIKE :institution
- OR code COLLATE LIKE :institution
+ "name LIKE :institution
+ OR code LIKE :institution
", {institution: institution}
0 commit comments