# Rake db:bootstrap not appearing under rake -T

**URL:** <https://www.ruby-forum.com/t/rake-db-bootstrap-not-appearing-under-rake-t/128796>\
**Category:** Rails\
**Created:** [February 11, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/rake-db-bootstrap-not-appearing-under-rake-t/128796 "2008-02-11T17:05:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindtonic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Post date:** [February 11, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/rake-db-bootstrap-not-appearing-under-rake-t/128796/1 "2008-02-11T17:05:48Z")

</div>

Hello,

I have filled db/fixtures with the static data for my site in hopes of  
using db:bootstrap as described on many sites. But db:bootstrap is  
not available under my rake command. Any suggestions?

Thanks!

---

<div class="post-metadata">

**Author:** ![mindtonic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Post date:** [February 12, 2008, 12:49am UTC](https://www.ruby-forum.com/t/rake-db-bootstrap-not-appearing-under-rake-t/128796/2 "2008-02-12T00:49:00Z")

</div>

I don’t have a db:bootstrap rake task here. If I do

rake -T bootstrap

I get

rake bootstrap # Bootstrap the whole she-bang  
rake bootstrap:db:config # Copy database.example.yml into  
config/data…  
rake bootstrap:db:create # Create development and testing  
databases  
rake bootstrap:db:purge # Empty the development database  
rake bootstrap:fixtures:files # Copy test/fixtures/files to  
RAILS\_ROOT/files  
rake bootstrap:settings # Copy settings.example.yml into  
config/sett…  
rake cms:bootstrap # Bootstrap the database

I’ve never seen these before. Is one of these the one to which you’re  
referring? If db:bootstrap is a task that you’ve written, be sure to  
provide  
a description. For example,

namespace :db  
desc “Bootstraps…”  
task :bootstrap =\> :environment do  
…  
end  
end

Without one, I don’t think the task will show when you do rake -T.

Craig

---

<div class="post-metadata">

**Author:** ![mindtonic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Post date:** [February 22, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/rake-db-bootstrap-not-appearing-under-rake-t/128796/3 "2008-02-22T12:50:22Z")

</div>

I’m looking for a way to load fairly static data into my database  
after running migrations. I’ve been reading about db:bootstrap and  
have seen several references to the Technoweenie forum (http://  
[www.railsweenie.com/forums/2/topics/778](http://www.railsweenie.com/forums/2/topics/778)), but as of today, the website  
is not loading. Besides storing raw sql files, is there another way  
to do this that anyone knows about? There has to be, this seems like  
a basic DRY concept.

Thanks!

On Feb 11, 11:48 pm, “Craig D.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![mindtonic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Post date:** [February 24, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/rake-db-bootstrap-not-appearing-under-rake-t/128796/4 "2008-02-24T21:36:50Z")

</div>

The db:bootstrap task is code that is specific to the Mephisto code  
base,  
not Rails proper.  
When I needed similar functionality I took a look at that code and made  
my  
own version for my Kete app ([http://kete.net.nz/](http://kete.net.nz/)).

Seems like db:bootstrap is a good candidate for a plugin. If your going  
to  
have to do it anyway…

Or maybe sake, which I haven’t look into, but it is a way of sharing  
rake  
tasks.

Cheers,  
Walter

---

<div class="post-metadata">

**Author:** ![mindtonic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Post date:** [February 24, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/rake-db-bootstrap-not-appearing-under-rake-t/128796/5 "2008-02-24T21:41:33Z")

</div>

The db:bootstrap task is code that is specific to the Mephisto code  
base,  
not Rails proper.  
When I needed similar functionality I took a look at that code and made  
my  
own version for my Kete app ([http://kete.net.nz/](http://kete.net.nz/)).

Seems like db:bootstrap is a good candidate for a plugin. If your going  
to  
have to do it anyway…

Or maybe sake, which I haven’t look into, but it is a way of sharing  
rake  
tasks.

Cheers,  
Walter
