{"action":"created","issue":{"url":"https://api.github.com/repos/olkarls/has_permalink/issues/21","labels_url":"https://api.github.com/repos/olkarls/has_permalink/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/olkarls/has_permalink/issues/21/comments","events_url":"https://api.github.com/repos/olkarls/has_permalink/issues/21/events","html_url":"https://github.com/olkarls/has_permalink/issues/21","id":60847897,"number":21,"title":"Cannot generate migration under Rails 4","user":{"login":"calve","id":4311079,"avatar_url":"https://avatars.githubusercontent.com/u/4311079?v=3","gravatar_id":"","url":"https://api.github.com/users/calve","html_url":"https://github.com/calve","followers_url":"https://api.github.com/users/calve/followers","following_url":"https://api.github.com/users/calve/following{/other_user}","gists_url":"https://api.github.com/users/calve/gists{/gist_id}","starred_url":"https://api.github.com/users/calve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calve/subscriptions","organizations_url":"https://api.github.com/users/calve/orgs","repos_url":"https://api.github.com/users/calve/repos","events_url":"https://api.github.com/users/calve/events{/privacy}","received_events_url":"https://api.github.com/users/calve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-12T16:30:47Z","updated_at":"2015-05-19T21:19:51Z","closed_at":null,"body":"Hi. It looks like the migration generator is broken with Rails 4. Here is my stacktrace\r\n\r\n```\r\n$ bin/rails generate has_permalink Products\r\n/usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/generators/actions/create_migration.rb:13:in `migration_file_name': protected method `migration_file_name' called for #<HasPermalinkGenerator:0x000000049d8ba0> (NoMethodError)\r\n        from /usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/generators/actions/create_migration.rb:34:in `existing_migration'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:112:in `invoke_with_conflict_check'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:60:in `invoke!'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/generators/migration.rb:34:in `create_migration'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/generators/migration.rb:63:in `migration_template'\r\n        from /home/goudale/.bundler/ruby/2.2.0/has_permalink-732d115169d0/lib/generators/has_permalink_generator.rb:11:in `generate_migration'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/generators.rb:157:in `invoke'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/commands/generate.rb:11:in `<top (required)>'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `block in require'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:135:in `generate_or_destroy'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:51:in `generate'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/commands/commands_tasks.rb:40:in `run_command!'\r\n        from /usr/lib/ruby/gems/2.2.0/gems/railties-4.1.5/lib/rails/commands.rb:17:in `<top (required)>'\r\n        from bin/rails:4:in `require'\r\n        from bin/rails:4:in `<main>'\r\n\r\n```\r\n\r\nPlease let me know if you need more informations"},"comment":{"url":"https://api.github.com/repos/olkarls/has_permalink/issues/comments/103669904","html_url":"https://github.com/olkarls/has_permalink/issues/21#issuecomment-103669904","issue_url":"https://api.github.com/repos/olkarls/has_permalink/issues/21","id":103669904,"user":{"login":"calve","id":4311079,"avatar_url":"https://avatars.githubusercontent.com/u/4311079?v=3","gravatar_id":"","url":"https://api.github.com/users/calve","html_url":"https://github.com/calve","followers_url":"https://api.github.com/users/calve/followers","following_url":"https://api.github.com/users/calve/following{/other_user}","gists_url":"https://api.github.com/users/calve/gists{/gist_id}","starred_url":"https://api.github.com/users/calve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calve/subscriptions","organizations_url":"https://api.github.com/users/calve/orgs","repos_url":"https://api.github.com/users/calve/repos","events_url":"https://api.github.com/users/calve/events{/privacy}","received_events_url":"https://api.github.com/users/calve/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T21:19:51Z","updated_at":"2015-05-19T21:19:51Z","body":"I used (friendly id)[https://github.com/norman/friendly_id] instead, but thanks for sharing a solution."}}