Re: [Rails-core] Re: Schema.rb table and column order

2015-05-19 Thread Chad Woolley
+1 on allowing control over formatting, there's been many times over the years on various projects when schema.rb has flapped for spurious reasons, it would have been good to have had control over it. -- Chad On Tue, May 19, 2015 at 6:46 AM, Randy Parker wrote: > +1 on a DIY format. And I woul

Re: [Rails-core] Re: Schema.rb table and column order

2015-05-19 Thread Randy Parker
+1 on a DIY format. And I wouldn't justify it strictly on source control: I'd like it for other reasons too. Maybe a config/schema_format.rb ? On Tue, May 19, 2015 at 9:19 AM, Kevin Deisz wrote: > With all of these threads about schema.rb format - would it just be easier > to allow you to speci

Re: [Rails-core] Re: Schema.rb table and column order

2015-05-19 Thread Kevin Deisz
With all of these threads about schema.rb format - would it just be easier to allow you to specify your own formatter? Have something that responds to format_for(table, columns) or something to that effect? The issue here is that everyone is going to want something different from that file. On Tue

[Rails-core] Re: Schema.rb table and column order

2015-05-19 Thread Matias Korhonen
How about some sort of normalize_schema option that could be turned off if required? I can't imagine that all that many developers are taking advantage of specific column ordering. For one thing, PostgreSQL doesn't allow you to reorder columns