Rails 3.2.8 "NotImplementedError: The" backtrace "method called an unexpected T_NODE object"

I get the following error:

NotImplementedError: the `backtrace 'method called an unexpected T_NODE object

when using the rails console to access one specific model, Domain, with "Domain.new"

The model is defined as:

class Domain < ActiveRecord::Base end 

Wednesday:

  • Rails 3.2.8
  • ruby 1.9.3p194 (2012-04-20 version 35410) [x86_64-linux]
  • Linux cb-2 3.2.0-32-generi # 51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU / Linux

Full feedback is at https://gist.github.com/954bcdf833c8aef4d2f9

There are 41 more models in the project that are tested without any problems.

It would be very appreciated that you could shed light on this problem.

Ross

+4
source share
1 answer

As I remember correctly, I had a similar feedback.

In my case, the database is not initialized correctly, and the schema_migration table schema_migration damaged.

So my recommendation: try running rake db:migrate:status and see that it displays a list of the migrations you created correctly. If not, try re-creating the database and try again.

+2
source

Source: https://habr.com/ru/post/1443340/


All Articles