Commit 47c7e077 authored by Eric Davis's avatar Eric Davis

[#467] Fix bug with Journal subclasses having caches columns

parent b52d2b22
......@@ -50,6 +50,12 @@ class GeneralizeJournals < ActiveRecord::Migration
t.remove :journalized_type
end
# Reset class and subclasses, otherwise they will try to save using older attributes
Journal.reset_column_information
Journal.send(:subclasses).each do |klass|
klass.reset_column_information if klass.respond_to?(:reset_column_information)
end
# Build initial journals for all activity providers
providers = Redmine::Activity.providers.collect {|k, v| v.collect(&:constantize) }.flatten.compact.uniq
providers.each do |p|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment