summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-13 07:39:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-10-13 07:39:20 +0000
commitc6c0491ad893082ed44599f54048b13545a7b731 (patch)
tree209c66102e97d7b65e1d5aa8303011ce96057ddc /db
parentb6cb7aa8e3b98db4095a1869d1ce51aefaf308db (diff)
downloadredmine-c6c0491ad893082ed44599f54048b13545a7b731.tar.gz
redmine-c6c0491ad893082ed44599f54048b13545a7b731.zip
Migrate settings according to r12208 (#7590).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12209 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20131004113137_support_for_multiple_commit_keywords.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb b/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb
index 77989d9f3..36104285b 100644
--- a/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb
+++ b/db/migrate/20131004113137_support_for_multiple_commit_keywords.rb
@@ -6,7 +6,7 @@ class SupportForMultipleCommitKeywords < ActiveRecord::Migration
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
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
Setting.where(:name => %w(commit_fix_keywords commit_fix_status_id commit_fix_done_ratio)).delete_all
end