002_issue_move.rb
12 lines
| 403 B
| text/x-ruby
|
RubyLexer
|
r30 | class IssueMove < ActiveRecord::Migration | ||
|
r663 | # model removed | ||
class Permission < ActiveRecord::Base; end | ||||
|
r30 | def self.up | ||
|
r36 | Permission.create :controller => "projects", :action => "move_issues", :description => "button_move", :sort => 1061, :mail_option => 0, :mail_enabled => 0 | ||
|
r30 | end | ||
def self.down | ||||
|
r10702 | Permission.where("controller=? and action=?", 'projects', 'move_issues').first.destroy | ||
|
r30 | end | ||
end | ||||