フロントエンドプレイアブル
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
2026-02-15 14:57:17 +09:00
commit f25fd6f802
198 changed files with 10342 additions and 0 deletions

10
cleanup_data.rb Normal file
View File

@@ -0,0 +1,10 @@
turn1 = Turn.find_by(number: 1)
if turn1 && turn1.game_state.is_a?(Hash) && turn1.game_state.has_key?('game_state')
puts "Normalizing Turn 1 (ID: #{turn1.id})..."
turn1.update!(game_state: turn1.game_state['game_state'])
puts "Turn 1 optimized."
end
# 不整合のある後続ターンを削除
Turn.where('number > 1').destroy_all
puts "Cleared subsequent turns."