From 96440042a904274b88afc25eddd46c2722482427 Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Mon, 18 Jan 2016 22:44:15 -0200 Subject: Raise an error on page load if there are pending migrations on dev env --- config/environments/development.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') diff --git a/config/environments/development.rb b/config/environments/development.rb index 257c163720a..689694a3480 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -16,6 +16,9 @@ Rails.application.configure do # Print deprecation notices to the Rails logger 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 config.action_dispatch.best_standards_support = :builtin -- cgit v1.2.1