Forum: Ruby on Rails rake clone_schema|structure_to_test fail

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joe (Guest)
on 2006-03-05 12:42
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
This topic is locked and can not be replied to.