002_issue_move.rb 408 Bytes
Newer Older
1
class IssueMove < ActiveRecord::Migration[4.2]
jplang's avatar
jplang committed
2 3 4
  # model removed
  class Permission < ActiveRecord::Base; end

5
  def self.up
6
    Permission.create :controller => "projects", :action => "move_issues", :description => "button_move", :sort => 1061, :mail_option => 0, :mail_enabled => 0
7 8 9
  end

  def self.down
10
    Permission.where("controller=? and action=?", 'projects', 'move_issues').first.destroy
11 12
  end
end