Create migration code from existing content type definition

Topics: Troubleshooting, Writing modules
Mar 19, 2015 at 4:16 PM
I know there's a way to create content type from migration code. However, I'm looking for a way to reverse the action, i.e. from the content type (content definition) that I built from UI, I want to scaffold migration code from it.

Has anybody thought of this?

Thanks in advance :).
Mar 20, 2015 at 9:35 PM
I'm not aware of any such tools, but I imagine it wouldn't be too hard to write it. Perhaps you could at it to Hazza's Orchard VS add in.