mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 00:26:07 +10:00
10 lines
219 B
Ruby
10 lines
219 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 |