Last active
April 19, 2017 17:53
-
-
Save SnacksOnAPlane/578730f3de8b5dd8e851cafbe1e7f6f2 to your computer and use it in GitHub Desktop.
back_pop_call_invoice_items.rb
This file contains 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
Call.where(start_time: 1.month.ago..DateTime.now).each do |call| | |
unless InvoiceItem.exist?(billable: call) | |
call.sidekiq(queue: :manual).create_invoice_item | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment