의 미러
https://github.com/redmine/redmine.git
synced 2024-08-01 08:18:13 +02:00
64afa24a7f
Objects are reordered using the regular attribute writer #position= and AR callbacks. git-svn-id: http://svn.redmine.org/redmine/trunk@15335 e93f8b46-1217-0410-a6f0-8f06a7374b81
14 lines
420 B
Ruby
14 lines
420 B
Ruby
class RemovePositionDefaults < ActiveRecord::Migration
|
|
def up
|
|
[Board, CustomField, Enumeration, IssueStatus, Role, Tracker].each do |klass|
|
|
change_column klass.table_name, :position, :integer, :default => nil
|
|
end
|
|
end
|
|
|
|
def down
|
|
[Board, CustomField, Enumeration, IssueStatus, Role, Tracker].each do |klass|
|
|
change_column klass.table_name, :position, :integer, :default => 1
|
|
end
|
|
end
|
|
end
|