annotate .svn/pristine/0d/0de0220c6abf526fd90b0775dd5b7d3c897e479b.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 AddTrackerPosition < ActiveRecord::Migration
Chris@1464 2 def self.up
Chris@1464 3 add_column :trackers, :position, :integer, :default => 1
Chris@1464 4 Tracker.all.each_with_index {|tracker, i| tracker.update_attribute(:position, i+1)}
Chris@1464 5 end
Chris@1464 6
Chris@1464 7 def self.down
Chris@1464 8 remove_column :trackers, :position
Chris@1464 9 end
Chris@1464 10 end