Mercurial > hg > soundsoftware-site
annotate db/migrate/002_issue_move.rb @ 1558:a0c46d6fe7bc feature_1136
Add hgtags export
author | Chris Cannam |
---|---|
date | Thu, 14 Jan 2016 09:56:38 +0000 |
parents | 261b3d9a4903 |
children |
rev | line source |
---|---|
Chris@0 | 1 class IssueMove < ActiveRecord::Migration |
Chris@0 | 2 # model removed |
Chris@0 | 3 class Permission < ActiveRecord::Base; end |
Chris@0 | 4 |
Chris@0 | 5 def self.up |
Chris@0 | 6 Permission.create :controller => "projects", :action => "move_issues", :description => "button_move", :sort => 1061, :mail_option => 0, :mail_enabled => 0 |
Chris@0 | 7 end |
Chris@0 | 8 |
Chris@0 | 9 def self.down |
Chris@1464 | 10 Permission.where("controller=? and action=?", 'projects', 'move_issues').first.destroy |
Chris@0 | 11 end |
Chris@0 | 12 end |