RubyFlow The Ruby and Rails community linklog

Compress old rails migrations in an one command

If you like me work on a big & long-term rails project, you probably tired with an old migrations. Applying them takes a few minutes, sometimes you need to update them(changes in ActiveRecord). Manual removing them is hard & sometimes dangerous work, so checkout squasher gem which will do this job for you.

Comments

How is it better from taking contents of db/schema.rb and creating one migration file?

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in