Mercurial > hg > soundsoftware-site
view .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 |
line wrap: on
line source
class AddIssueStatusPosition < ActiveRecord::Migration def self.up add_column :issue_statuses, :position, :integer, :default => 1 IssueStatus.all.each_with_index {|status, i| status.update_attribute(:position, i+1)} end def self.down remove_column :issue_statuses, :position end end