Browse Source

[FIX]watcher type error

tags/v3.0.1
vilet.yy 5 years ago
parent
commit
70922b81db
2 changed files with 1 additions and 1 deletions
  1. +1
    -0
      app/models/owner.rb
  2. +0
    -1
      app/models/user.rb

+ 1
- 0
app/models/owner.rb View File

@@ -59,6 +59,7 @@
#

class Owner < ApplicationRecord
self.abstract_class = true
self.table_name = "users"

include ProjectAbility


+ 0
- 1
app/models/user.rb View File

@@ -137,7 +137,6 @@ class User < Owner
# 关注
# has_many :be_watchers, foreign_key: :user_id, dependent: :destroy # 我的关注
# has_many :be_watcher_users, through: :be_watchers, dependent: :destroy # 我关注的用户
has_many :watchers, as: :watchable, dependent: :destroy

has_one :ci_cloud_account, class_name: 'Ci::CloudAccount', dependent: :destroy



Loading…
Cancel
Save