Commit 6d196962670b35ea48588aad3cfdb6f2d11febab

Authored by Job van der Voort
1 parent 11d3a00c

Fix faulty namespaces

db/migrate/20140407135544_fix_namespaces.rb 0 → 100644
... ... @@ -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
... ...
db/schema.rb
... ... @@ -11,7 +11,7 @@
11 11 #
12 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 16 # These are extensions that must be enabled in order to support this database
17 17 enable_extension "plpgsql"
... ...