On May 20, 9:26 am, Siva Kilaru <[email protected]> wrote:
> I had one more problem. I dont want to use sqlite3 instead want to use
> Postgresql...
>
> Do u have any idea of how to do it..
>
> I think I installed all the required gems
>
> I want to modify the database.yml file which I did but even cant get the
> things done!!

If you have already generated the app, you need a section like this in
your database.yml:

development:
   adapter: postgresql
   host: localhost   # or your server name
   database: my_app_development
   username: me
   password: password

and similarly change the test and production sections too.

Once you've done that, you can use rake db:create to automatically
create your local postgres database which I think is pretty cool.

In the future, when you create a new Rails app, you can use the -d
option to specify postgresql, which will generate the database.yml for
you from the beginnning.

Jeff

purpleworkshops.com

> Someone or other please help me out in this as well
>
> Siva
> --
> Posted viahttp://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to