OSDN Git Service

Move database.yml to template
[redminele/redminele.git] / redmine / db / migrate / 002_issue_move.rb
1 class IssueMove < ActiveRecord::Migration
2   # model removed
3   class Permission < ActiveRecord::Base; end
4
5   def self.up
6     Permission.create :controller => "projects", :action => "move_issues", :description => "button_move", :sort => 1061, :mail_option => 0, :mail_enabled => 0
7   end
8
9   def self.down
10     Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'move_issues']).destroy
11   end
12 end