Remove work_packages_duration_field_active feature flag from Settings

pull/10829/head
Dombi Attila 2 years ago
parent 64cfcaaefb
commit 40866dd700
  1. 4
      config/constants/settings/definitions.rb
  2. 5
      db/migrate/20220817154403_remove_work_packages_duration_field_active_setting.rb
  3. 3
      lib/open_project/feature_decisions.rb

@ -986,10 +986,6 @@ Settings::Definition.define do
add :work_package_startdate_is_adddate,
default: false
add :work_packages_duration_field_active,
default: Rails.env.development?,
format: :boolean
add :youtube_channel,
default: 'https://www.youtube.com/c/OpenProjectCommunity',
writable: false

@ -0,0 +1,5 @@
class RemoveWorkPackagesDurationFieldActiveSetting < ActiveRecord::Migration[7.0]
def change
Setting.where(name: 'work_packages_duration_field_active').destroy_all
end
end

@ -40,8 +40,9 @@ module OpenProject
# Setting.feature_your_module_active || Date.today > release_date
# end
# TODO: remove this feature flag
def self.work_packages_duration_field_active?
Setting.work_packages_duration_field_active
true
end
end
end

Loading…
Cancel
Save