2016-06-09 12:39:16 +00:00
|
|
|
# rubocop:disable all
|
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
|
2014-06-21 09:18:57 +00:00
|
|
|
end
|