Mercurial > hg > soundsoftware-site
view db/migrate/.svn/text-base/024_add_roadmap_permission.rb.svn-base @ 117:af80e5618e9b redmine-1.1
* Update to Redmine 1.1-stable branch (Redmine SVN rev 4707)
author | Chris Cannam |
---|---|
date | Thu, 13 Jan 2011 12:53:21 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line source
class AddRoadmapPermission < ActiveRecord::Migration # model removed class Permission < ActiveRecord::Base; end def self.up Permission.create :controller => "projects", :action => "roadmap", :description => "label_roadmap", :sort => 107, :is_public => true, :mail_option => 0, :mail_enabled => 0 end def self.down Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'roadmap']).destroy end end