gitlab-org--gitlab-foss/db/migrate/20140407135544_fix_namespac...

11 lines
220 B
Ruby
Raw Normal View History

2014-04-07 14:03:49 +00:00
class FixNamespaces < ActiveRecord::Migration
def up
Namespace.where('name <> path and type is null').each do |namespace|
2014-04-07 14:26:52 +00:00
namespace.update_attribute(:name, namespace.path)
2014-04-07 14:03:49 +00:00
end
end
def down
end
end