Fast Data Migration for Active Records in Rails: Zero Downtime Strategy

When updating a database schema in a Ruby on Rails application, zero-downtime migrations ensure that database changes do not cause application downtime or errors. Here are key techniques to achieve zero-downtime migrations: 1. Add New Columns Without Removing Old Ones Why? If a column is removed, existing code referencing it will break. How? First, add […]
Ruby on Rails – The most suitable web application development framework

Ruby on Rails: A Preferred Full-Stack Framework for SaaS Applications Ruby on Rails (AKA RoR) is follows the Model-View-Controller (MVC) architectural pattern. This way, we divide the application into 3 main areas to perform different roles. With the Ruby on Rails framework, it is safe to say, 30-40% faster development compared to other frameworks Multiple […]
Propshaft in Rails 8: New Asset Pipeline Library Explained ~ Part 1

With Rails 8, Propshaft is the default asset pipeline for new applications. To start a new Rails 7 application with propshaft use this command – rails new myapp -a propshaft There are other libraries for Asset Pipeline in applications with Rails 7.x versions, Sprockets Webpacker Importmap-Rails Let’s understand the basics of Asset Pipeline before we […]
Internationalization I18n in Ruby on Rails

In this Article we are going to built simple rails simple application to demonstrate the features of Rails Internationalization (I18n). We will cover very basic aspect of Internationalization. What is Internationalization? Internationalization means developing the application that can adapt any language easily without making any complex changes. Internationalization can be apply on string, date and […]
How to use Rails 6 webpack with front-end JS framework

Rails 6 comes with exciting new features like Parallel Testing, Multiple database Support and Webpacker. Lets understand the Webpacker because it is now used as the default javascript compiler in Rails 6. In the previous rails versions, we are using Sprockets as JS compiler. To understand Webpacker we first need to understand how it’s done […]
Rails 6 API fast_jsonapi gem with Devise and JWT authentication

This article is all about authentication in rails 6 using devise and devise-jwt with fast_jsonapi response. Fast_jsonapi A lightning fast JSON:API serializer for Ruby Objects. It is better in performance compared to Active Model Serializer. Devise and JWT Devise-jwt is a devise extension which uses JSON Web Tokens(JWT) for user authentication. With JSON Web Tokens […]