Make db:bootstrap task work with DM 0.9
Reported by Jed Hurt | July 1st, 2008 @ 09:30 AM
Path from mariusz:
require 'merb-core'
require 'app/models/page'
require 'app/models/version'
desc 'Bootstrap the database. *** DESTRUCTIVE ***'
namespace :db do
task :bootstrap do
Version.auto_migrate!
Page.auto_migrate!
Page.create!(:name => 'Home', :content => '
style="color:#aaa">First
Page"?":http://github.com/meekish/collective/wikis/new?title=First
Page')
end
end
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A no-frills wiki powered by Merb and DataMapper.