From the source
Summary by forck
Every Supabase project comes with a full Postgres 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.
- Need help migrating?
- Supabase is one of the best free alternatives to Heroku Postgres .
- See this guide to learn how to migrate from Heroku to Supabase.
- There's also a Heroku to Supabase migration tool 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 !
- Create a Rails Project # Make sure your Ruby and Rails versions are up to date, then use rails new to scaffold a new Rails project.
- Use the -d=postgresql flag to set it up for Postgres.
- Go to the Rails docs for more details.
- Set up the Postgres connection details # Go to database.new and create a new Supabase project.
- Save your database password securely.
- …





