--- title: Getting started with Ruby on Rails and Postgres on Supabase description: 'Learn how to create a new Rails app and connect it to a Supabase Postgres database.' author: thor_schaeff imgSocial: getting-started/rails/rails.jpg imgThumb: getting-started/rails/rails.jpg categories: - engineering tags: - postgres - developers - ruby date: '2024-01-29' toc_depth: 3 --- Every Supabase project comes with a full [Postgres](https://www.postgresql.org/) database, a free and open source database which is considered one of the world's most stable and advanced databases. Postgres is an ideal choice for your Ruby on Rails applications as Rails ships with a built-in Postgres adapter! In this post we'll start from scratch, creating a new Rails project, connecting it to our Supabase Postgres database, and interacting with the database using the Rails Console. Supabase is one of the best [free alternatives to Heroku Postgres](/alternatives/supabase-vs-heroku-postgres). See [this guide](/kb/guides/migrate-from-heroku) to learn how to migrate from Heroku to Supabase. There's also a [Heroku to Supabase migration tool](https://migrate.supabase.com/) available to migrate in just a few clicks. If you prefer video guide, you can follow along below. And make sure to subscribe to the [Supabase YouTube channel](https://www.youtube.com/channel/UCNTVzV1InxHV-YR0fSajqPQ?view_as=subscriber&sub_confirmation=1)!