Migrate settings according to r12208 (#7590).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12209 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-10-13 07:39:20 +00:00
parent b6cb7aa8e3
commit c6c0491ad8
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ class SupportForMultipleCommitKeywords < ActiveRecord::Migration
status_id = Setting.where(:name => 'commit_fix_status_id').limit(1).pluck(:value).first status_id = Setting.where(:name => 'commit_fix_status_id').limit(1).pluck(:value).first
done_ratio = Setting.where(:name => 'commit_fix_done_ratio').limit(1).pluck(:value).first done_ratio = Setting.where(:name => 'commit_fix_done_ratio').limit(1).pluck(:value).first
if keywords.present? if keywords.present?
Setting.commit_update_keywords = {keywords => {'status_id' => status_id, 'done_ratio' => done_ratio}} Setting.commit_update_keywords = [{'keywords' => keywords, 'status_id' => status_id, 'done_ratio' => done_ratio}]
end end
Setting.where(:name => %w(commit_fix_keywords commit_fix_status_id commit_fix_done_ratio)).delete_all Setting.where(:name => %w(commit_fix_keywords commit_fix_status_id commit_fix_done_ratio)).delete_all
end end