Welcome Guest | Login

db:migrate undefined method include_root_in_json=

Hello,

I'm trying to run the migrate for the first time on a new project and I'm getting the error:

rake aborted!
undefined method `include_root_in_json=' for ActiveRecord::Base:Class

I've set up the database, set up a user, assigned the user to the database with full permissions and checked the information in the database.yml.

Any ideas?

Thanks

2008-08-09 10:24 AM

Hi,

Moving the config/initializers/new_rails_defaults.rb to config/initializers/new_rails_defaults.rb.bak seemed to have fixed the error. Please move the migration scripts under the db/migration folder as I could see that the migration scripts are under the db folder currently.

2008-08-09 11:32 AM

That worked.  Thanks!

2008-08-09 12:38 PM

Very useful post.

2008-11-29 08:23 PM

Conference about religious music in the Indian ocean. Syracuse University 2008.

Hello Guest! In order to post you must be an active client with us, please log in or sign up.



Previous URLs for this page here and here