Overriding rake tasks

There’s a solution at http://dev.rubyonrails.org/ticket/2404 that
mentions overriding the rake tasks to drop the database and load in
the schema on each test run. I’d like to do this, but have no clue
how, despite plenty of googling. Can anyone help out?

Thanks,
Pat