Forum: Ruby on Rails Rails, rake and postgresql roles

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ajax (Guest)
on 2009-06-01 11:55
(Received via mailing list)

I have a problem when running db:create in a newly created rails

With a project named 'yoyo' as an example, rake db:create gives me the

FATAL  C28000  Mrole "yoyo" does not exist  Fmiscinit.c  L420
[..many lines of traceing..]
Couldn't create database for {"encoding"=>"unicode",
"adapter"=>"postgresql", "password"=>nil,

.. whereas if I create a project with the name of an existing psql role
example my own user name), things go well. What is this stuff? Must I
psql roles for each project now? Would be kinda weird.

Last summer when I was doing rails stuff this worked without any
Since then, of course both ruby, rails and postgres versions have

The current versions I have on my MacBook pro (OSX 10.5.7) are:

$ psql --version
psql (PostgreSQL) 8.3.3
$ ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
$ rails -v
Rails 2.3.2

What gives? I so wanna go by rails (toot-toot!) right now. Sniff.

/Your friend - me

View this message in context:
Sent from the RubyOnRails Users mailing list archive at
This topic is locked and can not be replied to.