2016-06-16 23:09:34 +05:30
|
|
|
# rubocop:disable all
|
2015-04-26 12:48:37 +05:30
|
|
|
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
|