2016-12-21 08:43:39 -05:00
|
|
|
class RemoveUnneededServices < ActiveRecord::Migration
|
|
|
|
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
|