Re: [gitorious] Re: Groups not working
On Tue, Apr 26, 2011 at 4:33 AM, Rodrigo Rosenfeld Rosas wrote: > This mege request should fix this issue: > > https://gitorious.org/gitorious/mainline/merge_requests/2229 > Thanks, Rodrigo, I just merged this. Cheers, - Marius -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
Re: [gitorious] Re: Groups not working
This mege request should fix this issue: https://gitorious.org/gitorious/mainline/merge_requests/2229 Em 21-04-2011 18:47, Olivier Refalo escreveu: this I found the solution - I indeed have my roles table empty Ah, I think we nailed it now, your database doesn't have any roles defined. I just tried deleting all the roles from my own local install and got the exact same problems that you had. These roles should have been created when you ran rake db:migrate at some point, but this situation should be quite easy to fix (especially now that I have to do the same thing in my install, having deleted all the roles :-) ) Fire up script/console and enter: Role.create!(:name => "Member", :kind => Role::KIND_MEMBER) Role.create!(:name => "Administrator", :kind => Role::KIND_ADMIN) You should probably delete the teams and memberships already in your database (if any) as these are probably in a weird state. Inside the console, enter: Group.destroy_all This should let you create teams again. Good luck! - Marius -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
Re: [gitorious] Re: Groups not working
... These roles should have been created when you ran rake db:migrate at some point, but this situation should be quite easy to fix (especially now that I have to do the same thing in my install, having deleted all the roles :-) ) Fire up script/console and enter: Role.create!(:name => "Member", :kind => Role::KIND_MEMBER) Role.create!(:name => "Administrator", :kind => Role::KIND_ADMIN) ... That is a problem that should be fixed in my opinion. This is not what migrations were designed for. Migrations are intended to evolute the database schema, not to feed the database with initial data. That is exactly what db/seeds.rb is all about. Someone installing Gitorious shouldn't use, in principle, "rake db:migrate" to generate the database but "rake db:setup" instead, which will call "db:create", "db:schema:load" and then "db:seed". So, I think that these data should be moved from the migrations to the db/seeds.rb. What do you think? Best regards, Rodrigo. -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com
[gitorious] Re: Groups not working
this I found the solution - I indeed have my roles table empty Ah, I think we nailed it now, your database doesn't have any roles defined. I just tried deleting all the roles from my own local install and got the exact same problems that you had. These roles should have been created when you ran rake db:migrate at some point, but this situation should be quite easy to fix (especially now that I have to do the same thing in my install, having deleted all the roles :-) ) Fire up script/console and enter: Role.create!(:name => "Member", :kind => Role::KIND_MEMBER) Role.create!(:name => "Administrator", :kind => Role::KIND_ADMIN) You should probably delete the teams and memberships already in your database (if any) as these are probably in a weird state. Inside the console, enter: Group.destroy_all This should let you create teams again. Good luck! - Marius -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com