debian-mirror-gitlab/db/post_migrate/20161011222551_remove_inactive_jira_service_properties.rb
2019-01-03 12:48:30 +05:30

11 lines
336 B
Ruby

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