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
|
2014-06-21 05:18:57 -04:00
|
|
|
end
|