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

solve rails4 run rake 'undefined method 'existent' for nil:NilClass' exc... #28

Merged
merged 1 commit into from Jul 3, 2013

Conversation

Projects
None yet
4 participants

james2m pushed a commit that referenced this pull request Jul 3, 2013

James McCarthy
Merge pull request #28 from vkill/hotfix/rails4_rake_bug
solve rails4 run rake 'undefined method 'existent' for nil:NilClass' exc...

@james2m james2m merged commit 8e5fe30 into james2m:master Jul 3, 2013

1 check failed

default The Travis CI build failed
Details
@james2m

This comment has been minimized.

Owner

james2m commented Jul 3, 2013

Thanks @vkill.

@james2m

This comment has been minimized.

Owner

james2m commented Jul 3, 2013

I've just release 0.3.0.pre2 which includes this and fixes for Rake 10.x

@jorgechen

This comment has been minimized.

jorgechen commented Aug 9, 2013

+1

@james2m

This comment has been minimized.

Owner

james2m commented Aug 9, 2013

@sylvanknave are you still experiencing this with 0.3.0.pre2?

@jorgechen

This comment has been minimized.

jorgechen commented Aug 9, 2013

James, 0.3.0pre2 worked thanks!
+1 == thumbs up ;)

@josedes

This comment has been minimized.

josedes commented Jul 13, 2015

I have question, Seedbank works in Heroku?

@james2m

This comment has been minimized.

Owner

james2m commented Jul 13, 2015

Yup. I’ve a few heroku apps;

heroku run rake db:seed:whatever

Does the trick.

@josedes

This comment has been minimized.

josedes commented Jul 13, 2015

thansk for answer.
That's exactly what I did but didnt work, I have to create a task file in lib/task with the follow code:
namespace :db do
namespace :seed do
Dir[File.join(Rails.root, 'db', 'seeds', '*.rb')].each do |filename|
task_name = File.basename(filename, '.rb').intern
task task_name => :environment do
load(filename) if File.exist?(filename)
end
end
end
end

@james2m

This comment has been minimized.

Owner

james2m commented Jul 14, 2015

Are you using the .pre version of seedbank I have several 4.x apps on heroku and no problems. Can you give more specifics about versions and your environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment