help integrating this railsweenie code

looks like a Rake task. try putting it in your Rakefile (in your Rails app’s root dir) and then run

rake db:bootstrap

Put it in lib/tasks/bootstrap.rake