SQL optimisation rolled back. It lead to access problems.
This commit is contained in:
parent
7227f769c0
commit
2b24083653
5 changed files with 15 additions and 19 deletions
|
|
@ -57,7 +57,7 @@ class Package < ApplicationRecord
|
|||
end
|
||||
|
||||
|
||||
# Return a query of all packages that have screenshots
|
||||
# Return a query of all packages that do not have screenshots
|
||||
def self.without_screenshots
|
||||
# Query for all packages who's ID does not appear in a screenshot's "package_id" field
|
||||
subselect = Screenshot.select(:package_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue