Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20151023144219_remove_satellites.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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