Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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