I found the answer by myself.
http://api.rubyonrails.com/classes/ActiveRecord/Schema.html
On 4ζ1ζ₯, εεΎ11:48, Andy
<andymatsub...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---