Created
July 7, 2017 21:04
-
-
Save jlsherrill/aee22b25d7e9721e1266f269a31627c4 to your computer and use it in GitHub Desktop.
deleting missing products
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foreman-rake console | |
| > Katello::Product.select{|p| p.productContent.nil? rescue true}.count | |
| 3 | |
| > Katello::Product.select{|p| p.productContent.nil? rescue true}.map(&:name) | |
| Look at list of products | |
| > Katello::Product.select{|p| p.productContent.nil? rescue true}.each{|p| p.destroy!} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment