How can I fetch records whose column is not 0
I'm trying to add scope, in which all the records whose sign_in_count
column is not 0
How can I?
scope :confirmed, where("sign_in_count" => 0)
This probably fetches all the records whose sign_in_count is 0.
I want opposite. How can I?
No comments:
Post a Comment