BigW Consortium Gitlab

20161221140236_remove_unneeded_services.rb 280 Bytes
Newer Older
1 2 3 4 5 6
class RemoveUnneededServices < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
7 8
    disable_statement_timeout

9 10 11 12 13 14 15
    execute("DELETE FROM services WHERE active = false AND properties = '{}';")
  end

  def down
    # noop
  end
end