From 7cd8b4f329c4558a78b7c876df58301863dab2c9 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 4 Oct 2014 07:02:30 +0530 Subject: [PATCH] raise migration error in development if pending migrations --- config/environments/development.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 57c8b2a96ec..dd225cf9907 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -24,6 +24,8 @@ Discourse::Application.configure do config.assets.debug = true + # Raise an error on page load if there are pending migrations + config.active_record.migration_error = :page_load config.watchable_dirs['lib'] = [:rb] config.sass.debug_info = false