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".
This commit is contained in:
parent
3981f9f968
commit
f84f43b1fd
1 changed files with 2 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
require 'rails/generators'
|
||||
|
||||
module Rails
|
||||
class PostDeploymentMigrationGenerator < Rails::Generators::NamedBase
|
||||
def create_migration_file
|
||||
|
|
Loading…
Reference in a new issue