Mercurial > hg > soundsoftware-site
comparison db/migrate/016_add_repositories_permissions.rb @ 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 |
comparison
equal
deleted
inserted
replaced
1297:0a574315af3e | 1298:4f746d8966dd |
---|---|
10 Permission.create :controller => "repositories", :action => "revision", :description => "label_view_revisions", :sort => 1472, :is_public => true | 10 Permission.create :controller => "repositories", :action => "revision", :description => "label_view_revisions", :sort => 1472, :is_public => true |
11 Permission.create :controller => "repositories", :action => "diff", :description => "diff", :sort => 1480, :is_public => true | 11 Permission.create :controller => "repositories", :action => "diff", :description => "diff", :sort => 1480, :is_public => true |
12 end | 12 end |
13 | 13 |
14 def self.down | 14 def self.down |
15 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'show']).destroy | 15 Permission.where("controller=? and action=?", 'repositories', 'show').first.destroy |
16 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'browse']).destroy | 16 Permission.where("controller=? and action=?", 'repositories', 'browse').first.destroy |
17 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'entry']).destroy | 17 Permission.where("controller=? and action=?", 'repositories', 'entry').first.destroy |
18 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'revisions']).destroy | 18 Permission.where("controller=? and action=?", 'repositories', 'revisions').first.destroy |
19 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'revision']).destroy | 19 Permission.where("controller=? and action=?", 'repositories', 'revision').first.destroy |
20 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'diff']).destroy | 20 Permission.where("controller=? and action=?", 'repositories', 'diff').first.destroy |
21 end | 21 end |
22 end | 22 end |