General_9
General_9

Reputation: 2319

pg_dump not found in rails

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

Answers (1)

Sean
Sean

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

Related Questions