Ruby Active Record Associations in Rails More Association Options A Migration for a Polymorphic Association

Muhammad sharifi
Muhammad sharifi
4,454 Points

We need to be able to specify that a Part model belongs to either a Car or a Truck (which we will refer to as "vehicles"

anyone can help

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 47,493 Points

See the previous video @ 2:47 for the code you want to follow