fix db migrate #1164

master
Toshi MARUYAMA 2013-03-19 21:15:16 +01:00 committed by Holger Just
parent e4b814e167
commit 90a05668a0
1 changed files with 0 additions and 1 deletions

View File

@ -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?