At Toptal we do a similar thing, we periodically clean up old migrations 
with https://github.com/jalkoby/squasher. We delete all old ones and update 
one "initial migration".

On Thursday, 28 May 2015 01:58:24 UTC+2, Manish Shrivastava wrote:
>
> Hi, My One of Rails Project started 2 years ago. Today I see there are 
> many changes on database. Many Tables/ and table fields got added and many 
> were removed as well. If I see my db/migration folder It has almost 200 
> files.
>
> I wish to suggest a feature where by running a command like `rake 
> db:migrate:files` could merge all files into table-wise. like if 20 tables 
> are there It make new 20 migration cleaner way.
>
> Please suggest!
>
>
>

-- 
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 http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to