20151023144219_remove_satellites.rb 314 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
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