Ruby Active Record Associations in Rails Active Record Associations A "Has Many" Migration

MaryAnn Eleanya
MaryAnn Eleanya
8,626 Points

Hello, I don't know what I am doing wrong.

bin/rails g migration AddOwneridToPets owner_id:integer :index . "I don't know why this answer is not working."

1 Answer


You are very close!

Make sure to capitalize the i in Id when saying AddOwnerIdToPets and remove the space before the :index