{"id":881,"date":"2022-08-30T15:08:44","date_gmt":"2022-08-30T15:08:44","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/rake-aborted-undefined-method-migration_error-for-activerecordbaseclass-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:08:44","modified_gmt":"2022-08-30T15:08:44","slug":"rake-aborted-undefined-method-migration_error-for-activerecordbaseclass-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/rake-aborted-undefined-method-migration_error-for-activerecordbaseclass-collection-of-common-programming-errors\/","title":{"rendered":"rake aborted! undefined method `migration_error=&#39; for ActiveRecord::Base:Class-Collection of common programming errors"},"content":{"rendered":"<p>I am developing project on Ruby on Rails Till the present moment I used Rails 4 and everything was fine before I faced incapability issues with gems. I decided to rollback to Rails 3, changed my Gemfile, removed Gemfile.lock, all rails installations and railties. Then I run bundle install and installed Rails 3.2.13. However now when I run rake db:create everything is still fine. When I run rake db:migrate the problem begin:<\/p>\n<pre><code>JeffreeBook:llvoo kristijonas$ rake db:migrate\nWARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8\nrake aborted!\nundefined method `migration_error=' for ActiveRecord::Base:Class\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activerecord-3.2.13\/lib\/active_record\/dynamic_matchers.rb:55:in `method_missing'\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activerecord-3.2.13\/lib\/active_record\/railtie.rb:66:in `block (3 levels) in '\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activerecord-3.2.13\/lib\/active_record\/railtie.rb:65:in `each'\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activerecord-3.2.13\/lib\/active_record\/railtie.rb:65:in `block (2 levels) in '\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activesupport-3.2.13\/lib\/active_support\/lazy_load_hooks.rb:36:in `instance_eval'\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activesupport-3.2.13\/lib\/active_support\/lazy_load_hooks.rb:36:in `execute_hook'\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activesupport-3.2.13\/lib\/active_support\/lazy_load_hooks.rb:43:in `block in run_load_hooks'\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activesupport-3.2.13\/lib\/active_support\/lazy_load_hooks.rb:42:in `each'\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activesupport-3.2.13\/lib\/active_support\/lazy_load_hooks.rb:42:in `run_load_hooks'\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activerecord-3.2.13\/lib\/active_record\/base.rb:720:in `'\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/gems\/activerecord-3.2.13\/lib\/active_record\/railties\/databases.rake:25:in `block (2 levels) in '\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/bin\/ruby_noexec_wrapper:14:in `eval'\n\/Users\/kristijonas\/.rvm\/gems\/ruby-1.9.3-p448@fashion\/bin\/ruby_noexec_wrapper:14:in `'\nTasks: TOP =&gt; db:migrate =&gt; db:load_config\n(See full trace by running task with --trace)\nJeffreeBook:llvoo kristijonas$\n<\/code><\/pre>\n<p>How to resolve it?Everything is fine with db config<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:52:05. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am developing project on Ruby on Rails Till the present moment I used Rails 4 and everything was fine before I faced incapability issues with gems. I decided to rollback to Rails 3, changed my Gemfile, removed Gemfile.lock, all rails installations and railties. Then I run bundle install and installed Rails 3.2.13. However now [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-881","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=881"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}