On Saturday, June 8, 2013 3:28:56 PM UTC+1, Ruby-Forum.com User wrote: > > I want to put all app migrations in a plugin. And then when I run > > > rake db:migrate > > and as the command is not able to find migrations in > "App\db\migrate" directory (the default one) I want it to be redirected > to look for migration files in my plugin and use them from that > location. > > Plugins are deprecated. Write an engine ( http://guides.rubyonrails.org/engines.html ) instead. Engines can (among other things have migrations)
Fred > My questions are: > 1) Are there some predefined rails hooks? Something like a method > > > migration_missing(find_migration_here) > > 2) If there are no special hooks, is it possible to implement the > behavior without much code or hacking Rails? > > -- > Posted via http://www.ruby-forum.com/. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b1514354-1c87-4c8b-a79e-0aaf770e5408%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.

