2015-11-26 14:37:03 +05:30
|
|
|
require 'fileutils'
|
|
|
|
|
2018-12-23 12:14:25 +05:30
|
|
|
class RemoveSatellites < ActiveRecord::Migration[4.2]
|
2015-11-26 14:37:03 +05:30
|
|
|
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
|