in database.yml
development:
adapter: postgresql
encoding: unicode
database: demo_test_development
pool: 5
username: adarsh
password:
timeout: 5000
host: localhost
port: 5432
test:
adapter: postgresql
encoding: unicode
database: demo_test_test
pool: 5
username: adarsh
password:
timeout: 5000
host: localhost
port: 5432
in gem file
group :development do
gem 'pg'
gem 'taps'
end
then I do
1) Bundle install (is working)
2)rake db:setup,db:create,db:migrate(but is not working)
Getting error : could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? Couldn't create 'demo_test_development' database. Please check your configuration.