Ruby on Rails blog example which works on redactor-rails and pg_search gems.
White your user name and database name in.
development:
<<: *default
database: Blog_development
username: user_name
test:
<<: *default
database: Blog_test
username: user_name
Use command if you do not know user name of your Postgres base:
$ psql postgres -c '\du'