The schema.rb file it is indeed for this. One thing we do at Shopify, is we have a `db:migrate:rollup` task, that delete the files older than 3 months that are on the schema.rb already. So we dont keep a huge folder of migrations. Not sure if that's everyones use case tho.
On Thu, May 28, 2015 at 2:03 AM Maurício Linhares < mauricio.linha...@gmail.com> wrote: > This is what your schema.rb file is for. > > - > Maurício Linhares > http://mauricio.github.io/ - http://twitter.com/#!/mauriciojr > > > On Wed, May 27, 2015 at 8:22 AM, Manish Shrivastava > <er.manishshrivast...@gmail.com> 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. > > -- > 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. > -- 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.