annotate .svn/pristine/a7/a7cc7a3537df3ded519cd03f022f755c7e4d5803.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 class InsertBuiltinRoles < ActiveRecord::Migration
Chris@1295 2 def self.up
Chris@1295 3 Role.reset_column_information
Chris@1295 4 nonmember = Role.new(:name => 'Non member', :position => 0)
Chris@1295 5 nonmember.builtin = Role::BUILTIN_NON_MEMBER
Chris@1295 6 nonmember.save
Chris@1295 7
Chris@1295 8 anonymous = Role.new(:name => 'Anonymous', :position => 0)
Chris@1295 9 anonymous.builtin = Role::BUILTIN_ANONYMOUS
Chris@1295 10 anonymous.save
Chris@1295 11 end
Chris@1295 12
Chris@1295 13 def self.down
Chris@1295 14 Role.destroy_all 'builtin <> 0'
Chris@1295 15 end
Chris@1295 16 end