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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Freeze string literals in db
Alexander Brandon Colesc64eab19445d
diff --git a/db/migrate/20241030154245_create_project_life_cycles.rb b/db/migrate/20241030154245_create_project_life_cycles.rbindex e3c28014eb1..e91999097b7 100644--- a/db/migrate/20241030154245_create_project_life_cycles.rb+++ b/db/migrate/20241030154245_create_project_life_cycles.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/20241119131205_create_reminders.rb b/db/migrate/20241119131205_create_reminders.rbindex 1ad0989de80..bdc1282a241 100644--- a/db/migrate/20241119131205_create_reminders.rb+++ b/db/migrate/20241119131205_create_reminders.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/20241120103858_add_start_end_times_to_time_entries.rb b/db/migrate/20241120103858_add_start_end_times_to_time_entries.rbindex 4d30710e517..28c3250d3ad 100644--- a/db/migrate/20241120103858_add_start_end_times_to_time_entries.rb+++ b/db/migrate/20241120103858_add_start_end_times_to_time_entries.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+class AddStartEndTimesToTimeEntries < ActiveRecord::Migration[7.1]def changechange_table :time_entries, bulk: true do |t|diff --git a/db/migrate/20241121094113_migrate_cost_settings_to_regular_settings.rb b/db/migrate/20241121094113_migrate_cost_settings_to_regular_settings.rbindex 7d1c1a4b871..573895bfeed 100644--- a/db/migrate/20241121094113_migrate_cost_settings_to_regular_settings.rb+++ b/db/migrate/20241121094113_migrate_cost_settings_to_regular_settings.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+class MigrateCostSettingsToRegularSettings < ActiveRecord::Migration[7.1]def upcosts_settings = Setting.plugin_costs || {}diff --git a/db/migrate/20241121113638_create_reminder_notifications.rb b/db/migrate/20241121113638_create_reminder_notifications.rbindex 0e92b9dab99..4fd15f4cd05 100644--- a/db/migrate/20241121113638_create_reminder_notifications.rb+++ b/db/migrate/20241121113638_create_reminder_notifications.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/20241125104347_add_timezone_identifier_to_time_entry.rb b/db/migrate/20241125104347_add_timezone_identifier_to_time_entry.rbindex b75120ef873..089d961672f 100644--- a/db/migrate/20241125104347_add_timezone_identifier_to_time_entry.rb+++ b/db/migrate/20241125104347_add_timezone_identifier_to_time_entry.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+class AddTimezoneIdentifierToTimeEntry < ActiveRecord::Migration[7.1]def changechange_table :time_entries, bulk: true do |t|diff --git a/db/migrate/20241125161226_unique_index_on_project_life_cycle_steps.rb b/db/migrate/20241125161226_unique_index_on_project_life_cycle_steps.rbindex e2358eb64f9..3f8f7ade13b 100644--- a/db/migrate/20241125161226_unique_index_on_project_life_cycle_steps.rb+++ b/db/migrate/20241125161226_unique_index_on_project_life_cycle_steps.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+class UniqueIndexOnProjectLifeCycleSteps < ActiveRecord::Migration[7.1]def changeadd_index :project_life_cycle_steps,diff --git a/db/migrate/20241126111225_add_project_life_cycle_step_roles.rb b/db/migrate/20241126111225_add_project_life_cycle_step_roles.rbindex 7342fe04e9b..479d836d47c 100644--- a/db/migrate/20241126111225_add_project_life_cycle_step_roles.rb+++ b/db/migrate/20241126111225_add_project_life_cycle_step_roles.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/20241127161228_grant_select_project_life_cycle_permission.rb b/db/migrate/20241127161228_grant_select_project_life_cycle_permission.rbindex 8309166220a..df3f8eba7f9 100644--- a/db/migrate/20241127161228_grant_select_project_life_cycle_permission.rb+++ b/db/migrate/20241127161228_grant_select_project_life_cycle_permission.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+require_relative "migration_utils/permission_adder"class GrantSelectProjectLifeCyclePermission < ActiveRecord::Migration[7.1]diff --git a/db/migrate/20241129135602_populate_manage_own_reminders_permission.rb b/db/migrate/20241129135602_populate_manage_own_reminders_permission.rbindex 586be710237..b95a99c8a29 100644--- a/db/migrate/20241129135602_populate_manage_own_reminders_permission.rb+++ b/db/migrate/20241129135602_populate_manage_own_reminders_permission.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/20241217190533_add_uniqueness_index_to_project_life_cycle_step_definitions_name.rb b/db/migrate/20241217190533_add_uniqueness_index_to_project_life_cycle_step_definitions_name.rbindex f6aba362e52..b63db69e683 100644--- a/db/migrate/20241217190533_add_uniqueness_index_to_project_life_cycle_step_definitions_name.rb+++ b/db/migrate/20241217190533_add_uniqueness_index_to_project_life_cycle_step_definitions_name.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+class AddUniquenessIndexToProjectLifeCycleStepDefinitionsName < ActiveRecord::Migration[7.1]def changeadd_index :project_life_cycle_step_definitions, :name, unique: truediff --git a/db/migrate/migration_utils/column.rb b/db/migrate/migration_utils/column.rbindex 6f0c00039a8..e9b1faacc8c 100644--- a/db/migrate/migration_utils/column.rb+++ b/db/migrate/migration_utils/column.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/migration_utils/migration_squasher.rb b/db/migrate/migration_utils/migration_squasher.rbindex 50ddd404ae1..9cd7ccf8eca 100644--- a/db/migrate/migration_utils/migration_squasher.rb+++ b/db/migrate/migration_utils/migration_squasher.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/migration_utils/module_renamer.rb b/db/migrate/migration_utils/module_renamer.rbindex ff264f97c9a..78a45d331b9 100644--- a/db/migrate/migration_utils/module_renamer.rb+++ b/db/migrate/migration_utils/module_renamer.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/migration_utils/permission_adder.rb b/db/migrate/migration_utils/permission_adder.rbindex 31047e51677..7cebb982622 100644--- a/db/migrate/migration_utils/permission_adder.rb+++ b/db/migrate/migration_utils/permission_adder.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/migration_utils/setting_renamer.rb b/db/migrate/migration_utils/setting_renamer.rbindex 329db6d63df..5851fb1addc 100644--- a/db/migrate/migration_utils/setting_renamer.rb+++ b/db/migrate/migration_utils/setting_renamer.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/migration_utils/typed_dag.rb b/db/migrate/migration_utils/typed_dag.rbindex 4de0c698824..817e6d6ba97 100644--- a/db/migrate/migration_utils/typed_dag.rb+++ b/db/migrate/migration_utils/typed_dag.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/migrate/migration_utils/utils.rb b/db/migrate/migration_utils/utils.rbindex 67b1a79a91d..62c3a4337f3 100644--- a/db/migrate/migration_utils/utils.rb+++ b/db/migrate/migration_utils/utils.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbHdiff --git a/db/production.rb b/db/production.rbindex 219ca24099f..e99929ab46e 100644--- a/db/production.rb+++ b/db/production.rb@@ -1 +1,3 @@+# frozen_string_literal: true+DemoDataSeeder.seed!diff --git a/db/seeds.rb b/db/seeds.rbindex 7705e7754f4..dec418207dc 100644--- a/db/seeds.rb+++ b/db/seeds.rb@@ -1,3 +1,5 @@+# frozen_string_literal: true+#-- copyright# OpenProject is an open source project management software.# Copyright (C) the OpenProject GmbH