Fix reference to non existent column
This commit is contained in:
@@ -297,7 +297,7 @@ class Artist < ActiveRecord::Base
|
|||||||
q = q.banned
|
q = q.banned
|
||||||
|
|
||||||
when /status:active/
|
when /status:active/
|
||||||
q = q.where("is_banned = false and is_deleted = false")
|
q = q.where("is_banned = false and is_active = true")
|
||||||
|
|
||||||
when /./
|
when /./
|
||||||
q = q.any_name_matches(params[:name])
|
q = q.any_name_matches(params[:name])
|
||||||
|
|||||||
Reference in New Issue
Block a user