Mercurial > hg > soundsoftware-site
view .svn/pristine/03/03dacc5eb19ef8f9c13510c3c9db9d59186398e2.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration
Fix failure to interpret Javascript when autocompleting members for project
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 11 Sep 2014 10:24:38 +0100 |
parents | dffacf8a6908 |
children |
line wrap: on
line source
class StoreRelationTypeInJournalDetails < ActiveRecord::Migration MAPPING = { "label_relates_to" => "relates", "label_duplicates" => "duplicates", "label_duplicated_by" => "duplicated", "label_blocks" => "blocks", "label_blocked_by" => "blocked", "label_precedes" => "precedes", "label_follows" => "follows", "label_copied_to" => "copied_to", "label_copied_from" => "copied_from" } def up StoreRelationTypeInJournalDetails::MAPPING.each do |prop_key, replacement| JournalDetail.where(:property => 'relation', :prop_key => prop_key).update_all(:prop_key => replacement) end end def down StoreRelationTypeInJournalDetails::MAPPING.each do |prop_key, replacement| JournalDetail.where(:property => 'relation', :prop_key => replacement).update_all(:prop_key => prop_key) end end end