Mercurial > hg > soundsoftware-site
comparison .svn/pristine/77/77f164566cbcb4cbb21bb686bf4becc3ff3142ca.svn-base @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
1 class AddQueriesPermissions < ActiveRecord::Migration | |
2 # model removed | |
3 class Permission < ActiveRecord::Base; end | |
4 | |
5 def self.up | |
6 Permission.create :controller => "projects", :action => "add_query", :description => "button_create", :sort => 600, :is_public => false, :mail_option => 0, :mail_enabled => 0 | |
7 end | |
8 | |
9 def self.down | |
10 Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'add_query']).destroy | |
11 end | |
12 end |