mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Merge pull request #2404 from internetee/task-assign-auction-type-for-nil-value
assign auction type for nil value rake task
This commit is contained in:
commit
5986066c6f
2 changed files with 39 additions and 0 deletions
12
lib/tasks/assing_auction_platform_type.rake
Normal file
12
lib/tasks/assing_auction_platform_type.rake
Normal file
|
@ -0,0 +1,12 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :auction do
|
||||
desc 'Check closed disputes with expired_at in the Past'
|
||||
task assign_platform_type: :environment do
|
||||
auctions = Auction.where(platform: nil)
|
||||
|
||||
auctions.each do |auction|
|
||||
auction.update(platform: :auto)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue