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/20220323083000_add_include_...

14 lines
408 B

class AddIncludeSubprojectsToQuery < ActiveRecord::Migration[6.1]
def change
add_column :queries,
:include_subprojects,
:boolean,
null: false,
default: Setting.display_subprojects_work_packages?
# Remove the default now
reversible do |dir|
dir.up { change_column_default :queries, :include_subprojects, nil }
end
end
end