summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-18 22:44:15 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-19 00:12:30 -0200
commit96440042a904274b88afc25eddd46c2722482427 (patch)
treea3c71d722b2ed5b27cdc7081a15673fc82223486 /config
parentbddef293d666c4b3933b93b017ae49bdf18b234f (diff)
downloadgitlab-ce-96440042a904274b88afc25eddd46c2722482427.tar.gz
Raise an error on page load if there are pending migrations on dev env
Diffstat (limited to 'config')
-rw-r--r--config/environments/development.rb3
1 files changed, 3 insertions, 0 deletions
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