BigW Consortium Gitlab

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

  def down
  end
11
end