98bb435f42
Migrations shouldn't fail RuboCop checks - especially lint checks, such as the nested method check. To avoid changing code in existing migrations, add the magic comment to the top of each of them to skip that file.
18 lines
336 B
Ruby
18 lines
336 B
Ruby
# 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
|