@@ -115,7 +115,6 @@ class MergeRequest < ActiveRecord::Base
validate:validate_fork
scope:of_group,->(group){where("source_project_id in (:group_project_ids) OR target_project_id in (:group_project_ids)",group_project_ids: group.project_ids)}
scope:of_user_team,->(team){where("(source_project_id in (:team_project_ids) OR target_project_id in (:team_project_ids) AND assignee_id in (:team_member_ids))",team_project_ids: team.project_ids,team_member_ids: team.member_ids)}
scope:merged,->{with_state(:merged)}
scope:by_branch,->(branch_name){where("(source_branch LIKE :branch) OR (target_branch LIKE :branch)",branch: branch_name)}
scope:cared,->(user){where('assignee_id = :user OR author_id = :user',user: user.id)}