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.
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.
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|
The :force => true drops the table before the create table is done to
ensures that the table can be created, consequently, by force.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs