BFX462heo
02/14/2023, 7:45 AMkennyadsl
pgloader sqlite:///path/to/file.db <pgsql://pguser@pghost/dbname>
after creating your empty postgres databaseBFX462heo
02/14/2023, 9:01 AMdb/
folder I have not the extension .db, I have .sqlite3 extension.kennyadsl
BFX462heo
02/14/2023, 9:02 AMBFX462heo
02/14/2023, 10:14 AMkennyadsl
BFX462heo
02/14/2023, 10:26 AMgem "pg"
. And I need to modify the `config/database.yml`file. Do you know where can I find a database.yml template with the correct postgres configuration? I've found some of them but they are diferent and I dont know wich is the correct.
Thanks in advance.BFX462heo
02/15/2023, 5:45 PMgem "pg"
.
• Comment or remove the Sqlite3 gem in the Gemfile
.
• Fix the application gem's dependencies; bundle install
.
• Configure the config/database.yml
file to connect the PG db with the Rails app...BFX462heo
02/15/2023, 5:47 PMBFX462heo
02/15/2023, 5:50 PMrails db:create
.
• Execute the migrations to generate all the tables and relations; rails db:migrate
.
• Verify with the server; rails server
.
• ✅BFX462heo
02/15/2023, 5:53 PMBFX462heo
02/16/2023, 9:15 AM