BigW Consortium Gitlab

20140407135544_fix_namespaces.rb 220 Bytes
Newer Older
1 2 3
class FixNamespaces < ActiveRecord::Migration
  def up
    Namespace.where('name <> path and type is null').each do |namespace|
Job van der Voort committed
4
      namespace.update_attribute(:name, namespace.path)
5 6 7 8 9
    end
  end

  def down
  end
10
end