Understanding Rails Polymorphic Active Record Associations

Written by Addo | Published 2020/05/31
Tech Story Tags: tech | web-development | ruby-on-rails | ruby | backend | software-engineering | software-testing | programming

TLDR Understanding Ruby Ruby's Active Record Pattern. Polymorphic Association is an Active Record Association that can connect a model to multiple other models. For example; we can use a single association to connect a Post model with Comment and Like models, allowing us to query the Post model. My next article will be about Javascript Async and Await Tags. For more information and details, let us visit the rails documentation here: http://guides.rubyonrails.org/active_record_basics.html.via the TL;DR App

no story

Written by Addo | Full-Stack Web Developer
Published by HackerNoon on 2020/05/31