Rake clone_schema|structure_to_test fail

When I do ‘rake clone_schema_to_test’ I get this:

(in /var/www/rails1)
rake aborted!
./db/schema.rb:34: syntax error, unexpected tCONSTANT, expecting kDO or
‘{’ or ‘(’
t.column “datetime”, :datetime, :default => Sun Mar 05 03:19:39 MST
2006, :null => false
^
./db/schema.rb:67: syntax error, unexpected tCONSTANT, expecting kDO or
‘{’ or ‘(’
t.column “added”, :datetime, :default => Sun Mar 05 03:19:39 MST 2006,
:null => false
^
./db/schema.rb:121: syntax error, unexpected tCONSTANT, expecting kDO or
‘{’ or ‘(’
t.column “added”, :datetime, :default => Sun Mar 05 03:19:39 MST 2006,
:null => false
^
./db/schema.rb:148: syntax error, unexpected tCONSTANT, expecting kDO or
‘{’ or ‘(’
t.column “joined”, :datetime, :default => Sun Mar 05 03:19:39 MST
2006, :null => false
^
./db/schema.rb:170: syntax error, unexpected tCONSTANT, expecting kDO or
‘{’ or ‘(’
t.column “added”, :datetime, :default => Sun Mar 05 03:19:40 MST 2006,
:null => false

And when I do ‘rake clone_structure_to_test’ I get this:

(in /var/www/rails1)
psql:db/development_structure.sql:13: ERROR: must be owner of schema
public

Looking at the first, shouldn’t Rails be putting quotes around the
default datetime values?

The second appears to be a permission problem with schema public, but
I’ve made sure its owner is the same as the one set in database.yml
(everything in the db should have the same owner).

Anybody have a clue about these errors?

thanks,
Joe