summaryrefslogtreecommitdiff
path: root/db/migrate/20151023144219_remove_satellites.rb
blob: 2d1310b0208c12c1d201081f91b78bb82ad69c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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