Hello!

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

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



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



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

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

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: 
http://www.nabble.com/Rails%2C-rake-and-postgresql-roles-tp23810901p23810901.html
Sent from the RubyOnRails Users mailing list archive at Nabble.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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to