rails
OR query with multiple conditions on same column using Sequel
A handy trick to use Sequel library to generate OR query with multiple conditions on same column
Read MoreCreating unlogged (PostgreSQL) tables in Rails
Create unlogged tables to improve performance especially in test environments in Rails and PostgreSQL
Read MoreEffective enqueuing of background jobs
We can increase efficiency of the background jobs by meticulously enqueuing only those jobs which are actually going to be executed and avoid jobs getting enqueued and discarded immediately.
Read MoreHow I write tests for my Rails (API) apps
My strategy of writing tests for Rails applications. Integration tests over unit tests. No to 100% test coverage.
Read MoreCustom directory for Webpacker in Rails apps
It is now possible to customize the Webpacker directory in Rails apps using the source_path configuration option.
Read MoreAllowing dots in Rails routes
Rails routes by default do not support dot character. This post describes a way to support them while explaining how Rails parses request URLs.
Read MoreDisable logging of (sensitive) arguments in Active Job
Filter out logging of sensitive parameters in background jobs handled by Active Job
Read MorePassing Rails controller params to Sidekiq
Passing Rails controller params to Sidekiq jobs
Read MoreDon't add database index if it already exists in Rails
Rails supports conditionally creating indexes based on whether they exist or not, without raising any error
Read More