Mercurial > hg > soundsoftware-site
view .svn/pristine/6d/6d9eab4fc3d69073fa19994d3c697b56874a4a4e.svn-base @ 1227:eb168c1e9553 live
Show maximum of 10 colleagues
author | Chris Cannam |
---|---|
date | Tue, 12 Mar 2013 15:45:41 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
class AddTrackerPosition < ActiveRecord::Migration def self.up add_column :trackers, :position, :integer, :default => 1 Tracker.find(:all).each_with_index {|tracker, i| tracker.update_attribute(:position, i+1)} end def self.down remove_column :trackers, :position end end