You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

024_add_roadmap_permission.rb 445B

123456789101112
  1. class AddRoadmapPermission < ActiveRecord::Migration
  2. # model removed
  3. class Permission < ActiveRecord::Base; end
  4. def self.up
  5. Permission.create :controller => "projects", :action => "roadmap", :description => "label_roadmap", :sort => 107, :is_public => true, :mail_option => 0, :mail_enabled => 0
  6. end
  7. def self.down
  8. Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'roadmap']).destroy
  9. end
  10. end