annotate db/migrate/002_issue_move.rb @ 615:c4ddb9531f4c
feature_36
Some rearrangements and stylings
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Wed, 24 Aug 2011 11:53:10 +0100 |
parents |
513646585e45 |
children |
622f24f53b42 |
rev |
line source |
Chris@0
|
1 class IssueMove < ActiveRecord::Migration
|
Chris@0
|
2 # model removed
|
Chris@0
|
3 class Permission < ActiveRecord::Base; end
|
Chris@0
|
4
|
Chris@0
|
5 def self.up
|
Chris@0
|
6 Permission.create :controller => "projects", :action => "move_issues", :description => "button_move", :sort => 1061, :mail_option => 0, :mail_enabled => 0
|
Chris@0
|
7 end
|
Chris@0
|
8
|
Chris@0
|
9 def self.down
|
Chris@0
|
10 Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'move_issues']).destroy
|
Chris@0
|
11 end
|
Chris@0
|
12 end
|