Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Generator broken in Rails 4 #22

gsreynolds opened this Issue · 6 comments

5 participants


Under Rails 4.0.0, I get the following error when I run the generator:

$ rails g paul_revere
/Users/gavin/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- rails/generators/active_record/migration (LoadError)

Appears the generator needs to be amended to reflect recent changes in ActiveRecord: rails/generators/active_record/migration no longer exists and the next_migration_number method needs to be defined.


I'm still having the same issue as @gsreynolds. Was the pull request accepted?


+1. If there's a problem with the pull request let us know so we can do something about it?


+1. Rails 4.0.1

@morgler morgler referenced this issue from a commit in morgler/paul_revere
@morgler morgler Fix issue #22
Using michalczapko's solution from michalczapko/delayed_job_active_record@5fb30de

Sorry, gsreynolds already created the same fix more than a year ago. Could you please merge his pull request?


I'll check this out today.


Fixed here - 5f9d8a7 - and in released 1.3 gem version.

@mjankowski mjankowski closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.