gitlab-org--gitlab-foss/db/post_migrate/20161221140236_remove_unneeded_services.rb

14 lines
249 B
Ruby
Raw Normal View History

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