gitlab-org--gitlab-foss/db/migrate/20140407135544_fix_namespaces.rb
Job van der Voort 52cf11b9f2 add a space
2014-04-07 14:26:52 +00:00

10 lines
No EOL
219 B
Ruby

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