When you run the command on the terminal to create the Rails project database in Postgres:
$ rails db:create
I get this bug that I can not resolve for some time:
rails aborted! LoadError: cannot load such file -- 2.5/pg_ext Caused by: LoadError: cannot load such file -- pg_ext