2016-06-16 23:09:34 +05:30
|
|
|
# rubocop:disable all
|
2014-09-02 18:07:02 +05:30
|
|
|
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
|