James, on your presentation at railsconf ( http://rails-engines.org/news/2009/05/18/engines-a...) you suggest (for now) making your own generator to handle the migrations issue. Can you elaborate on that method?
on 2009-09-07 16:05
on 2009-09-07 23:03
Quoting Andrew Roth <andrewroth@gmail.com>: > James, on your presentation at railsconf ( > http://rails-engines.org/news/2009/05/18/engines-a...) you suggest > (for now) making your own generator to handle the migrations issue. Can you > elaborate on that method? I am not James - but I recently needed something like that. I used the Clearance engine as a model for buillding the migrations I wanted. http://github.com/thoughtbot/clearance/tree/master James, is there video anywhere of your talk? I got a lot out of the slides but there are a couple where I would like more detail as was probably provided at the talk. -- Cynthia Kiser
on 2009-09-07 23:06
Not sure if it's useful information or not, but in the repository I use for engines, I've made it simply use the current Rails migration mechanism, ie, no generator is required, the migrations in plugins are automatically ran. My repository is way out of date though... I should really do a pull to see if it works just fine with the recent changes. Miles
on 2009-09-07 23:10
I've got a small plugin that might help you: http://github.com/hpoydar/engines-helper
on 2009-09-07 23:13
2009/9/7 Cynthia Kiser <cnk@caltech.edu>: > Quoting Andrew Roth <andrewroth@gmail.com>: >> James, on your presentation at railsconf ( >> http://rails-engines.org/news/2009/05/18/engines-a...) you suggest >> (for now) making your own generator to handle the migrations issue. Can you >> elaborate on that method? > > I am not James - but I recently needed something like that. I used the > Clearance engine as a model for buillding the migrations I wanted. > > http://github.com/thoughtbot/clearance/tree/master This is basically correct - you want to use the 'migration_template' method available in the generator mechanism to copy a migration file into db/migrate, and Clearance is a reasonable example where this happens. The reason we do this is to place the migration in the appropriate part of the application timeline; this is one of the issues I covered in my presentation. You can see my blog for more discussion of this (http://interblah.net/plugin-migrations), but the gist is that I believe it is important to preserve the order migrations were applied. The other part of the migration issue is tracking which migrations have already run; there's no reason why you couldn't run the migration generators from Clearance multiple times, for example. This isn't a big deal normally, but comes into play if you're trying to 'upgrade' an engine in-place, and incorporate a new migration. > James, is there video anywhere of your talk? I got a lot out of the > slides but there are a couple where I would like more detail as was > probably provided at the talk. There's no video (probably for the best, to be honest), but I'm happy to answer questions here, if you've got them. - James
on 2011-01-05 07:32
<a href="http://www.ugg-boots-ugg.ru/угги-спб-высокие-класс... спб </a> <a href="http://www.ugg-boots-ugg.ru/угги-распродажа-высоки... распродажа </a> <a href="http://www.ugg-boots-ugg.ru/угги-москва-высокие-кл... москва в </a> <a href="http://www.ugg-boots-ugg.ru/угги-emu-высокие-класс... emu</a> <a href="http://www.ugg-boots-ugg.ru/угги-2010-высокие-клас... 2010 </a> <a href="http://www.ugg-boots-ugg.ru/угги-2009-высокие-клас... 2009</a> <a href="http://www.ugg-boots-ugg.ru/летние-угги-высокие-кл... угги</a> <a href="http://www.ugg-boots-ugg.ru/заказать-угги-высокие-... угги</a> <a href="http://www.ugg-boots-ugg.ru/угги-с-рисунком-коротк... с рисунком</a> <a href="http://www.ugg-boots-ugg.ru/угги-оптом-короткие-кл... оптом </a> <a href="http://www.ugg-boots-ugg.ru/угги-купить-онлайн-кор... купить онлайн</a> <a href="http://www.ugg-boots-ugg.ru/угги-из-австралии-коро... из австралии </a> <a href="http://www.ugg-boots-ugg.ru/угги-зимние-короткие-к... зимние</a> <a href="http://www.ugg-boots-ugg.ru/угги-заказать-короткие... заказать</a> <a href="http://www.ugg-boots-ugg.ru/угги-детские-короткие-... детские </a> <a href="http://www.ugg-boots-ugg.ru/угги-где-купить-коротк... где купить</a> <a href="http://www.ugg-boots-ugg.ru/сапоги-угги-купить-кор... угги купить</a> <a href="http://www.ugg-boots-ugg.ru/мужские-угги-купить-ко... угги купить</a> <a href="http://www.ugg-boots-ugg.ru/модные-угги-короткие-к... угги</a> <a href="http://www.ugg-boots-ugg.ru/купить-угги-недорого-к... угги недорого </a> <a href="http://www.ugg-boots-ugg.ru/вязаные-угги-купить-ко... угги купить</a> <a href="http://www.ugg-boots-ugg.ru/угги-купить-москва-угг... купить москва</a> <a href="http://www.ugg-boots-ugg.ru/угги-купить-в-киеве-уг... купить в киеве</a> <a href="http://www.ugg-boots-ugg.ru/угги-детские-купить-уг... детские купить</a> <a href="http://www.ugg-boots-ugg.ru/продам-угги-угги-детск... угги </a> <a href="http://www.ugg-boots-ugg.ru/кожаные-угги-угги-детс... угги</a> <a href="http://www.ugg-boots-ugg.ru/детские-угги-купить-уг... угги купить </a> <a href="http://www.ugg-boots-ugg.ru/угги-недорогие-угги-с-... недорогие</a> <a href="http://www.ugg-boots-ugg.ru/сапоги-угги-купить-нед... купить недорого</a> <a href="http://www.ugg-boots-ugg.ru/угги-цена-угги-на-пуго... цена </a> <a href="http://www.ugg-boots-ugg.ru/угги-фото-угги-на-пуго... фото</a> <a href="http://www.ugg-boots-ugg.ru/угги-купить-дешево-угг... купить дешево </a> <a href="http://www.ugg-boots-ugg.ru/угги-австралия-угги-на... австралия</a> <a href="http://www.ugg-boots-ugg.ru/обувь-угги-угги-на-пуг... угги </a> <a href="http://www.ugg-boots-ugg.ru/детские-угги-угги-на-п... угги </a> <a href="http://www.ugg-boots-ugg.ru/вязаные-угги-угги-на-п... угги</a> <a href="http://www.ugg-boots-ugg.ru/сапоги-угги-угиугги-с-... угги уги</a> <a href="http://www.ugg-boots-ugg.ru/сапоги-угги-недорого-у... угги недорого</a> <a href="http://www.ugg-boots-ugg.ru/недорогие-угги-угги-с-... угги</a> <a href="http://www.ugg-boots-ugg.ru/зимние-угги-угги-с-шну... угги</a> <a href="http://www.ugg-boots-ugg.ru/женские-угги-угги-с-шн... угги</a> <a href="http://www.ugg-boots-ugg.ru/женские-сапоги-угги-уг... сапоги угги</a>
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.