Hi there,
I''m would like to use the comatose plugin for CMS and have a problem
running the migration script. The error is produced by the comatose
migration script is thrown by the acts_as_versioned call (at line 4).
module Comatose
class Page < ActiveRecord::Base
set_table_name ''comatose_pages''
acts_as_versioned :if_changed => [:title, :slug, :keywords, :body]
end
end
class AddComatoseSupport < ActiveRecord::Migration
# Schema for Comatose version 0.7+
def self.up
create_table :comatose_pages do |t|
...
end
Comatose::Page.create_versioned_table
puts "Creating the default ''Home Page''..."
Comatose::Page.create( :title=>''Home Page'',
:body=>"h1. Welcome...",
:author=>''System'' )
end
def self.down
Comatose::Page.drop_versioned_table
drop_table :comatose_pages
end
end
The error I get is as follows;
rake aborted!
Mysql::Error: #42S02Table ''project_development.page_versions''
doesn''t
exist: SHOW FIELDS FROM page_versions
I couldn''t figure out what could be the reason! Any help would be
appreciated!
Regards,
Shafeer.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---