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

Remove extraneous validations from Favorite

Alexander Brandon Coles7aab2251ea0e
diff --git a/app/models/favorite.rb b/app/models/favorite.rb
index cdfadef06f4..a0c449f5d47 100644
--- a/app/models/favorite.rb
+++ b/app/models/favorite.rb
@@ -31,7 +31,4 @@
class Favorite < ApplicationRecord
belongs_to :user
belongs_to :favorited, polymorphic: true
-
- validates :user, presence: true
- validates :favorited, presence: true
end