Chris@0: class IssueAddNote < ActiveRecord::Migration Chris@0: # model removed Chris@0: class Permission < ActiveRecord::Base; end Chris@0: Chris@0: def self.up Chris@0: Permission.create :controller => "issues", :action => "add_note", :description => "label_add_note", :sort => 1057, :mail_option => 1, :mail_enabled => 0 Chris@0: end Chris@0: Chris@0: def self.down Chris@1295: Permission.where("controller=? and action=?", 'issues', 'add_note').first.destroy Chris@0: end Chris@0: end