James
I've managed to get some stuff done by exporting RAILS_ENV to test and
running rake db:migrate ...can also run my rspec user stories fine
and can run individual specs with the ruby interpreter... just not via
rake, which is a serious hinderence.
I do have the postgres gem installed, though I didn't know that 2.1 no
longer installed the postgres adapter. I can see the db from my app,
it's only with rake that I'm having problems.
...still lost.
This thread may be related to your problem in some way:
http://www.ruby-forum.com/topic/155617
It seems the drop & create statements have changed in a way that
postgres 8.1 & earlier don't like.
The only other thing I can think of is to check your database.yml for
odd characters.
You shouldn't have tabs, only spaces. Maybe check the "database:" part
of test?
- Try to run script/console -e test and see if you get an error.
Thanks for the direction... Ie monkey patched those methods, but to no
avail... dont think that was the problem, though it did seem
promising.
The first thing I checked was my database.yml, I know how sensitive
yml can be ...and it's def right. I also did run script/console test
(you dont need the -e like in script/server) when I checked it the
first time, so the environment is def loading up fine otherwise. (I
created records from console and they do appear in the test db). It
really looks like an issue in rake somewhere... but... ?
...sigh.
On Mon, Jun 23, 2008 at 1:20 PM, James Silberbauer
Rails 2.0.2 works fine.
On Monday 23 June 2008 14:44:46 Nic Young wrote:
> So if anyone's interested... don't run Rails 2.1 and postgres
> (8.0.15)... just say no.
>
> Rails 2.0.2 works fine.
My advice is, don't use recent Rails releases that introduced lots of
new features, unless you wish to assist with beta testing.
The Rails core team members are many things -- great release engineers
is not yet an item on the list. :-)
Ciao,
Sheldon.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFIYjudpGJX8XSgas0RAvw6AKCxRO7N2pNZ+dZ/pvLRA/pHkXPtTgCeL6Fy
isBwjlLuYBlui1qTHzu5Rck=
=P/Oi
-----END PGP SIGNATURE-----