git-svn-id: http://redmine.rubyforge.org/svn/trunk@205 e93f8b46-1217-0410-a6f0-8f06a7374b81pull/351/head
parent
d29ba0b80f
commit
fe22797d69
@ -0,0 +1,10 @@ |
||||
class AddIssueStatusPosition < ActiveRecord::Migration |
||||
def self.up |
||||
add_column :issue_statuses, :position, :integer, :default => 1, :null => false |
||||
IssueStatus.find(:all).each_with_index {|status, i| status.update_attribute(:position, i+1)} |
||||
end |
||||
|
||||
def self.down |
||||
remove_column :issue_statuses, :position |
||||
end |
||||
end |
After Width: | Height: | Size: 461 B |
After Width: | Height: | Size: 433 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 526 B |
Loading…
Reference in new issue