Rails provides predicate methods (methods that return a boolean and are marked with a question mark) for all attributes in the ActiveRecord model, regardless of the type of column in the database, returns true if it has a value or false if it is zero. This is not a glitch.
, , :
u = User.find_by(email: "foo@bar.com")
u.email?
u = User.new(email: "new@user.com")
u.email?
. , completed?.