OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20180221151038_add_position...

13 lines
313 B

class AddPositionToCustomAction < ActiveRecord::Migration[5.0]
def change
add_column :custom_actions, :position, :integer
reversible do |dir|
dir.up do
CustomAction.order_by_name.each_with_index do |a, i|
a.update_attribute(:position, i)
end
end
end
end
end