=link_tonamespace_project_note_path(note.project.namespace,note.project,note),title: 'Remove comment',method: :delete,data: {confirm: 'Are you sure you want to remove this comment?'},remote: true,class: 'note-action-button hidden-xs js-note-delete danger'do
DELETE FROM notification_settings WHERE id NOT IN ( SELECT min_id from (SELECT MIN(id) as min_id FROM notification_settings GROUP BY user_id, source_type, source_id) as dups )