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

rename notes to note

Kabiru Mwenja07c2588ab26f
diff --git a/app/contracts/reminders/base_contract.rb b/app/contracts/reminders/base_contract.rb
index 18c4cd6c11c..abdf358a7a1 100644
--- a/app/contracts/reminders/base_contract.rb
+++ b/app/contracts/reminders/base_contract.rb
@@ -32,7 +32,7 @@ module Reminders
attribute :remindable_id
attribute :remindable_type
attribute :remind_at
- attribute :notes
+ attribute :note
validate :validate_creator_exists
validate :validate_acting_user
diff --git a/db/migrate/20241119131205_create_reminders.rb b/db/migrate/20241119131205_create_reminders.rb
index 461b29cd42d..454e830fefd 100644
--- a/db/migrate/20241119131205_create_reminders.rb
+++ b/db/migrate/20241119131205_create_reminders.rb
@@ -5,7 +5,7 @@ class CreateReminders < ActiveRecord::Migration[7.1]
t.references :creator, null: false, foreign_key: { to_table: :users }
t.datetime :remind_at, null: false
t.string :job_id
- t.text :notes
+ t.text :note
t.timestamps
end
diff --git a/spec/factories/reminders_factory.rb b/spec/factories/reminders_factory.rb
index 4e3b124b864..3903d27be4e 100644
--- a/spec/factories/reminders_factory.rb
+++ b/spec/factories/reminders_factory.rb
@@ -31,7 +31,7 @@ FactoryBot.define do
remindable factory: :work_package
creator factory: :user
remind_at { 1.day.from_now }
- notes { "This is a reminder" }
+ note { "This is a reminder" }
trait :scheduled do
job_id { SecureRandom.uuid }