Master ruby with us

Configuration for PostgreSQL with RubyOnRails on Windows

Posted by firstruby on April 2, 2009

To configure the PostgreSQL with RoR applications, we need to do following setting,

Download PostgreSQL from

Install following gems,

gem install postgres-pr
gem install ruby-postgres

Then modify the /config/database.yml as following for the current environment,

adapter: postgresql
encoding: unicode
database: demo_development
username: postgres
password: root
host: localhost

You are done!! 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: