Forum: Ruby on Rails RE: HABTM - what am I doing wrong?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
HOGANBP (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Try dumping your model for items_subjects and recreate the migrations?

I'm not doing anything with those yet so I won't be much help, sorry. I
thought that a migration was created from your database tables... Not
sure how it works quite yet.
charlesleeds (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Yeah, did just that and found the answer is to set an ":id => false"
into the create_table statement.  It also set a :force => true, but I'm
not quite sure what that does yet.

    create_table "items_subjects", :id => false do |t|
nshb (Guest)
on 2005-11-12 12:49
(Received via mailing list)
The :force => true drops the table before the create table is done to
ensures that the table can be created, consequently, by force.

- Nathan
This topic is locked and can not be replied to.