Foreign key


#1

t.belongs_to :movie, index: true
t.belongs_to :actor, index: true

hiii...smalll doubt...Why we add this code to PARTS model? Wat do we mean by index: true?


#2

Hi Rohit1693,

Could you please give me a link to the exercise you're on so I can look at the instructions and see what's going on in the code? Thanks :)