That's trapped in https://github.com/tute/merit/blob/9cca6d9d4545ebb7eb0d0a6dcfe6c14b6c6be768/lib/merit/rules_rank_methods.rb#L51, `ActiveRecord::StatementInvalid`. How can we mimic similar behavior for mongoid?