I\'ve been playing with Entity Framework 4, using the model driven approach to generate the database script from my entities. This is great but I\'m not sure how this works
Well, if you want to work like ActiveRecord, then you need to work like ActiveRecord. :)
However, if you want to use model-first but still use migrations, this will be possible, but will require extra work on your behalf. Model-first will generate a database change script. You will have to extract the relevant parts into migrations, as well as manually writing undo scripts. Although this involves some manual labor, it doesn't strike me as terribly difficult.