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 online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
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)