# Migration Errors?

**URL:** <https://www.ruby-forum.com/t/migration-errors/53928>\
**Category:** Rails\
**Created:** [February 17, 2006, 3:31am UTC](https://www.ruby-forum.com/t/migration-errors/53928 "2006-02-17T03:31:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@daveh](https://www.ruby-forum.com/u/daveh)\
**Post date:** [February 17, 2006, 3:31am UTC](https://www.ruby-forum.com/t/migration-errors/53928/1 "2006-02-17T03:31:07Z")

</div>

Hi there,

I just bought the Rails Recipes and PDF preview of the book. So far  
it’s excellent. I decided to try Chapter 8 of the book regarding  
tagging.

I’ve done migrations before, and I feel comfortable with them, however  
this error stumps me.

* * *

## antrover:~/RubyProjects/rlog dhoefler$ ruby script/generate migration add\_db\_tagging /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/core\_ext/hash/keys.rb:48:in `assert_valid_keys': Unknown key(s): polymorphic (ArgumentError) from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:519:in`belongs\_to\_without\_reflection’ from (eval):5:in `belongs_to' from script/../config/../vendor/plugins/acts_as_taggable/lib/tagging.rb:3 from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:207:in`load’ from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/dependencies.rb:207:in `load' from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:39:in`require\_or\_load’ from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/dependencies.rb:22:in `depend_on' from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:30:in`associate\_with’ … 35 levels… from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `require__' from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require’ from /Applications/Locomotive/Bundles/rails-1.0.0-min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/dependencies.rb:214:in `require’ from script/generate:3

As you can see I’m running Locomotive on OS X 10.4.5. I have Rails  
1.0. Right before I tried the migration I ran the following:

ruby script/plugin install acts\_as\_taggable

This is odd because I’ve done migrations before without any problem on  
my Mac. All of a sudden they just stopped working.

Any ideas?

Thank you,  
Dave H.

---

<div class="post-metadata">

**Author:** ![daveh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@daveh](https://www.ruby-forum.com/u/daveh)\
**Post date:** [February 17, 2006, 3:34am UTC](https://www.ruby-forum.com/t/migration-errors/53928/2 "2006-02-17T03:34:09Z")

</div>

I know you need to get Edge Rails for it too work.

rake freeze\_edge… is one way of doing it

I don’t know for sure if that is what is causing you the problem but  
it will be a problem nevertheless :-). Try it.

On 16-Feb-06, at 9:29 PM, Dave H. wrote:

> antrover:~/RubyProjects/rlog dhoefler$ ruby script/generate migration  
> from script/…/config/…/vendor/plugins/acts\_as\_taggable/  
> min.bundle/Contents/Resources/ports/lib/ruby/gems/1.8/gems/  
> … 35 levels…  
> activesupport-1.2.5/lib/active\_support/dependencies.rb:214:in  
> my Mac. All of a sudden they just stopped working.
> 
> Any ideas?
> 
> Thank you,  
> Dave H.
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

John K.  
[http://www.kopanas.com](http://www.kopanas.com)

=====================================================================  
[http://www.soen.info](http://www.soen.info) - source of the freshest software engineering  
information on the net  
[http://cusec.soen.info](http://cusec.soen.info) - software engineering conference

---

<div class="post-metadata">

**Author:** ![daveh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@daveh](https://www.ruby-forum.com/u/daveh)\
**Post date:** [February 17, 2006, 3:55am UTC](https://www.ruby-forum.com/t/migration-errors/53928/3 "2006-02-17T03:55:17Z")

</div>

Ok… I’ll have to try that.

For now I just deleted the whole acts\_as\_taggable directory under  
vendor/plugins. I can now do migrations again. 🙂 I’ll come back to  
that chapter at a later time.

Thanks for the info!

-Dave

---

<div class="post-metadata">

**Author:** ![daveh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@daveh](https://www.ruby-forum.com/u/daveh)\
**Post date:** [February 22, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/migration-errors/53928/4 "2006-02-22T23:23:36Z")

</div>

On 2/16/06, Dave H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Ok… I’ll have to try that.
> 
> For now I just deleted the whole acts\_as\_taggable directory under  
> vendor/plugins. I can now do migrations again. 🙂 I’ll come back to  
> that chapter at a later time.
> 
> Thanks for the info!
> 
> -Dave

Hi Dave. Sorry I missed this when you originally posted it. You do  
indeed need Edge Rails for acts\_as taggable. The new version of the  
book walks you through how to get onto Edge Rails.

–  
Chad F.  
[http://chadfowler.com](http://chadfowler.com)  
[http://pragmaticprogrammer.com/titles/fr\_rr/](http://pragmaticprogrammer.com/titles/fr_rr/) (Rails Recipes - In Beta!)  
[http://pragmaticprogrammer.com/titles/mjwti/](http://pragmaticprogrammer.com/titles/mjwti/) (My Job Went to India,  
and All I Got Was This Lousy Book)  
[http://rubycentral.org](http://rubycentral.org)  
[http://rubygarden.org](http://rubygarden.org)  
[http://rubygems.rubyforge.org](http://rubygems.rubyforge.org) (over one million gems served!)
