Using migration methods in applications.

Is it possible to use methods for migration(create_table, add_column, etc) in applications.

I want to make a plugin which uses its own model. In such cases, most plugins seem to use script/generate to generate migration file. But I think if it is possible to make tables directly from plugins, uses doesn't have to use script/generate or rake. It'll be easier to use. But I couldn't find how to do it.

Any help appreciated.

Andy Matsubara

I found the answer by myself. http://api.rubyonrails.com/classes/ActiveRecord/Schema.html