diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-05-02 15:54:21 +0000 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-05-02 15:54:21 +0000 |
commit | 37606e666736c9686054ee5155e3d2d21eb1a0c9 (patch) | |
tree | 9c81314df7c2e8d8b0390bf606ebc98a2cce1864 /db | |
parent | 00a5b9b0fa9ed8086b7a6c3528281a5038327aa3 (diff) | |
parent | fc22626f453f64409ad5b2967cdec541dbcc041d (diff) | |
download | gitlab-ce-37606e666736c9686054ee5155e3d2d21eb1a0c9.tar.gz |
Merge branch '9932-fix-deprecated-attribute_changed-ce' into 'master'
[CE] Remove deprecated usage of `attribute_changed?`
See merge request gitlab-org/gitlab-ce!27577
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170503140202_turn_nested_groups_into_regular_groups_for_mysql.rb | 7 |
1 files changed, 0 insertions, 7 deletions
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 |