#915 ✓resolved
Aleks Clark

rails3 branch migration generator broken for polymorphic models

Reported by Aleks Clark | February 9th, 2011 @ 02:53 PM | in Hobo 1.3 (Rails 3)

the hobo migration generator fails to recognize that tables for a polymorphic model have already been created & migrated, thus generating up/down migrations for these models every time it is called. Possibly another postgres conflict.

Steps to reproduce:

use hobo 1.3-pre26 & rails3 & pg gem

create model that sets :polymorphic => true

hobo g migration TWICE

observe duplicate migration generated for your model, has to be manually edited before it will run (if you had anything else you wanted to migrate, otherwise you just have a blank migration after taking out the dupe)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Referenced by

Pages