Rails

Upsert Respects on_duplicate with unique_by

Upsert would previously not execute the on_duplicate clause if the unique_by constraint found a match. This has been fixed.

ActiveStorage Pre-processes PDFs & Videos

Rails now pre-processes previewable files such as PDFs and videos. Previously it only pre-processed images.

Rails 7.1 path_params for url_for

path_params allows specified params to be used exclusively for named segments under scoped routing without unnecessarily appending parameters to every URL.

Rails 7.1 Enum Validate Option

Rails 7.1 added a validate option for enums, which will allow developers to validate the passed enum values before saving it.

Rails 7.1 reselect Accepts Hash Values

Use of hash syntax for specifying columns and aliases with the ActiveRecord::QueryMethods#reselect method makes it easier for querying.

Rails Dual Database Setup for Performance

Implement a Replica Database solution to overcome system strain with a dual DB approach for better performance.

Rails 7.1 Default Dockerfile for Production

Rails 7.1 generates Dockerfile, .dockerignore, and docker-entrypoint for easy production deployment.

Rails 7.1 perform_all_later for Jobs

perform_all_later allows us to enqueue multiple jobs that belong to different classes simultaneously within ActiveJob.

Rails 7.1 Async Query Support in ActiveRecord

With the Active Record API for general async queries we can efficiently query not so fast queries asynchronously to improve the performance.

Integrate Google Calendar API into rails

Read about how we can integrate Google Calendar API.