@ -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