Remove old data

This commit is contained in:
Andrey Kumanyaev 2013-01-21 01:05:51 +04:00 committed by Dmitriy Zaporozhets
parent a7667ffc14
commit 17a8ee57fe
3 changed files with 1 additions and 42 deletions

View file

@ -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