summaryrefslogtreecommitdiff
path: root/db/migrate/20150324155957_set_incorrect_assignee_id_to_null.rb
blob: 9f8b6f4bd59af0ce8c01075a1235021733dce8d2 (plain)
1
2
3
4
5
6
7
# rubocop:disable all
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