From f32afee1d8513b4c9739f5d513234976e57ff853 Mon Sep 17 00:00:00 2001 From: git <593+git@user.noreply.gitee.com> Date: Mon, 25 Aug 2025 10:53:20 +0000 Subject: [PATCH 1/2] first commit Signed-off-by: git <593+git@user.noreply.gitee.com> --- app/models/user.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index cd03da4..4eb03d7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,4 +1,6 @@ class User < ApplicationRecord + has_many :projects + has_many :tasks end # == Schema Information -- Gitee From 8eb5bb3f4fa91cd37746229f6424144b8bcee08e Mon Sep 17 00:00:00 2001 From: git <593+git@user.noreply.gitee.com> Date: Mon, 25 Aug 2025 10:53:32 +0000 Subject: [PATCH 2/2] second commit Signed-off-by: git <593+git@user.noreply.gitee.com> --- app/models/project.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/project.rb b/app/models/project.rb index 2d93e0b..66d25d3 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -3,6 +3,8 @@ class Project < ApplicationRecord has_many :tasks has_many :task_categories, as: :ownerable has_many :custome_categories, as: :ownerable + + has_many :tasks2 end # == Schema Information -- Gitee