Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add active boolean flag to Project::LifeCycle

Dombi Attilad064f252d148
diff --git a/db/migrate/20241114130242_add_active_flag_to_project_life_cycles.rb b/db/migrate/20241114130242_add_active_flag_to_project_life_cycles.rb
new file mode 100644
index 00000000000..5e0bd687af5
--- /dev/null
+++ b/db/migrate/20241114130242_add_active_flag_to_project_life_cycles.rb
@@ -0,0 +1,5 @@
+class AddActiveFlagToProjectLifeCycles < ActiveRecord::Migration[7.1]
+ def change
+ add_column :project_life_cycles, :active, :boolean, default: false, null: false
+ end
+end
diff --git a/spec/factories/project_life_cycle_factory.rb b/spec/factories/project_life_cycle_factory.rb
index cd5e4a7f874..72eaf33563d 100644
--- a/spec/factories/project_life_cycle_factory.rb
+++ b/spec/factories/project_life_cycle_factory.rb
@@ -29,6 +29,7 @@
FactoryBot.define do
factory :project_life_cycle, class: "Project::LifeCycle" do
project
+ active { true }
factory :project_stage, class: "Project::Stage" do
life_cycle factory: :stage