getting the database representation's of true/false from ActiveRecord

Developer from somewhere

Use this:

ActiveRecord::Base.connection.quote(true)

or

ActiveRecord::Base.connection.quoted_true

or

ActiveRecord::Base.connection.quoted_false