Delegated Types - Rails in Focus

Published: 02 September 2024
on channel: Ruby on Rails
4,279
343

In the first video of this new series, we're diving into a Rails feature that can transform how you manage your app's database relationships - Delegated Types. Introduced in Rails 6.1, this feature offers a new approach to multi-table inheritance, providing a more efficient and type-safe alternative to Single Table Inheritance (STI) and classic Polymorphism.

For more info on Delegated Types, check out:
The Rails Guides: https://guides.rubyonrails.org/associ...
The Rails API Docs: https://api.rubyonrails.org/classes/A...

***
Rails in Focus is a series of Rails tips and best practices for Rails devs of all levels, made by the community, for the community.

Emmanuel Hayford ( @siaw23 ) is our first host for the series, but there will be more hosts as the mic is passed to other Rails devs. If you have Rails tips to share and want to host, please get in touch https://shorturl.at/CecD6

#rails #rubyonrails #activerecord #delegatedtypes #codingtutorial #webdevelopment #Ruby #coding #polymorphism #database


Watch video Delegated Types - Rails in Focus online without registration, duration hours minute second in high quality. This video was added by user Ruby on Rails 02 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4,279 once and liked it 343 people.