summaryrefslogtreecommitdiff
path: root/lib/generators/rails
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-11-01 21:44:27 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2016-11-01 21:44:27 +0100
commitf84f43b1fddb8d97d5230f2f98cbd66382ae6ce1 (patch)
treeb16a31d4b363055d02dca2e002515299ab8b74ca /lib/generators/rails
parent3981f9f96893f52901c17015fecf97d97d46f7a0 (diff)
downloadgitlab-ce-f84f43b1fddb8d97d5230f2f98cbd66382ae6ce1.tar.gz
require rails/generators for generators
Because this code resides in lib/ it may be eager loaded. Rails in turn doesn't define Rails::Generators by default unless you explicitly require "rails/generators".
Diffstat (limited to 'lib/generators/rails')
-rw-r--r--lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb b/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb
index 392bd640192..7cb4bccb23c 100644
--- a/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb
+++ b/lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb
@@ -1,3 +1,5 @@
+require 'rails/generators'
+
module Rails
class PostDeploymentMigrationGenerator < Rails::Generators::NamedBase
def create_migration_file