annotate .svn/pristine/a7/a7f9a5a10472a6b42b368a1289f25463a8c4b622.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 class AddIssueStatusPosition < ActiveRecord::Migration
Chris@1464 2 def self.up
Chris@1464 3 add_column :issue_statuses, :position, :integer, :default => 1
Chris@1464 4 IssueStatus.all.each_with_index {|status, i| status.update_attribute(:position, i+1)}
Chris@1464 5 end
Chris@1464 6
Chris@1464 7 def self.down
Chris@1464 8 remove_column :issue_statuses, :position
Chris@1464 9 end
Chris@1464 10 end