firstruby

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 http://www.enterprisedb.com/products/pgdownload.do

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!! 🙂

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

 
%d bloggers like this: