diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-11-01 21:44:27 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-11-01 21:44:27 +0100 |
commit | f84f43b1fddb8d97d5230f2f98cbd66382ae6ce1 (patch) | |
tree | b16a31d4b363055d02dca2e002515299ab8b74ca /lib | |
parent | 3981f9f96893f52901c17015fecf97d97d46f7a0 (diff) | |
download | gitlab-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')
-rw-r--r-- | lib/generators/rails/post_deployment_migration/post_deployment_migration_generator.rb | 2 |
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 |