diff options
Diffstat (limited to 'db/migrate/003_issue_add_note.rb')
-rw-r--r-- | db/migrate/003_issue_add_note.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/003_issue_add_note.rb b/db/migrate/003_issue_add_note.rb new file mode 100644 index 000000000..9f20039b0 --- /dev/null +++ b/db/migrate/003_issue_add_note.rb @@ -0,0 +1,9 @@ +class IssueAddNote < ActiveRecord::Migration + def self.up + Permission.create :controller => "issues", :action => "add_note", :description => "label_add_note", :sort => 1057, :mail_option => 1, :mail_enabled => 0 + end + + def self.down + Permission.find(:first, :conditions => ["controller=? and action=?", 'issues', 'add_note']).destroy + end +end |