Not directly (although clearly you could write Square.where('length *
width = 144'), or define a named scope that does this. you also can't
use indexes for queries like this (unless your db supports functional
indexes)
i ended up just writing a method for the model that does the check..
it's something that would only happen maybe once a week.. and then,
maybe only one or two transactions.