|
|
|
|
|
by morokhovets
3800 days ago
|
|
I may be wrong but it looks that you just misunderstood what migrations offer and their usage patterns.
What if you have to remove one column and split its data into two new ones? I can provide dozens of similar examples from my production code.
In short, migrations are not only about schema metadata. It would make more sense if your gem would generate migrations from schema.rb changes. Also, that rant at the end of README kinda shows that you're hating the tool you're trying to use. Why not use another? You are not tied to ActiveRecord. I'm not trying to say that migrations are flawless as a tool. I've faced at least one major problem with them. But still. |
|
(1) If your data migrations are not "occasional" (and I mean very occasional) that's a sign you're doing a poor job at modeling your data. Splitting one column into two is almost always an example of someone really f-ing up the original schema.
Think of it this way: how do you switch branches? Do you look up the most recent ancestor, check it out, migrate down to it, then back up the new branch? It's so hard I don't know any rails devs who actually do it. But with a my tool it's a one-line command. PRs w/ schema changes actually get tested now, not just eyeballed.
Also, did you even read the "rant"? Do you seriously like the proposed version control tool modeled after rail's migrations? ;)