gitlab-org--gitlab-foss/db/migrate/20140407135544_fix_namespaces.rb
Ciro Santilli a7e0ca9e83 Add trailing newline to all text files.
Present in the large majority of files of each respective type.
2014-06-21 11:20:22 +02:00

10 lines
220 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