Mercurial > hg > soundsoftware-site
comparison .svn/pristine/a7/a7cc7a3537df3ded519cd03f022f755c7e4d5803.svn-base @ 1296:038ba2d95de8 redmine-2.2
Fix redmine-2.2 branch update (add missing svn files)
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:05:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1296:038ba2d95de8 |
---|---|
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 |