Read more

How to disable Rails raising errors on pending migrations in development

Dominik Schöler
October 05, 2015Software engineer at makandra GmbH

Rails 4 introduced raising an error on pending migrations Show archive.org snapshot . This is most annoying when you are crafting a migration but need to play with your application to figure out how to do it.

Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

To disable this behavior, just set the corresponding config option to false:

# in config/environments/development.rb

# Raise an error on page load if there are pending migrations.
config.active_record.migration_error = false # was :page_load
Posted by Dominik Schöler to makandra dev (2015-10-05 14:31)