debian-mirror-gitlab/db/migrate/20151023144219_remove_satellites.rb
2019-02-15 15:39:39 +05:30

17 lines
319 B
Ruby

require 'fileutils'
class RemoveSatellites < ActiveRecord::Migration[4.2]
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