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:
Yorick Peterse 2016-11-01 21:44:27 +01:00
parent 3981f9f968
commit f84f43b1fd
No known key found for this signature in database
GPG key ID: EDD30D2BEB691AC9

View file

@ -1,3 +1,5 @@
require 'rails/generators'
module Rails
class PostDeploymentMigrationGenerator < Rails::Generators::NamedBase
def create_migration_file