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

Fix faulty namespaces

Fixes #908

Now with updated schema.
This commit is contained in:
Dmitriy Zaporozhets
2014-04-07 15:45:37 +00:00
2 changed files with 11 additions and 1 deletions
@@ -0,0 +1,10 @@
class FixNamespaces < ActiveRecord::Migration
def up
Namespace.where('name <> path and type is null').each do |namespace|
namespace.update_attribute(:name, namespace.path)
end
end
def down
end
end
+1 -1
View File
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140313092127) do
ActiveRecord::Schema.define(version: 20140407135544) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"