A
A
A_Modestov2016-03-02 20:06:40
Ruby on Rails
A_Modestov, 2016-03-02 20:06:40

How to fix error when running migration on heroku?

Good afternoon, ladies and gentlemen.
Such a problem, I run heroku run rake db:migrate and I get an error:
rake aborted!
NameError: undefined local variable or method `load_dancers' for #
/app/vendor/bundle/ruby/2.2.0/gems/loop_dance-0.5.3/lib/loop_dance/railtie.rb:25:in `block in '
/app /vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:237:in `instance_exec'
/app/vendor/bundle/ruby/2.2.0/gems/railties- 4.2.5.1/lib/rails/railtie.rb:237:in `block in run_tasks_blocks'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:245 :in `each'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:245:in `each_registered_block'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:237:in `run_tasks_blocks'
/app/vendor/bundle/ruby/2.2.0/gems/ railties-4.2.5.1/lib/rails/application.rb:451:in `block in run_tasks_blocks'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/engine/railties .rb:13:in `each'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/engine/railties.rb:13:in `each'
/app/vendor /bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/application.rb:451:in `run_tasks_blocks'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2. 5.1/lib/rails/engine.rb:453:in `load_tasks'
/app/Rakefile:6:in `'
(See full trace by running task with --trace)
I see that the problem is related to the loop_dancer gem used, but I don’t understand what it has to do with migration.
How to win this or bypass? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question