summaryrefslogtreecommitdiff
path: root/db/migrate/20161011222551_remove_inactive_jira_service_properties.rb
blob: 319d86ac1591ed10baa3f4a5f70c80380ed31f86 (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"

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