Hello all,
I use community engine in my web application.
when I create a new application and integrate CE it works perfect.
But when i integrate CE in my application it is not working.
please give suggestions.
My problem is that --------
my application has database "aflatune_development" . I setup CE in my
application as per instruction given at "http://communityengine.org/
documentation.html".
It create migration file in my "db/migrate/
20090408130952_community_engine_to_version_61.rb"
Before this my database contains two tables "roles" and
"users" which
are also present in CE
so i renamed my these two tables first and then tried.
when I execute migration using rake db:migrate,
It executes some migration and then throws error that
rake aborted!
An error has occurred, all later migrations canceled:
following is some executed migration and error
==  CreateFavoritables: migrating
============================================-- create_table(:favorites)
  -> 0.0620s
-- add_column(:clippings, :favorited_count, :integer, {:default=>0})
  -> 0.1250s
-- add_column(:posts, :favorited_count, :integer, {:default=>0})
  -> 0.1090s
-- add_index(:favorites, [:user_id], {:name=>"fk_favorites_user"})
  -> 0.1090s
==  CreateFavoritables: migrated (0.7810s)
===================================
==  AddPublishedAsToPosts: migrating
=========================================-- add_column(:posts, :published_as,
:string,
{:default=>"draft", :limit=>16})
  -> 0.1090s
==  AddPublishedAsToPosts: migrated (0.3440s)
================================
==  AddPublishedAtToPosts: migrating
=========================================-- add_column(:posts, :published_at,
:datetime)
  -> 0.1410s
==  AddPublishedAtToPosts: migrated (0.2350s)
================================
==  CreateRoles: migrating
===================================================-- create_table(:roles)
  -> 0.0630s
rake aborted!
An error has occurred, all later migrations canceled:
An error has occurred, all later migrations canceled:
undefined method `enumeration_model_updates_permitted='' for Role(id:
integer, na
me: string):Class
Where i''m doing wrong?
Thanks,
Vikas
-- 
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
-~----------~----~----~----~------~----~------~--~---