フロントエンドプレイアブル
This commit is contained in:
10
cleanup_data.rb
Normal file
10
cleanup_data.rb
Normal 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."
|
||||
Reference in New Issue
Block a user