added the ability to set the sort order for issue statuses
git-svn-id: http://redmine.rubyforge.org/svn/trunk@205 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
d29ba0b80f
commit
fe22797d69
17 files changed
+63
-6
No files matched your search
@@ -0,0 +1,10 @@
|
||||
class AddIssueStatusPosition < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :issue_statuses, :position, :integer, :default => 1, :null => false
|
||||
IssueStatus.find(:all).each_with_index {|status, i| status.update_attribute(:position, i+1)}
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :issue_statuses, :position
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user