summaryrefslogtreecommitdiff
path: root/rubocop
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-08 16:31:15 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-08 16:47:48 -0600
commitb0afed1aac83996747820728ee2a5d618f5caf3c (patch)
tree594894d2bd05d3e7129d631dd889d83d4c52df4b /rubocop
parentabc9548f8afae6d666942f37715d2f7f8258d63b (diff)
downloadgitlab-ce-b0afed1aac83996747820728ee2a5d618f5caf3c.tar.gz
Explicitly require rubocop migration_helpersdm-add-column-with-default-cop
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/cop/migration/add_column.rb2
-rw-r--r--rubocop/cop/migration/add_index.rb2
-rw-r--r--rubocop/rubocop.rb1
3 files changed, 4 insertions, 1 deletions
diff --git a/rubocop/cop/migration/add_column.rb b/rubocop/cop/migration/add_column.rb
index d5c8eeeea1f..1490fcdd814 100644
--- a/rubocop/cop/migration/add_column.rb
+++ b/rubocop/cop/migration/add_column.rb
@@ -1,3 +1,5 @@
+require_relative '../../migration_helpers'
+
module RuboCop
module Cop
module Migration
diff --git a/rubocop/cop/migration/add_index.rb b/rubocop/cop/migration/add_index.rb
index 506af97866f..5e6766f6994 100644
--- a/rubocop/cop/migration/add_index.rb
+++ b/rubocop/cop/migration/add_index.rb
@@ -1,3 +1,5 @@
+require_relative '../../migration_helpers'
+
module RuboCop
module Cop
module Migration
diff --git a/rubocop/rubocop.rb b/rubocop/rubocop.rb
index 3c596bff7ea..3e292a4527c 100644
--- a/rubocop/rubocop.rb
+++ b/rubocop/rubocop.rb
@@ -1,4 +1,3 @@
-require_relative 'migration_helpers'
require_relative 'cop/migration/add_index'
require_relative 'cop/migration/add_column'
require_relative 'cop/migration/add_column_with_default'