CDB-1788 avoid collision with ActiveRecord exception