summaryrefslogtreecommitdiff
path: root/db/post_migrate/20161011222551_remove_inactive_jira_service_properties.rb
blob: eacc6d1b03388d6449bd22dab2a47f31915cc56d (plain)
1
2
3
4
5
6
7
8
9
10
class RemoveInactiveJiraServiceProperties < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = true
  DOWNTIME_REASON = "Removes all inactive jira_service properties".freeze

  def up
    execute("UPDATE services SET properties = '{}' WHERE services.type = 'JiraService' and services.active = false")
  end
end