use mongoid replace active_record