Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20150324155957_set_incorrect_assignee_id_to_null.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 42dc8173e46ee315b46d68c8a2ed3a040427956e (plain)
1
2
3
4
5
6
class SetIncorrectAssigneeIdToNull < ActiveRecord::Migration
  def up
    execute "UPDATE issues SET assignee_id = NULL WHERE assignee_id = -1"
    execute "UPDATE merge_requests SET assignee_id = NULL WHERE assignee_id = -1"
  end
end