From 1c1586e5dd35d8654be240be703dc06eb3dd4b10 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Wed, 22 Apr 2020 21:26:14 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E5=8E=BB=E6=8E=89user=E4=B8=AD=E6=97=A0?= =?UTF-8?q?=E5=85=B3=E7=9A=84model=E5=85=B3=E8=81=94=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/user.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 91871cdb0..a2124035e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -52,15 +52,6 @@ class User < ApplicationRecord has_one :qq_open_user, class_name: 'OpenUsers::QQ' accepts_nested_attributes_for :user_extension, update_only: true - has_many :memos, foreign_key: 'author_id' - has_many :created_shixuns, class_name: 'Shixun' - has_many :shixun_members, :dependent => :destroy - has_many :shixuns, :through => :shixun_members - has_many :myshixuns, :dependent => :destroy - has_many :games, :dependent => :destroy - has_many :study_shixuns, through: :myshixuns, source: :shixun # 已学习的实训 - has_many :course_messages - has_many :courses, foreign_key: 'tea_id', dependent: :destroy has_many :versions has_many :issue_times, :dependent => :destroy