您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

003_issue_add_note.rb 404B

123456789101112
  1. class IssueAddNote < ActiveRecord::Migration[4.2]
  2. # model removed
  3. class Permission < ActiveRecord::Base; end
  4. def self.up
  5. Permission.create :controller => "issues", :action => "add_note", :description => "label_add_note", :sort => 1057, :mail_option => 1, :mail_enabled => 0
  6. end
  7. def self.down
  8. Permission.where("controller=? and action=?", 'issues', 'add_note').first.destroy
  9. end
  10. end