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

db:seed fails #2

Open
idanci opened this issue May 28, 2013 · 1 comment · May be fixed by #7
Open

db:seed fails #2

idanci opened this issue May 28, 2013 · 1 comment · May be fixed by #7

Comments

@idanci
Copy link

idanci commented May 28, 2013

No description provided.

@canopyone
Copy link

Rake DB:SEED FAILS

bundle exec rake db:seed --trace
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Invoke rails_admin:disable_initializer (first_time)
** Execute rails_admin:disable_initializer
[RailsAdmin] RailsAdmin initialization disabled by default. Pass SKIP_RAILS_ADMIN_INITIALIZER=false if you need it.
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
rake aborted!
undefined method []' for nil:NilClass /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/mlb-0.6.1/lib/mlb/team.rb:62:inresults_to_team'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/mlb-0.6.1/lib/mlb/team.rb:29:in all' /home/uday/Desktop/dummy/db/seeds.rb:11:in<top (required)>'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:245:in load' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:245:inblock in load'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236:in load_dependency' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:245:inload'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.9/lib/rails/engine.rb:520:in load_seed' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.9/lib/active_record/railties/databases.rake:333:inblock (2 levels) in <top (required)>'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/task.rb:227:in call' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/task.rb:227:inblock in execute'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/task.rb:222:in each' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/task.rb:222:inexecute'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/task.rb:166:in block in invoke_with_call_chain' /home/uday/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/monitor.rb:211:inmon_synchronize'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/task.rb:159:in invoke_with_call_chain' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/task.rb:152:ininvoke'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/application.rb:141:in invoke_task' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/application.rb:99:inblock (2 levels) in top_level'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/application.rb:99:in each' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/application.rb:99:inblock in top_level'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/application.rb:108:in run_with_threads' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/application.rb:93:intop_level'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/application.rb:71:in block in run' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/application.rb:158:instandard_exception_handling'
/home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/lib/rake/application.rb:68:in run' /home/uday/.rvm/gems/ruby-1.9.3-p448/gems/rake-10.0.2/bin/rake:37:in<top (required)>'
/home/uday/.rvm/gems/ruby-1.9.3-p448/bin/rake:19:in load' /home/uday/.rvm/gems/ruby-1.9.3-p448/bin/rake:19:in

'
/home/uday/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in eval' /home/uday/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in'
Tasks: TOP => db:seed

tagliala added a commit to tagliala/dummy_app that referenced this issue Oct 10, 2020
tagliala added a commit to tagliala/dummy_app that referenced this issue Oct 10, 2020
tagliala added a commit to tagliala/dummy_app that referenced this issue Oct 10, 2020
tagliala added a commit to tagliala/dummy_app that referenced this issue Oct 10, 2020
tagliala added a commit to tagliala/dummy_app that referenced this issue Oct 10, 2020
@tagliala tagliala linked a pull request Oct 10, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants