Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20161011222551_remove_inactive_jira_service_properties.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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