002_issue_move.rb
12 lines
| 421 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 | ||||
Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'move_issues']).destroy | ||||
end | ||||
end | ||||