annotate .svn/pristine/1b/1bfdad19f4f318cbdfbe4d8458bf52c9d4022d92.svn-base @ 1532:a0460a3d154f
cannam
Toward getting the user id for a committer by name as well as login/email
author |
Chris Cannam |
date |
Wed, 11 Feb 2015 13:13:03 +0000 |
parents |
dffacf8a6908 |
children |
|
rev |
line source |
Chris@1517
|
1 class AddRelationsPermissions < ActiveRecord::Migration
|
Chris@1517
|
2 # model removed
|
Chris@1517
|
3 class Permission < ActiveRecord::Base; end
|
Chris@1517
|
4
|
Chris@1517
|
5 def self.up
|
Chris@1517
|
6 Permission.create :controller => "issue_relations", :action => "new", :description => "label_relation_new", :sort => 1080, :is_public => false, :mail_option => 0, :mail_enabled => 0
|
Chris@1517
|
7 Permission.create :controller => "issue_relations", :action => "destroy", :description => "label_relation_delete", :sort => 1085, :is_public => false, :mail_option => 0, :mail_enabled => 0
|
Chris@1517
|
8 end
|
Chris@1517
|
9
|
Chris@1517
|
10 def self.down
|
Chris@1517
|
11 Permission.where(:controller => "issue_relations", :action => "new").each {|p| p.destroy}
|
Chris@1517
|
12 Permission.where(:controller => "issue_relations", :action => "destroy").each {|p| p.destroy}
|
Chris@1517
|
13 end
|
Chris@1517
|
14 end
|