comparison .svn/pristine/a7/a7cc7a3537df3ded519cd03f022f755c7e4d5803.svn-base @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents
children
comparison
equal deleted inserted replaced
1294:3e4c3460b6ca 1295:622f24f53b42
1 class InsertBuiltinRoles < ActiveRecord::Migration
2 def self.up
3 Role.reset_column_information
4 nonmember = Role.new(:name => 'Non member', :position => 0)
5 nonmember.builtin = Role::BUILTIN_NON_MEMBER
6 nonmember.save
7
8 anonymous = Role.new(:name => 'Anonymous', :position => 0)
9 anonymous.builtin = Role::BUILTIN_ANONYMOUS
10 anonymous.save
11 end
12
13 def self.down
14 Role.destroy_all 'builtin <> 0'
15 end
16 end