view db/migrate/002_issue_move.rb @ 627:91143e21be2c feature_36

Merge from 625:e1eb4996257f
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 24 Aug 2011 17:18:39 +0100
parents 513646585e45
children 622f24f53b42
line wrap: on
line source
class IssueMove < ActiveRecord::Migration
  # model removed
  class Permission < ActiveRecord::Base; end

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

  def self.down
    Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'move_issues']).destroy
  end
end