Bugfixes, improvements and more!

Hey, this is Greg, bringing you the latest news about Ruby on Rails!

Fix db:schema:load when table definition contains partitions

This PR fixes a bug with loading the schema to MySQL if the schema contains table definitions with partitions.

Add strict loading to Active Storage

The strict_loading option has been added to Active Storage, you can enable it like this:

has_one_attached :logo, strict_loading: true
has_many_attached :images, strict_loading: true

Fixed odd behavior of inverse_of with multiple belongs_to to the same class

An issue was introduced when foreign key validation was added to automatic_inverse_of and it is fixed by this PR. You can find an example and detailed explanation on the PR itself.

Use FFmpeg scene detection for video previews

This PR adds FFmpeg scene detection to Active Storage video previews. There are some test results on the PR to see how it works.

17 people contributed to Rails since last time, have a look at the open issues and become one of them! Until next week!

This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA
Unsubscribe | View in browser