[opensuse-buildservice] Unable to configure the MySQL database with rake migrate
I searched the mailinglist, but I guess nobody had this problem. What is defined wrong? The role is in the file: [root@OBS frontend]# cat /srv/www/obs/frontend/vendor/plugins/active_rbac/app/model/role.rb # The Role class represents a role in the database. Roles can have permissions # associated with themselves. Roles can assigned be to roles and groups. # # The Role ActiveRecord class mixes in the "ActiveRbacMixins::RoleMixin" module. # This module contains the actual implementation. It is kept there so # you can easily provide your own model files without having to all lines # from the engine's directory class Role < ActiveRecord::Base include ActiveRbacMixins::RoleMixin end The error: [root@OBS frontend]# cd /srv/www/obs/frontend/ [root@OBS frontend]# rake migrate (in /srv/www/obs/frontend) /srv/www/obs/frontend/config/boot.rb:38:Warning: require_gem is obsolete. Use gem instead. == InitialDatabase: migrating ================================================= -- create_table("groups", {:force=>true}) -> 0.0631s -- add_index("groups", ["parent_id"], {:name=>"groups_parent_id_index"}) -> 0.0471s -- create_table("groups_roles", {:force=>true, :id=>false}) -> 0.0348s -- add_index("groups_roles", ["group_id", "role_id"], {:name=>"groups_roles_all_index", :unique=>true}) -> 0.0469s -- add_index("groups_roles", ["role_id"], {:name=>"role_id"}) -> 0.0469s -- create_table("groups_users", {:force=>true, :id=>false}) -> 0.0348s -- add_index("groups_users", ["group_id", "user_id"], {:name=>"groups_users_all_index", :unique=>true}) -> 0.0475s -- add_index("groups_users", ["user_id"], {:name=>"user_id"}) -> 0.0535s -- create_table("roles", {:force=>true}) -> 0.0354s -- add_index("roles", ["parent_id"], {:name=>"roles_parent_id_index"}) -> 0.0476s rake aborted! Expected /srv/www/obs/frontend/vendor/plugins/active_rbac/app/model/role.rb to define Role --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tuesday, 13. March 2007 15:31, Jochen Hebbrecht wrote:
I searched the mailinglist, but I guess nobody had this problem.
What is defined wrong? The role is in the file: [...] Expected /srv/www/obs/frontend/vendor/plugins/active_rbac/app/model/role.rb to define Role
This is a problem with an engine we use (ActiveRbac) which is incompatible to rails 1.2.x. For now you have to use rails 1.1.6 until we are able to fix it. -- Andreas Bauer - Novell - SUSE Internal Tools --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tuesday, 13. March 2007 15:42, Andreas Bauer wrote:
On Tuesday, 13. March 2007 15:31, Jochen Hebbrecht wrote:
I searched the mailinglist, but I guess nobody had this problem.
What is defined wrong? The role is in the file:
[...]
Expected /srv/www/obs/frontend/vendor/plugins/active_rbac/app/model/role.rb to define Role
This is a problem with an engine we use (ActiveRbac) which is incompatible to rails 1.2.x. For now you have to use rails 1.1.6 until we are able to fix it.
If you want to do this without messing around with your distributions rails package, issue rake rails:freeze:edge TAG=rel_1-1-6 in the /srv/www/obs/frontend directory. -- Andreas Bauer - Novell - SUSE Internal Tools --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Andreas Bauer
-
Jochen Hebbrecht