Commit 8df66046d90cc4f4c53d8cf67ca2af5fcf87fd49

Authored by Dmitriy Zaporozhets
2 parents 26c51020 52cf11b9

Merge branch 'fix-faulty-namespaces' into 'master'

Fix faulty namespaces

Fixes #908

Now with updated schema.
db/migrate/20140407135544_fix_namespaces.rb 0 → 100644
@@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
  1 +class FixNamespaces < ActiveRecord::Migration
  2 + def up
  3 + Namespace.where('name <> path and type is null').each do |namespace|
  4 + namespace.update_attribute(:name, namespace.path)
  5 + end
  6 + end
  7 +
  8 + def down
  9 + end
  10 +end
0 \ No newline at end of file 11 \ No newline at end of file
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 # 11 #
12 # It's strongly recommended that you check this file into your version control system. 12 # It's strongly recommended that you check this file into your version control system.
13 13
14 -ActiveRecord::Schema.define(version: 20140313092127) do 14 +ActiveRecord::Schema.define(version: 20140407135544) do
15 15
16 # These are extensions that must be enabled in order to support this database 16 # These are extensions that must be enabled in order to support this database
17 enable_extension "plpgsql" 17 enable_extension "plpgsql"