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/20190411122815_set_timeline...

12 lines
380 B

class SetTimelineAutoZoom < ActiveRecord::Migration[5.2]
def up
Query.where(timeline_zoom_level: :days).update_all(timeline_zoom_level: :auto)
change_column_default :queries, :timeline_zoom_level, 5
end
def down
Query.where(timeline_zoom_level: :auto).update_all(timeline_zoom_level: :days)
change_column_default :queries, :timeline_zoom_level, 0
end
end