Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-03-19 12:34:21 +08:00
parent 52b9af10a1
commit 9e8d10f711
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class User < ActiveRecord::Base
attr_accessor :import_mode
scope :with_email, ->(email) do
joins(:user_emails).where("lower(user_emails.email) = ?", email)
joins(:user_emails).where("lower(user_emails.email) IN (?)", email)
end
scope :human_users, -> { where('users.id > 0') }