summaryrefslogtreecommitdiff
path: root/db/post_migrate/20161011222551_remove_inactive_jira_service_properties.rb
blob: bf3aee9941803dd3257cccc7022c74ccb174c4de (plain)
1
2
3
4
5
6
7
8
9
10
class RemoveInactiveJiraServiceProperties < ActiveRecord::Migration[4.2]
  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