Question

i have created database and tables in postgres pgadmin want to connect to my new rails app

Posted July 7, 2021 70 views
Ruby on RailsUbuntuPostgreSQLRuby

i have created database and tables in postgres want to connect to my new rails app. Also after connecting it how can i run migrations or show all data that was in those tables in rails console. like User.all()

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi,

You can try this tutorial.

by Alex Ghiculescu
This tutorial helps with setting up Ruby on Rails with Postgres.