gitlab-org--gitlab-foss/db/migrate/20151023144219_remove_satellites.rb

19 lines
336 B
Ruby
Raw Normal View History

# rubocop:disable all
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