Commit 40fe26c2 authored by Francisco Juan's avatar Francisco Juan

fix migration of redmine_checkout plugin on new instances of chiliproject

parent c9b76a8d
class UpdateSettings < ActiveRecord::Migration
def self.up
settings = Setting.plugin_redmine_checkout
unless settings.class == Hash
settings = {}
end
if settings['checkout_url_type'] == "overwritten"
settings['checkout_url_type'] = "generated"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment