Welcome Guest | Login

Help: issues with comatose migration

I am not able to setup the Comatose CMS to run on my shared hosting account. here are the steps I took

I followed the instruction from this sitehttp://github.com/darthapo/comatose/tree/master

1. created empty rails app
  created database and setup database.yml

2. ran these commands (all worked ok)

script/plugin install acts_as_tree/list

 $ ./script/plugin source http://mattmccray.com/svn/rails/plugins
 $ ./script/plugin install comatose
 $ ./script/generate comatose_migration


3. $ rake db:migrate produced these errors

== 20080731015211 AddComatoseSupport: migrating ===============================
-- create_table(:comatose_pages)
  -> 0.0866s
Creating the default 'Home Page'...
rake aborted!
can't convert String into Integer

Does anyone know how to work around this? Thanks in advance.

2008-07-30 08:53 PM

Hi Virtual,

The error "rake aborted! can't convert String into Integer" can be avoided by reinstalling the "acts_as_versioned" plugin from the location http://github.com/codafoo/acts_as_versioned/tree/master and add the contents given in the URL http://pastie.textmate.org/181667 to the file vendor/rails/activerecord/
lib/active_record/associations.rb.

The following wiki link discusses the same issue please have a look at it.
http://groups.google.com/group/comatose-plugin/browse_thread/thread/e6402c29de92edc7

2008-07-31 07:16 AM

Hi Vinayan,
I can certaintly reinstall acts_as_versioned; however
I do not understand the step about patching associations.rb file

I logged into my shared account but not able to locate
vendor/rails/activerecord/
lib/active_record/associations.rb

Can you explain on that, Thanks

2008-07-31 10:19 AM

Hi Virtual,

The  associations.rb file will be on path  railsapp/vendor/rails/activerecord/lib/active_record/associations.rb , if your application's rails version is frozen.

If the rails application version is not frozen then you can give a try to populate your database after reinstalling the acts_as_versioned plugin as mentioned in the previous post.

2008-07-31 11:08 AM


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