fix update_journals_for_acts_as_journalized down migration

pull/133/head
Toshi MARUYAMA 12 years ago committed by Jens Ulferts
parent 1fcc9a2fbe
commit 8db3b7ebeb
  1. 1
      db/migrate/20100714111652_update_journals_for_acts_as_journalized.rb

@ -50,7 +50,6 @@ class UpdateJournalsForActsAsJournalized < ActiveRecord::Migration
t.string :journalized_type, :limit => 30, :default => "", :null => false
end
custom_field_names = CustomField.all.group_by(&:type)[IssueCustomField].collect(&:name)
Journal.all.each do |j|
# Can't used j.journalized.class.name because the model changes make it nil
j.update_attribute(:journalized_type, j.type.to_s.sub("Journal","")) if j.type.present?

Loading…
Cancel
Save