Re: [Rails] Re: Why is AR migrations using one file per migration?
On Sunday, May 15, 2011 12:44:08 PM UTC-4, DK wrote:
Right. It is actually a really good question you raise, and yes a merge would not be any different than two devs who have modified any other file, git handles that gracefully. One thing I thoght of that at first I thought would make a one file situation more difficult but on reflection make a one file situation easier is rolling up migrations --- once I accumulate a lot of migrations I roll them up and dump the contents of the schema into the initial migration. Having one file would allow me just to delete text and copy rather than having to delete files. Not a big deal but one less step.
Yes, that would be a nice advantage. For Lobos, this could go one step further, as Clojure evaluates source code linearly, I could make the migrations ordered by their position into the file, thus making it really easy to reorder migrations.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home