更新问题

video_transcode
daiao 5 years ago
parent 90c030926a
commit 1e6381b256

@ -14,7 +14,7 @@ namespace :shixuns do
puts "game_id: #{game.id}"
cost_time = game.end_time.to_i - game.open_time.to_i
puts "cost_time: #{cost_time}"
game.update_column(:cost_time, cost_time)
game.update_column!(:cost_time, cost_time)
end
end

Loading…
Cancel
Save