mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
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
|