#!/usr/bin/env ruby
require File.expand_path('../../config/environment', __FILE__)
Dir.chdir Rails.root

ENV["SETUP"] = "1"
FreeBattle.destroy_all
FreeBattle.setup

tp FreeBattle

# >> |----+----------------------------------+----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------+---------------------------+---------------------------+-------------------+----------------------------------------+------------------+-----------------+----------------+-----------------|
# >> | id | key                              | kifu_url | kifu_body                                                                                                                                                                                                                                                                                                                                    | turn_max | meta_info                                                                                                                                                                                                                                                                            | battled_at                | created_at                | updated_at                | colosseum_user_id | title                                  | defense_tag_list | attack_tag_list | other_tag_list | secret_tag_list |
# >> |----+----------------------------------+----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------+---------------------------+---------------------------+-------------------+----------------------------------------+------------------+-----------------+----------------+-----------------|
# >> | 35 | 161537aa9246b27a6c30476c34171bdd |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:22 +0900 | 2019-03-09 19:51:22 +0900 |                   | 1番目の何かの棋譜                      |                  |                 |                |                 |
# >> | 36 | 7848d0faf75710eaa81a58473a2a5e72 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:22 +0900 | 2019-03-09 19:51:22 +0900 |                   | 2番目の何かの棋譜                      |                  |                 |                |                 |
# >> | 37 | e950d6092ce6e7968c7707bba6321b4e |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:22 +0900 | 2019-03-09 19:51:22 +0900 |                   | 3番目の何かの棋譜                      |                  |                 |                |                 |
# >> | 38 | 1f9ebacfab34c0b8e9608a5d7efb3f89 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:22 +0900 | 2019-03-09 19:51:22 +0900 |                   | 4番目の何かの棋譜                      |                  |                 |                |                 |
# >> | 39 | a6e2962835bc76d6ea43c5689d60dfd1 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:22 +0900 | 2019-03-09 19:51:22 +0900 |                   | 5番目の何かの棋譜                      |                  |                 |                |                 |
# >> | 40 | eb30d21189974b31a05e4e2baf81be9d |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:22 +0900 | 2019-03-09 19:51:22 +0900 |                   | 6番目の何かの棋譜                      |                  |                 |                |                 |
# >> | 41 | 97cb963b7d0f89b7701afe80376fa71f |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:22 +0900 | 2019-03-09 19:51:22 +0900 |                   | 7番目の何かの棋譜                      |                  |                 |                |                 |
# >> | 42 | 6e7c17dabd308feefdd253d180249a0b |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:22 +0900 | 2019-03-09 19:51:22 +0900 |                   | 8番目の何かの棋譜                      |                  |                 |                |                 |
# >> | 43 | b7c9329e27cea7fe410aba19b61e7368 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 9番目の何かの棋譜                      |                  |                 |                |                 |
# >> | 44 | 76d3f876ad833afbdc21f6e04a08d4a7 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 10番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 45 | f625683a21215382bfb59739f382c84e |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 11番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 46 | 1e33caa38652768ad3595d161ca5aa57 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 12番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 47 | 4338957dfe2c359a58b40f124aec820c |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 13番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 48 | 2320f580495d0cca451fcd5a7305cfc4 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 14番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 49 | 4d79c4defbee6276dd9fa9d1ab4acd78 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 15番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 50 | db487299a865265f20127e487da6e3d9 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 16番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 51 | c4db20094d4f6ab8df8104dc897ecbab |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 17番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 52 | 045252e55db1da8ffb3334b654850c1d |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 18番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 53 | 3c662973c8325add89f9a64047fda010 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 19番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 54 | 2420287cb415e09d3913392b9a267524 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 20番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 55 | 9ee1e4ed0310f6ea813bae89357e416f |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 21番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 56 | 2f80ade689acd4a50cb332c3da29537b |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 22番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 57 | c125853beca4b1259935b5a8bf9d50ff |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 23番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 58 | df1a2329ec45724e684491a3bd4ae21b |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 24番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 59 | ea5a146e3338814b005661c04f882aa4 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 25番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 60 | cf478bc04a3f735ed2f5d786d38a10bd |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 26番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 61 | 99573024509ad808b607a5f2d1003b5f |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 27番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 62 | ef4257ae2e3daaabebec30da669280b0 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 28番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 63 | 8431a16873da54428d3eaff8d544c3cb |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 29番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 64 | 195123e2ae4525bbd4af5bf3820ed4d2 |          |                                                                                                                                                                                                                                                                                                                                              |        0 | {:header=>{}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{}}                                                                                                                                                                                                 | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                   | 30番目の何かの棋譜                     |                  |                 |                |                 |
# >> | 65 | b347af257c2e5f96e3342b2309439132 |          | 手合割：平手\n後手の囲い：アヒル囲い\n後手の戦型：アヒル戦法\n手数----指手---------消費時間--\n   1 ７六歩(77)   (00:00/00:00:00)\n   2 ８四歩(83)   (00:00/00:00:00)\n   3 ２六歩(27)   (00:00/00:00:00)\n   4 ８五歩(84)   (00:00/00:00:00)\n   5 ７七角(88)   (00:00/00:00:00)\n   6 ８四飛(82)   (00:00/00:00:00)\...                    |       25 | {:header=>{"手合割"=>"平手", "後手の囲い"=>"アヒル囲い", "後手の戦型"=>"アヒル戦法"}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{"後手の囲い"=>["アヒル囲い"], "後手の戦型"=>["アヒル戦法"]}}                                                               | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:23 +0900 | 2019-03-09 19:51:23 +0900 |                 1 | 居飛車でのアヒル戦法対策               |                  |                 |                |                 |
# >> | 66 | 2417ab69cb70a7e36fe21cc6f62e4742 |          | 先手の囲い：片美濃囲い\n先手の戦型：三間飛車\n後手の戦型：一手損角換わり\n手合割：平手\n手数----指手---------消費時間--\n   1 ７六歩(77)   (00:00/00:00:00)\n   2 ３四歩(33)   (00:00/00:00:00)\n   3 ７五歩(76)   (00:00/00:00:00)\n   4 ８四歩(83)   (00:00/00:00:00)\n   5 ７八飛(28)   (00:00/00:00:00)\n*▲戦型：三間飛車\n   6 ８五... |       33 | {:header=>{"先手の囲い"=>"片美濃囲い", "先手の戦型"=>"三間飛車", "後手の戦型"=>"一手損角換わり", "手合割"=>"平手"}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{"先手の囲い"=>["片美濃囲い"], "先手の戦型"=>["三間飛車"], "後手の戦型"=>["一手損角換わり"]}} | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:24 +0900 | 2019-03-09 19:51:24 +0900 |                 1 | 石田流の基本2 飛車交換に応じてくれない |                  |                 |                |                 |
# >> | 67 | 116281f5af298a8bd2e06c0082f85ff1 |          | 先手の囲い：片美濃囲い\n先手の戦型：三間飛車\n後手の戦型：一手損角換わり\n手合割：平手\n手数----指手---------消費時間--\n   1 ７六歩(77)   (00:00/00:00:00)\n   2 ３四歩(33)   (00:00/00:00:00)\n   3 ７五歩(76)   (00:00/00:00:00)\n   4 ８四歩(83)   (00:00/00:00:00)\n   5 ７八飛(28)   (00:00/00:00:00)\n*▲戦型：三間飛車\n   6 ８五... |       33 | {:header=>{"先手の囲い"=>"片美濃囲い", "先手の戦型"=>"三間飛車", "後手の戦型"=>"一手損角換わり", "手合割"=>"平手"}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{"先手の囲い"=>["片美濃囲い"], "先手の戦型"=>["三間飛車"], "後手の戦型"=>["一手損角換わり"]}} | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:24 +0900 | 2019-03-09 19:51:24 +0900 |                 1 | 石田流の基本3 ▲78桂型                 |                  |                 |                |                 |
# >> | 68 | 64d3d0d631094642c29ced5cb677d54e |          | 先手の囲い：片美濃囲い\n先手の戦型：三間飛車\n後手の戦型：一手損角換わり\n手合割：平手\n手数----指手---------消費時間--\n   1 ７六歩(77)   (00:00/00:00:00)\n   2 ３四歩(33)   (00:00/00:00:00)\n   3 ７五歩(76)   (00:00/00:00:00)\n   4 ８四歩(83)   (00:00/00:00:00)\n   5 ７八飛(28)   (00:00/00:00:00)\n*▲戦型：三間飛車\n   6 ８五... |       35 | {:header=>{"先手の囲い"=>"片美濃囲い", "先手の戦型"=>"三間飛車", "後手の戦型"=>"一手損角換わり", "手合割"=>"平手"}, :detail_names=>[[], []], :simple_names=>[[], []], :skill_set_hash=>{"先手の囲い"=>["片美濃囲い"], "先手の戦型"=>["三間飛車"], "後手の戦型"=>["一手損角換わり"]}} | 0001-01-01 00:00:00 +0918 | 2019-03-09 19:51:24 +0900 | 2019-03-09 19:51:24 +0900 |                 1 | 石田流の基本1 飛車交換に応じてくれる   |                  |                 |                |                 |
# >> |----+----------------------------------+----------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------+---------------------------+---------------------------+-------------------+----------------------------------------+------------------+-----------------+----------------+-----------------|
