Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-19 03:44:15 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-01-19 05:12:30 +0300
commit96440042a904274b88afc25eddd46c2722482427 (patch)
treea3c71d722b2ed5b27cdc7081a15673fc82223486 /config/environments
parentbddef293d666c4b3933b93b017ae49bdf18b234f (diff)
Raise an error on page load if there are pending migrations on dev env
Diffstat (limited to 'config/environments')
-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