diff --git a/db/migrate/20170508171328_change_lti_resouce_handler_lookup_id_not_null.rb b/db/migrate/20170508171328_change_lti_resouce_handler_lookup_id_not_null.rb index 9a01817fc3f..52d1f778c27 100644 --- a/db/migrate/20170508171328_change_lti_resouce_handler_lookup_id_not_null.rb +++ b/db/migrate/20170508171328_change_lti_resouce_handler_lookup_id_not_null.rb @@ -18,7 +18,6 @@ class ChangeLtiResouceHandlerLookupIdNotNull < ActiveRecord::Migration[4.2] tag :postdeploy def change - DataFixup::AddLookupToResourceHandlers.run change_column_null :lti_resource_handlers, :lookup_id, false end end diff --git a/lib/data_fixup/add_lookup_to_resource_handlers.rb b/lib/data_fixup/add_lookup_to_resource_handlers.rb deleted file mode 100644 index 1d6cf1b1c9c..00000000000 --- a/lib/data_fixup/add_lookup_to_resource_handlers.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Copyright (C) 2017 - present Instructure, Inc. -# -# This file is part of Canvas. -# -# Canvas is free software: you can redistribute it and/or modify it under -# the terms of the GNU Affero General Public License as published by the Free -# Software Foundation, version 3 of the License. -# -# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more -# details. -# -# You should have received a copy of the GNU Affero General Public License along -# with this program. If not, see . - -module DataFixup - module AddLookupToResourceHandlers - def self.run - Lti::ResourceHandler.where(lookup_id: nil).find_each do |rh| - rh.update_attributes(lookup_id: Lti::ResourceHandler.generate_lookup_id_for(rh)) - end - end - end -end