More dynamic approach to Rails migrations