Raise an error on page load if there are pending migrations on dev env

This commit is contained in:
Douglas Barbosa Alexandre 2016-01-18 22:44:15 -02:00
parent bddef293d6
commit 96440042a9

View file

@ -16,6 +16,9 @@ Rails.application.configure do
# Print deprecation notices to the Rails logger # Print deprecation notices to the Rails logger
config.active_support.deprecation = :log config.active_support.deprecation = :log
# Raise an error on page load if there are pending migrations
config.active_record.migration_error = :page_load
# Only use best-standards-support built into browsers # Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin config.action_dispatch.best_standards_support = :builtin