2 ms·
I've found a lot of success with this migration concept for a normal Rails API app. It makes things like renaming or removing attributes a breeze. And I've also
by ezekg 4y ago
I've found a lot of success with this migration concept for a normal Rails API app. It makes things like renaming or removing attributes a breeze. And I've also weathered some complex migrations -- changing has-one associations to has-manys, and moving attributes from 1 big resource into 3 smaller resources. All while keeping backwards-compatibility with clients on older API versions.
It really is like magic!