Reputation: 2319
I installed postgres, however when I try dump my database schema (sql) in a rails project I keep getting this error message in the console pg_dump not found in rails. Can anyone help with how to resolve this issue?
Upvotes: 1
Views: 2304
Reputation: 10206
You can figure things out this way:
find / -name pg_dump
dirname ${OUTPUT_FROM_ABOVE_COMMAND}
PATH=${PATH}:/path/to/dir/from/above/dirname/call; export PATH
And you should be good to go.
Upvotes: 2