Rake doesn't know how to build 'db_schema_dump'

Alright, I’m a complete newbie at rails. I have over 4 years experience
and php and figured I would try my hand at rails. So I’m following the
‘Migration tutorial’ from the RoR homepage. I’m trying to build a
Sqlite3 database using the Sqlite3 gem.

Database.yml:

development:
adapter: sqlite3
database: db/development.sqlite3
timeout: 5000

test:
adapter: sqlite3
database: db/test.sqlite3
timeout: 5000

production:
development

Outputs

C:\ruby\blog\db>rake db_schema_dump
(in C:/ruby/blog)
rake aborted!
Don’t know how to build task ‘db_schema_dump’

(See full trace by running task with --trace)

C:\ruby\blog\db>rake db_schema_dump --trace
(in C:/ruby/blog)
rake aborted!
Don’t know how to build task ‘db_schema_dump’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1472:in []' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:intop_level’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:intop_level’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
standard_exceptio n_handling' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:intop_level’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:instandard_exceptio
n_handling’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7 c:/ruby/bin/rake:16:inload’
c:/ruby/bin/rake:16

Any help is greatly appreciated.

C:\ruby\blog\db>rake db_schema_dump
(in C:/ruby/blog)
rake aborted!
Don’t know how to build task ‘db_schema_dump’

Rake tasks can now have namespaces and rails uses them. It looks like
the tutorial assumes a prior version of rails before rake namespaces
existed. You probably need:

rake db:schema:dump

You can get a full list of rake tasks available, but running:

rake -T

Hope that helps,
Jordan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs