diff --git a/app/models/city.rb b/app/models/city.rb index 6c1e6f2..6777b38 100644 --- a/app/models/city.rb +++ b/app/models/city.rb @@ -38,7 +38,7 @@ class City < ApplicationRecord } scope :least_popular_active, -> { - if ActiveRecord::Base.connection.adapter_name.downcase == 'sqlite' + if ActiveRecord::Base.connection.adapter_name.downcase == "sqlite" active .joins("LEFT JOIN ahoy_events ON json_extract(ahoy_events.properties, '$.city_id') = cities.id AND json_extract(ahoy_events.properties, '$.event_type') = 'city_view'")