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!
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!
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
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), 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.” [email protected]
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/).
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
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/).
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs