Would it be possible to lift Rails’ migrations and stick it straight into a PHP app (and run it with the rake command, etc)?
I’ve been looking into PHP equivalents, but I haven’t been completely satisfied with them, so I figured there should be a way to pull Rails’ version and stick it somewhere in the file structure of my app.
Many thanks!
You could certainly write a tiny little rails app that only had migrations in it – the migrations don’t care what ends up using the tables they create. With a bit more work you should be able to craft something that only uses the activerecord and activesupport gem, without requiring a whole rails app.