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