Commit 2ba7ce99 authored by Yorick Peterse's avatar Yorick Peterse Committed by Douglas Barbosa Alexandre

Merge branch 'zj-remove-unused-services' into 'master'

Remove unused services from the database

Closes #25727

See merge request !8225
parent 78fbee78
---
title: Remove unused and void services from the database
merge_request:
author:
class RemoveUnneededServices < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
execute("DELETE FROM services WHERE active = false AND properties = '{}';")
end
def down
# noop
end
end
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20161220141214) do ActiveRecord::Schema.define(version: 20161221140236) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment