2015-10-23 10:51:44 -04:00
|
|
|
require 'fileutils'
|
|
|
|
|
2018-11-13 02:27:31 -05:00
|
|
|
class RemoveSatellites < ActiveRecord::Migration[4.2]
|
2015-10-23 10:51:44 -04:00
|
|
|
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
|