summaryrefslogtreecommitdiff
path: root/db/migrate/20140407135544_fix_namespaces.rb
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-08-20 20:22:43 +0200
committerAchilleas Pipinellis <axil@gitlab.com>2019-08-20 20:22:43 +0200
commite61308ce1d82e12e5087371469baea4a452875d1 (patch)
tree62551a3ae4eab75e5af7e3b35358c07a51b2132f /db/migrate/20140407135544_fix_namespaces.rb
parent4f323bb62fbe71a4352de25cab141f361a3fe1a6 (diff)
parent2989ed078c1d45b0959dcecb1bc3c8f4740a3c0d (diff)
downloadgitlab-ce-docs-patch-71.tar.gz
Merge branch 'master' into docs-patch-71docs-patch-71
Diffstat (limited to 'db/migrate/20140407135544_fix_namespaces.rb')
-rw-r--r--db/migrate/20140407135544_fix_namespaces.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/db/migrate/20140407135544_fix_namespaces.rb b/db/migrate/20140407135544_fix_namespaces.rb
deleted file mode 100644
index b16d65c4b51..00000000000
--- a/db/migrate/20140407135544_fix_namespaces.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-class FixNamespaces < ActiveRecord::Migration[4.2]
- DOWNTIME = false
-
- def up
- namespaces = exec_query('SELECT id, path FROM namespaces WHERE name <> path and type is null')
-
- namespaces.each do |row|
- id = row['id']
- path = row['path']
- exec_query("UPDATE namespaces SET name = '#{path}' WHERE id = #{id}")
- end
- end
-
- def down
- end
-end