view db/migrate/.svn/text-base/002_issue_move.rb.svn-base @ 544:f05f3a9ef569 feature_36

Closes Feature #237. Minor changes to the form's layout (using TabularFormBuilder).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 29 Jul 2011 17:51:45 +0100
parents 513646585e45
children
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