debian-mirror-gitlab/db/migrate/20150324155957_set_incorrect_assignee_id_to_null.rb

7 lines
241 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
class SetIncorrectAssigneeIdToNull < ActiveRecord::Migration[4.2]
2015-04-26 12:48:37 +05:30
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