Include rake migration in a plugin

Hi there,

as sad as it seems, I can't find a hint on how to include a simple statement like   rake db:sessions:create   rake db:migrate in the rakefile of a plugin that I want to write myself.

Any help of of course appreciated - thanks in advance.

Best, Alain M. Lafon

Alain m. Lafon wrote:

as sad as it seems, I can't find a hint on how to include a simple statement like   rake db:sessions:create   rake db:migrate in the rakefile of a plugin that I want to write myself.

You can invoke rake tasks with Rake::Task['task:name'].invoke.