17 lines
314 B
Ruby
17 lines
314 B
Ruby
require 'fileutils'
|
|
|
|
class RemoveSatellites < ActiveRecord::Migration
|
|
def up
|
|
satellites = Gitlab.config['satellites']
|
|
return if satellites.nil?
|
|
|
|
satellites_path = satellites['path']
|
|
return if satellites_path.nil?
|
|
|
|
FileUtils.rm_rf(satellites_path)
|
|
end
|
|
|
|
def down
|
|
# Do nothing
|
|
end
|
|
end
|