summaryrefslogtreecommitdiffstats
path: root/db/migrate/024_add_roadmap_permission.rb
blob: 5b9f3a5620576941ece0f80518f069c7d070211e (plain)
1
2
3
4
5
6
7
8
9
class AddRoadmapPermission < ActiveRecord::Migration
  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