1812d523a3
This adds a migration to remove unused services, where the properties are empty. As the properties are empty, those do not contain any settings or other information. Fixes #25727
13 lines
249 B
Ruby
13 lines
249 B
Ruby
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
|