[ADD]组织、组织团队

This commit is contained in:
2021-01-15 14:55:52 +08:00
parent c278ed1863
commit 7f309edc91
37 changed files with 667 additions and 57 deletions

View File

@@ -163,6 +163,9 @@ class User < ApplicationRecord
has_many :project_trends, dependent: :destroy
has_many :oauths , dependent: :destroy
has_many :organization_users, dependent: :destroy
has_many :organizations, through: :organization_users
# Groups and active users
scope :active, lambda { where(status: STATUS_ACTIVE) }
scope :like, lambda { |keywords|