summaryrefslogtreecommitdiff
path: root/db/post_migrate/20161221140236_remove_unneeded_services.rb
blob: 31f2426387784f72c4a784276ceaeeeaca37ffbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class RemoveUnneededServices < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    disable_statement_timeout

    execute("DELETE FROM services WHERE active = false AND properties = '{}';")
  end

  def down
    # noop
  end
end