Home / Companies / Yugabyte / Blog / Post Details
Content Deep Dive

How to Build a Ruby on Rails App using YugabyteDB and PostgreSQL

Blog post from Yugabyte

Post Details
Company
Date Published
Author
Brett Hoyer
Word Count
1,686
Language
English
Hacker News Points
-
Summary

Ruby on Rails, a popular web development framework since 2005, is often paired with PostgreSQL for its database needs due to its robust features like scaffolding, testing, and ORM. This guide illustrates the process of setting up a Ruby on Rails application using PostgreSQL, and demonstrates how to transition the application to YugabyteDB to enhance scalability and resilience. It details the installation of necessary dependencies, the creation of a simple financial application with models, controllers, and views, and the configuration of a PostgreSQL database. Furthermore, the guide explains the setup of a YugabyteDB cluster using Docker to achieve distributed SQL capabilities, allowing the application to maintain operations even during regional failures. By updating the database configuration, Rails applications can easily migrate from PostgreSQL to YugabyteDB, offering developers a seamless path to increased availability and scalability.