Question : create rails project with postgres
Answered by : christian-icwbcen3kvoo
rails new my_app_name --database=postgresql
Source : | Last Update : Wed, 16 Mar 22
Question : How To Set Up Ruby on Rails with Postgres
Answered by : ben-kiboma
https://medium.com/@frouster/ruby-on-rails-postgresql-f1b037924bdf
https://www.digitalocean.com/community/tutorials/how-to-set-up-ruby-on-rails-with-postgres
https://www.ionos.com/digitalguide/server/know-how/use-postgresql-with-ruby-on-rails-on-ubuntu/
#Install Rails
gem install rails
#Install Postgress
gem install pg
#Setting Up Postgres
su - postgres
psql
create role myapp with createdb login password 'password1';
#Creating Your Rails App
rails new myapp --database=postgresql
#More
rails db:create db:migrate
Source : | Last Update : Tue, 20 Sep 22