blob: 8c4f2b0f6b12329e6df0702a6d837eafc3c21fc5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
|