I'm in the midst of an upgrade from Rails 2.0.2 to 2.1.1. We were using an older version of acts_as_versioned and after upgrading both Rails and acts_as_versioned we have 146 tests failing, mostly acts_as_versioned related.
[snip the 140 or so identical failing tasks] 145) NoMethodError in 'TaskTemplate should not re-create tasks for parts' undefined method `version=' for #<Part::Version:0x3e3b2fc> /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ attribute_methods.rb:251:in `method_missing' /Users/sporkmonger/Projects/Ruby/RailsSites/day/mojo/core/vendor/ plugins/acts_as_versioned/lib/acts_as_versioned.rb:276:in `send' /Users/sporkmonger/Projects/Ruby/RailsSites/day/mojo/core/vendor/ plugins/acts_as_versioned/lib/acts_as_versioned.rb:276:in `save_version' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/ callbacks.rb:173:in `send' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/ callbacks.rb:173:in `evaluate_method' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/ callbacks.rb:161:in `call' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/ callbacks.rb:93:in `run' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/ callbacks.rb:92:in `each' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/ callbacks.rb:92:in `send' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/ callbacks.rb:92:in `run' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/ callbacks.rb:272:in `run_callbacks' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ callbacks.rb:298:in `callback' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ callbacks.rb:208:in `create_or_update' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ base.rb:2211:in `save_without_validation' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ validations.rb:911:in `save_without_dirty' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ dirty.rb:75:in `save_without_transactions' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ transactions.rb:106:in `save' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ connection_adapters/abstract/database_statements.rb:66:in `transaction' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ transactions.rb:79:in `transaction' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ transactions.rb:98:in `transaction' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ transactions.rb:106:in `save' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ transactions.rb:118:in `rollback_active_record_state!' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ transactions.rb:106:in `save' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/ base.rb:644:in `create' ./spec/models/task_template_spec.rb:17:
It seems to be trying to set the version_column value. I checked and the parts table (and all of the other versioned models) does have the version field present. The part_versions table is also present. What am I missing?