How to disable Rails raising errors on pending migrations in development

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.

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
Dominik Schöler Over 8 years ago