Logo
Explore Help
Register Sign In
Nemcio/Redmine
1
0
Fork 0
You've already forked Redmine
mirror of https://github.com/redmine/redmine.git synced 2025-11-04 20:35:57 +01:00
Code Issues Packages Projects Releases Activity
Files
25d6a2d555af537cd81bb279e6bae3fb51d80f66
Redmine/db/migrate/019_add_issue_status_position.rb

11 lines
309 B
Ruby
Raw Normal View History

Merged rails-5.1 branch (#23630). git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
class AddIssueStatusPosition < ActiveRecord::Migration[4.2]
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
2007-01-31 19:53:24 +00:00
def self.up
Removed 'not null' constraint on position fields. Previous migrations updated for new sqlite databases. git-svn-id: http://redmine.rubyforge.org/svn/trunk@864 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-10-22 21:07:13 +00:00
add_column :issue_statuses, :position, :integer, :default => 1
Replaces find(:all) calls. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10918 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-02 20:28:37 +00:00
IssueStatus.all.each_with_index {|status, i| status.update_attribute(:position, i+1)}
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
2007-01-31 19:53:24 +00:00
end
def self.down
remove_column :issue_statuses, :position
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 673ms Template: 54ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API