ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

chili-fix-db-migrate-01.diff

Toshi MARUYAMA, 2012-10-14 05:35 pm

Download (862 Bytes)

 
b/db/migrate/20100714111652_update_journals_for_acts_as_journalized.rb
50 50
      t.string :journalized_type, :limit => 30, :default => "", :null => false
51 51
    end
52 52

  
53
    custom_field_names = CustomField.all.group_by(&:type)[IssueCustomField].collect(&:name)
54 53
    Journal.all.each do |j|
55 54
      # Can't used j.journalized.class.name because the model changes make it nil
56 55
      j.update_attribute(:journalized_type, j.type.to_s.sub("Journal","")) if j.type.present?