Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `fetch' for main:Object (NoMethodError) #63

Closed
ThomasBush opened this issue May 22, 2015 · 4 comments
Closed

undefined method `fetch' for main:Object (NoMethodError) #63

ThomasBush opened this issue May 22, 2015 · 4 comments

Comments

@ThomasBush
Copy link

This is a recent development since I upgraded from ruby 2.2.0 to 2.2.2. This occurs why I try to run any of the rails generators, specifically a migration is this instance.

/Users/Thomas/.rvm/gems/ruby-2.2.2@HexGen/gems/capistrano-db-tasks-0.4/lib/capistrano-db-tasks/dbtasks.rb:5:in <top (required)>': undefined methodfetch' for main:Object (NoMethodError)

Any idea what could cause such an error? I have to comment the gem out of my gemfile to create migrations.

@Nimdis
Copy link

Nimdis commented Jun 8, 2015

+1, caught the same error. it fires all the time, even when I start rails server. tried with ruby 2.1.2 and 2.2.1. any solutions?

@yfractal
Copy link

@ThomasBush @Nimdis
Please try gem 'capistrano-db-tasks', '~> 0.4', :require => false
It works for me.

@ThomasBush
Copy link
Author

Perfect, this fixes everything for me! Thanks!

@lanxichan
Copy link

And you need to add this in deploy.rb

require 'capistrano-db-tasks'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants