summaryrefslogtreecommitdiff
path: root/db/post_migrate/20161221140236_remove_unneeded_services.rb
blob: a94ccc43a41d56c4943c7d1eef2346b6d4b38ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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