Yes please :+1:

Dealing with that cruft mismatch in schema.rb is a headache --- would defiantly 
speed up developer productivity if we figured out the reasons why different 
developers' systems produce slightly different files (this being one of them) 
and killed those nuances so my schema.rb didn't change itself even when there 
are no schema changes.

It is definitely something that does not make me :happy_face: and Matz said 
Ruby was supposed to make me happy. 

-Jason


> On Jul 1, 2016, at 5:39 AM, Tim Petricola <tim.petric...@gmail.com> wrote:
> 
> schema.rb git diff are often harder to read as adding a column or argument 
> could add/remove whitespace for other columns definitions.
> 
> Let's say I have a `users` table with a `first_name` column:
> 
> create_table "users", force: :cascade do |t|
>   t.string "first_name", null: false
> end
> 
> 
> If I add another column with a `limit`, whitespaces will be added to my 
> schema for the `first_name` line as well:
> 
> create_table "users", force: :cascade do |t|
>   t.string "first_name",           null: false
>   t.string "zipcode",    limit: 5, null: false
> end
> 
> 
> I understand it is intended as a feature but it would be nice to offer an 
> opt-out option to generate the following schema instead:
> 
> create_table "users", force: :cascade do |t|
>   t.string "first_name", null: false
>   t.string "zipcode", limit: 5, null: false
> end
> 
> I have some working code for this option 
> <https://github.com/rails/rails/compare/master...TimPetricola:schema-no-standardized-column-widths>,
>  I'm waiting for your thoughts before doing a PR.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Core" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-core+unsubscr...@googlegroups.com 
> <mailto:rubyonrails-core+unsubscr...@googlegroups.com>.
> To post to this group, send email to rubyonrails-core@googlegroups.com 
> <mailto:rubyonrails-core@googlegroups.com>.
> Visit this group at https://groups.google.com/group/rubyonrails-core 
> <https://groups.google.com/group/rubyonrails-core>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

----

Jason Fleetwood-Boldt
t...@datatravels.com
http://www.jasonfleetwoodboldt.com/writing

If you'd like to reply by encrypted email you can find my public key on 
jasonfleetwoodboldt.com <http://jasonfleetwoodboldt.com/> (more about setting 
GPG: https://gpgtools.org) 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to