From fc22626f453f64409ad5b2967cdec541dbcc041d Mon Sep 17 00:00:00 2001 From: Heinrich Lee Yu Date: Tue, 23 Apr 2019 17:30:18 +0800 Subject: Remove deprecated uses of attribute_changed? Prepares us for upgrade to Rails 5.2 --- ...70503140202_turn_nested_groups_into_regular_groups_for_mysql.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'db') diff --git a/db/migrate/20170503140202_turn_nested_groups_into_regular_groups_for_mysql.rb b/db/migrate/20170503140202_turn_nested_groups_into_regular_groups_for_mysql.rb index cfa63b65df4..65b2c6a57be 100644 --- a/db/migrate/20170503140202_turn_nested_groups_into_regular_groups_for_mysql.rb +++ b/db/migrate/20170503140202_turn_nested_groups_into_regular_groups_for_mysql.rb @@ -46,13 +46,6 @@ class TurnNestedGroupsIntoRegularGroupsForMysql < ActiveRecord::Migration[4.2] bulk_insert_members(rows) - # This method relies on the parent to determine the proper path. - # Because we reset "parent_id" this method will not return the right path - # when moving namespaces. - full_path_was = namespace.send(:full_path_was) - - namespace.define_singleton_method(:full_path_was) { full_path_was } - namespace.update!(parent_id: nil, path: new_path_for(namespace)) end end -- cgit v1.2.3