User groups branch added.
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1372 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class InsertBuiltinRoles < ActiveRecord::Migration
|
||||
def self.up
|
||||
nonmember = Role.new(:name => 'Non member', :position => 0)
|
||||
nonmember.builtin = Role::BUILTIN_NON_MEMBER
|
||||
nonmember.save
|
||||
|
||||
anonymous = Role.new(:name => 'Anonymous', :position => 0)
|
||||
anonymous.builtin = Role::BUILTIN_ANONYMOUS
|
||||
anonymous.save
|
||||
end
|
||||
|
||||
def self.down
|
||||
Role.destroy_all 'builtin <> 0'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user