##// END OF EJS Templates
tagged version 3.2.5...
tagged version 3.2.5 git-svn-id: http://svn.redmine.org/redmine/tags/3.2.5@16147 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r10691:abd921736b6d
r15765:e848a428dd08 3.2.5
Show More
021_add_tracker_position.rb
10 lines | 286 B | text/x-ruby | RubyLexer
/ db / migrate / 021_add_tracker_position.rb
class AddTrackerPosition < ActiveRecord::Migration
def self.up
add_column :trackers, :position, :integer, :default => 1
Tracker.all.each_with_index {|tracker, i| tracker.update_attribute(:position, i+1)}
end
def self.down
remove_column :trackers, :position
end
end