gitlab-org--gitlab-foss/db/migrate/20140407135544_fix_namespaces.rb

12 lines
242 B
Ruby
Raw Normal View History

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