2018-11-13 02:27:31 -05:00
|
|
|
class RemoveUnneededServices < ActiveRecord::Migration[4.2]
|
2016-12-21 08:43:39 -05:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
2016-12-27 05:10:13 -05:00
|
|
|
disable_statement_timeout
|
|
|
|
|
2016-12-21 08:43:39 -05:00
|
|
|
execute("DELETE FROM services WHERE active = false AND properties = '{}';")
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
# noop
|
|
|
|
end
|
|
|
|
end
|