Rails Polymorphic Associations
14-Aug-2018 2429
What is a polymorphic association you might ask? It's where an ActiveRecord model can potentially belong to more than one other kind of model record. So the single instance of your car belongs to you, a person, whereas other cars may individually belong to a car lot, a business. Why do we need it?.
Rails Polymorphic Associations #ruby #rubydeveloper #rubyonrails #Rails #Polymorphic #Associations https://rubyonrails.ba/link/rails-polymorphic-associations