Remove old data
This commit is contained in:
parent
a7667ffc14
commit
17a8ee57fe
3 changed files with 1 additions and 42 deletions
|
@ -41,7 +41,7 @@ class UsersProject < ActiveRecord::Base
|
|||
scope :masters, where(project_access: MASTER)
|
||||
|
||||
scope :in_project, ->(project) { where(project_id: project.id) }
|
||||
scope :in_projects, ->(projects) { where(project_id: projects.map(&:id)) }
|
||||
scope :in_projects, ->(projects) { where(project_id: project_ids) }
|
||||
scope :with_user, ->(user) { where(user_id: user.id) }
|
||||
|
||||
class << self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue