To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / 55 / 558bc31ad6ee278b15b03c7670faa2968dce9970.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (445 Bytes)

1
class AddRoadmapPermission < ActiveRecord::Migration
2
  # model removed
3
  class Permission < ActiveRecord::Base; end
4

    
5
  def self.up
6
    Permission.create :controller => "projects", :action => "roadmap", :description => "label_roadmap", :sort => 107, :is_public => true, :mail_option => 0, :mail_enabled => 0
7
  end
8

    
9
  def self.down
10
    Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'roadmap']).destroy
11
  end
12
end