
Eric Chua
Joined
Activity
Here's how we can do it manually, so we can continue the course (since the command db:system:change can't work)
- Open gemfile
comment out sqlite, and add pg gem (find the latest version from rubygems)
Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
Use pg as the database for Active Record
gem 'pg', '~> 1.2', '>= 1.2.3'
- Open config/database.yml
copy all from
https://github.com/excid3/scheduled_tweets/blob/master/config/database.yml
and replace the existing file
- run this
rails db:setup
then
rails db:migrate
It works.
I tried to fall back to ruby 2.7.5, still same error. Any help?
I am stuck with this (under part 38 of the beginner series too), same issue
On my Mac, i am getting this error
rails db:system:change --to=postgresql
Running via Spring preloader in process 42311
invalid option: --to=postgresql
Any idea?
For those who struggled to push the codes on Mac now
Have to do this
brew install gh
gh auth login
Choose github.com (not enterprise), https, Y, login to github.com, then can work