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-02 11:25:55 +01:00
Code Issues Packages Projects Releases Activity
Files
8ce553727de71297fd7a808c6775917f95cdcc0f
Redmine/db/migrate/021_add_tracker_position.rb

11 lines
291 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 AddTrackerPosition < ActiveRecord::Migration[4.2]
added the ability to set the sort order for trackers git-svn-id: http://redmine.rubyforge.org/svn/trunk@209 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-01-31 21:18:43 +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 :trackers, :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
Tracker.all.each_with_index {|tracker, i| tracker.update_attribute(:position, i+1)}
added the ability to set the sort order for trackers git-svn-id: http://redmine.rubyforge.org/svn/trunk@209 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-01-31 21:18:43 +00:00
end
def self.down
remove_column :trackers, :position
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 290ms Template: 1ms
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