rails_db 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/app/views/rails_db/tables/_edit.html.erb +1 -0
  4. data/app/views/rails_db/tables/_new.html.erb +5 -1
  5. data/lib/libs.rb +1 -0
  6. data/lib/rails_db/engine.rb +1 -1
  7. data/{app/helpers/rails_db/rails_db_data_table_helper.rb → lib/rails_db/helpers.rb} +2 -3
  8. data/lib/rails_db/version.rb +1 -1
  9. data/test/dashboard_controller_test.rb +3 -3
  10. data/test/dummy/db/migrate/20210626083314_add_country_column.rb +5 -0
  11. data/test/dummy/db/rails_db_dev.sqlite3 +0 -0
  12. data/test/dummy/db/schema.rb +47 -46
  13. data/test/dummy/db/test.sqlite3 +0 -0
  14. data/test/dummy/log/development.log +332 -0
  15. data/test/dummy/log/test.log +1066 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-3/-3QVlORKAkY3OKK5Y3jNcqxMCCw6x2KPkutAzr5yh8I.cache +1 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-w/-wp3_VP-F5Eg7f5xwjCswONdZpRX_AaUAZtT4IM7Jus.cache +1 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0S/0Sz133MDIsc1LArCubxacZhJ8nLVOiBGtJRu8GfXDDE.cache +1 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/10/10ZjuchBSeGlDBbju0ePmV-o1eLQHGbPSczhggr_BDI.cache +1 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1S/1SAIUj01NRwWvmiYGTQrU4HrTryzlqZ-Biba0YSLR3k.cache +1 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1b/1bYLWlvlLy3o1EVXrI65cZp6NoqtqLOrfBwQq_ZANbg.cache +4 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/2A/2A1nRbWQwmx-oUe25g7_eadH7u_QNdkNBpvnb2RpWtg.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/2G/2GjaL3LZb-KyYu6nfaJJikDRo7VBjK7ohCHNDtSPRjQ.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3E/3EFpick1X-VbbF8qXDGjkA3vtMUN7SfaM5J08FNu-F0.cache +0 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3_/3_N8qi-v_t4fnR1ntKtXgCnq3U1cne8_rCJRWqqjvSc.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/4V/4VR3nwq8kynkYTsZ5NgHk5Cq5QNYPrXrT6eP_txJM0k.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/56/56f0YqKJVB5lxWS6fxX3-IKtA3baiQDHKdsx5ITVofY.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5A/5AGrHygfa0dr9UNgXsqNSQCJFGaDjTJ5qsBWClUNCjU.cache +1 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/5j/5jrqD-ZQM_yLsKZtqQ5S4juRegbRT-ZXXjXxHsaeLYE.cache +0 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/6H/6HwILL99X3vzxm8U5l3U2qMFihLRhEJ-styplj5c9bI.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/6U/6UPN67uTa88HBmQCleFSSTQ92IgWUGdPH1-aSEA0Ubc.cache +1 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7K/7KnPiiBLrdCuZ4a07aiujSrFxqLlh7XswuZcep8NJLY.cache +1 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7O/7OMe9aoxS4elJyMEVIIB66VWJJ-IpZVv3Zje7cLk6qw.cache +1 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/7U/7U5_x5Gy3O6KT7I1D74iR3knrrDZ9FnFwtR0vx6pIoQ.cache +1 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/8-/8-v5EyKSB5oPHHHU-sTiHtkKlQutcabQYrHEtClt2gA.cache +0 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/93/93blw2yPIXNCRA0jLkniUJGZ1lkQh0RNTWMryDarAxk.cache +1 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/BJ/BJHcfY2FMnMMtFWR0sgq8O_orVxMUTAO4uhYQl-2n6w.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Cg/CgCRqakoZGzn92ZbjyGxwF6I4yJVeNgA1lG4Z5DFEjQ.cache +1 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Cj/Cjg7WWdPlbBxVXFBHK-rxyelilDCMqhnQFKWpSTsjWE.cache +0 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +0 -0
  41. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Dh/DhdJbACGmEQLFh4wl3omJoWAFz0VeZGmzh_vxN3egZE.cache +0 -0
  42. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/EY/EYKv8RfN22lqHn7i6Sbt95gJ5s9ZDjLhrV1UUtp9EFs.cache +0 -0
  43. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ev/EvxXoYvfDHtnwBDi31GlSuCDLIvDNpBICnmNITZkLPs.cache +0 -0
  44. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ey/EyxoPXsMsmLcI5Gxu5eCtNiOSUsvxk8VS0zTEvtTaiM.cache +0 -0
  45. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/FK/FK5AwCNG9ptRrLTNDBzFtoANmjG1c8sz1eHaCeKvtz8.cache +0 -0
  46. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/FN/FNUtSeGeiLGo6E_c0yQQLPedYuiUrolHALEvVVwlEpo.cache +0 -0
  47. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/FV/FVK60WuKOKwQaTXPfIoao4ksuZKAn1cfG5M650tE_SY.cache +1 -0
  48. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/FW/FWg2gz4JaO-WpgRkZYKOf4Y6n9j2BAHh70UXNcqGC00.cache +1 -0
  49. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Gh/GhVGh48Vehr7jnlVaVdq8OmSr5kwM2ZPhqDzCaUIhs8.cache +0 -0
  50. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/HY/HYTBUMYgbrHeL5K_OYZxOOvBt01QXYHlessDBzVQjkw.cache +1 -0
  51. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Hm/Hm_dB990wgu-qKVaW3rf6T9naU1-prBggT5uGDA9ZU0.cache +0 -0
  52. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Hr/HrXCXnpRkd2D4JCcPTb8gpS1ItvryBogkJrOTSbm8-k.cache +0 -0
  53. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IE/IE-zT0ElWYJPrOMCFZRxmP_w1rmF05chegkbng0_g5M.cache +1 -0
  54. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/IR/IRJqw4XjEa8X63PRewZM2STdKrBXMJI3yrYuHXdGFU4.cache +1 -0
  55. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/If/IfIkRX5iA57MRTJQRH8adc9rBNy9hdUkO1rz2VFUQBI.cache +0 -0
  56. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Jt/JtOILcGNpnHnJp4kF8MuLNqklKKq8oIhLErkngHuRCA.cache +1 -0
  57. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/L2/L2AsAfe3iqSKZUvXVxrlTIOrkLAiqe49iAJ1_KvHais.cache +1 -0
  58. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/LD/LDeXHxUCfEVxXTqoavm9mhInVtLWjMvubb7ctYajkF0.cache +0 -0
  59. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/M9/M9s1An2hYd_KAKVkxkNMNLOu3tHepfwckav2XA_ovuY.cache +1 -0
  60. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Oa/OaySsComAwye5vJzQQn6JmcmtvIS0l915a6N7XEAHcE.cache +1 -0
  61. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/P6/P66uAfRp7cggCtXoKgC0jVconrrdJOVtcphG07j4MIw.cache +1 -0
  62. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/PQ/PQFDpLanaCmaJH8mIxTk4eHxAD9Up_Y-IqTtzU9FKX8.cache +1 -0
  63. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/PT/PTfZkWgs6Eo_X7tejp9pJoq7GsdEW06RvjFa1MhADLo.cache +0 -0
  64. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Q7/Q7f8nU7bVpqKrPiWQ-GEM7EjIUdCuRny74bhWl4ovTc.cache +0 -0
  65. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/RZ/RZAv6vD8N1if_TtUsOQXdO6tVd2hkGacT5k9a4mXFKw.cache +1 -0
  66. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/Ru3fleEkpSbDk4h7-EHQ4Hckx04xbCygt3F_kSEsx34.cache +0 -0
  67. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/S1/S1dLmfwkUpwJvg4tYuVOf3aWupOOP3M6iyKrFsG2tx8.cache +3 -0
  68. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/S7/S7oG51QVVKMPmNb6hOJgudX21aHik9FaRX_1xACwTYw.cache +0 -0
  69. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/SP/SPAkohSw9CUei4_AoX3t9F-xz-ulJguMZDxnXHK8xRs.cache +0 -0
  70. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/SR/SRlBuVekx5voijkM7Pur-7CEeD9aOoItZYTK7KkxrPc.cache +0 -0
  71. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Se/Seo_ZvwlNJYdKo2voDO7AWyIwJ4fOTa13zD72eiVYGM.cache +0 -0
  72. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/U4/U43czrbZRBo4u0jim3ARQfVVe6Xc_OWRiwQmiyb0Z-Q.cache +0 -0
  73. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/UP/UPfVK0LZakMvumMs5iiy5bHGcOF-XlKn3iR1CEUeZmk.cache +0 -0
  74. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/UR/URzOSZPYUygQwK4hWeC7aZkfCO9Bgbc6FrnabD_Ubis.cache +1 -0
  75. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ue/UegAFbSgfZFSXguvibbWePrkfx4hi_lBKXg_NUppqqo.cache +0 -0
  76. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/VA/VAzIvqTByiGq5j-A-Vm5laOr2sIAe_MZavCPtR1LgxM.cache +1 -0
  77. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/WF/WFzBN8f1otvH1grrqH2K0eE8l9JLNBfBRT3BpGaEzBo.cache +0 -0
  78. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/_9/_9vkshSoX3jblFg8DKhnFJUNvjRQ_pTdEaPANI8UgYI.cache +0 -0
  79. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/_f/_fZ4a6WMMPTan-OJ1eB_jDV7lYI2BQ9I7VS0IXLxvP4.cache +0 -0
  80. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/_n/_nuA_-zEEC6OUDBREGtw9wLfUH_pS1PfVOu5HUyLdss.cache +1 -0
  81. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/aS/aS4TrTg8RLg_Z4_pOGyJwMBFFYqKRCO8H18SA2ZzfP4.cache +1 -0
  82. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/d2/d2OcpXM9a7UxhuZHig1dByvz3LsBKFihLvaLj72BOMQ.cache +0 -0
  83. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dV/dVvV1v4dW9Uo7W5YkXkFCJyc58iDNZV7PpVkDv9flf8.cache +0 -0
  84. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dm/dmcaxTQMouCAhdqqQz87SB4mAmTqv9Px98ezg1ObJjE.cache +1 -0
  85. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dr/drxgNp7QAPL2eFDNcxM7-FdfXGY9_weJkF80543pvGU.cache +1 -0
  86. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/e_/e_8onHrO536kcdolzmbEdQKKexb_hm1QBGnTo_giI_c.cache +1 -0
  87. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ej/ejYzYxahUd_h63ntKOTeJTw9xosZ1cWF1Bf3-RfsXWY.cache +0 -0
  88. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/eo/eojuSXOPTgWhEGR858AGqRe2F3W6gRrvCuFgPUnV_lE.cache +1 -0
  89. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/f2/f2kjY3WJBcdzPf2XhMDyydDIg-E6Co3QhBwUDy57aRg.cache +3 -0
  90. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/f9/f9fN25_s1xEPbSJPbziFezw1XGa5Adjt4Ye5AUSJMBU.cache +1 -0
  91. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gO/gOt0rsWcD6oXY2JVRddHwNR9GIQauV5tDI_E8jUJA5o.cache +1 -0
  92. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gR/gRw4UxQrb5QX2un3w82WIobHDjITrm4t_LoZTs0g_BQ.cache +1 -0
  93. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +0 -0
  94. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/hh/hhiDzfELHlFMWzLHiRZ1Q1ReHczde_9sDjiyvYahdnc.cache +1 -0
  95. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/jr/jrdwb_fYyeGBcwGtiyoRclS6JTefvy16LAZblhH6anE.cache +1 -0
  96. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/k0/k0Gmn2VNaFEdDoO7ReNwvaWhWixEEixrO5y1vMfHC6U.cache +1 -0
  97. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lL/lL-8Ksac514GJR-eXaxokPaw0FEooj_AbWp58vbHTDQ.cache +1 -0
  98. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lw/lw0pCeTBhYhgUsAe4MDQI1zvPy7UO0IRBgi8klRsJ6U.cache +0 -0
  99. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mW/mWyN4_zRMj3_J_ask-bfF_kIWekO7-gL7AO-gkLedu8.cache +0 -0
  100. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/o8/o8eOxR7XYyN2iJ3Nh4AkkJbRmJW_rz1758pbLIBrtkw.cache +0 -0
  101. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/oE/oEZ1tbI4lzlmNgdwD5z8w_F0w5klJuvRuqz4zKsIPa4.cache +1 -0
  102. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/oL/oLhZZ_gEt-mBj_3tAFDnXZ60DNnVk1vSLMGxwf27we0.cache +1 -0
  103. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/oc/ocK2z5A3yrXe5TAQ65y27g_itt_TKtPgngdgjwTn1C8.cache +1 -0
  104. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/oc/ocgAanSJBcGocntYEDPdnyld1ofAZi75mZf86Acvb3c.cache +0 -0
  105. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/pu/pucRb8cNmQDSe1AmdEd48j9E30NGOheMFL86tQ7fpl0.cache +0 -0
  106. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/q8/q8ZuvLmAcLiIyIC3xBlbte8qtUiw9Qoe4e0Ns1qAbqc.cache +1 -0
  107. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/q9/q9puqb4cnoN8_59H-ZoUpYm9W8PpdWceYDDcrbcMVag.cache +0 -0
  108. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/ry/rylECWrYaw5GRWufNcrrx8CZ9tFARhxZ0wxdoq6Me7M.cache +0 -0
  109. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/u0/u0SoQOyS8i-jdsiMBgccpyUtdygqKYmwHVxqKtF1-aA.cache +1 -0
  110. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/uJ/uJZt0qoVefbR-A8UqX1r-ie-8Pda0odosR9gICUqpUw.cache +0 -0
  111. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/uo/uoG_Opfdkeoxj2p4rXA1OeHgBzMeXQoEEK4Vsc_BvD0.cache +1 -0
  112. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vJ/vJi8H_bdp3XiIrKNT1zg5BcWXvnQV23p7T8Ap2odjmU.cache +0 -0
  113. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vW/vWfhzaoyrvEUgX0vnRufnld1buC_KEfVE_Y9GxTlEFc.cache +0 -0
  114. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/vm/vmes21C_KXQjYDMjh8Qvn_N4yBfWLLF7Hc6Xh6jicmU.cache +1 -0
  115. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wF/wFaxWSrFAJPpvKB6_YL_95DDGWRC71mn3xteI9W7J6s.cache +0 -0
  116. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wX/wXwZ8w-U_C8sR1mJQM_6xC27bBddxI7um4jzY43T_ac.cache +0 -0
  117. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wd/wdcSSYIVPzSeweLrhWZw_Fbtld_1nP0nwWGwTMOONkQ.cache +1 -0
  118. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wp/wpSFujYOOaLqa0vWCSnHWjPqi6k_vXyoi03_93rMdqg.cache +0 -0
  119. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xm/xmtA-I2RBVgCHXEokd428Tx8BNmO7zLo7js3xECuy8U.cache +0 -0
  120. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yK/yKdSBGdJNWhLrijPzBhCkVF1L_U1w6jC7dxoljx5cgA.cache +1 -0
  121. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yQ/yQrUGYdIOQBJSqyEaC-s2ykCQmhUFmAhdWGwMJZkFVs.cache +0 -0
  122. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/zT/zTec8hFOqpCQ9fcuTseWaVsetST5mj-sNqx7I4K0CV8.cache +1 -0
  123. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/zc/zcb3VI6GoraI5azNCn34gI364cK1hlfOWJfvkxwrqHs.cache +3 -0
  124. data/test/{rails_db_data_table_helper_test.rb → rails_db_helpers_test.rb} +2 -2
  125. data/test/table_test.rb +1 -1
  126. metadata +207 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ffa6e6e34292d0334c14dea31e7017935666d75a7dcd2c5ce98020c8f3a7668
4
- data.tar.gz: a83cbc66f926e9f252d42a9a9c0e573581600266ad9303865d6ec078b4850448
3
+ metadata.gz: 829a97d43533382b13883e37735db5ce9ff45cbc637d824777e38aeab92195a7
4
+ data.tar.gz: 96e50af712d6ad7aae399ac238314e7e453ba0cfcfed2108f71d87e4e5be6ab6
5
5
  SHA512:
6
- metadata.gz: 0e18a7f3ebbfbba4947d6fb33db9e3e831076b149af60f34a8b83f92f3b14692777ca7e75a8da120481ba5d975bb7e1dac0531ac56ab774eb52589d58d32ccb1
7
- data.tar.gz: 2268e2aaee5ebcb055038044a9b3a1c5bb7f26eb27bbb9c244c22aca04b3af0e120695d7713a47806c0e8caca8bfec6bd8b549214a2cb488d5f3cdf9c8559ff6
6
+ metadata.gz: 9a9026af48963304b771c3f62aa99a553cbb3d8adf9f05b3a3eb0aeca2591e0f2290ed8c1136efb7fed1d7a3fb0f4f4786b94d5337c0eb83c153cc9d57ff7ad0
7
+ data.tar.gz: 6f7c9d5e201eeea84e5aa2ed75bd974242196ab83772d383e3752f1fc1221c17ba68a4f68ce498db0004f4fb16e6a52b33b43b0b474da7a2ffcb120c27d873fc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_db (2.4.0)
4
+ rails_db (2.4.1)
5
5
  activerecord
6
6
  kaminari
7
7
  rails (>= 5.0.0)
@@ -11,6 +11,7 @@
11
11
  <% options = { label: name } %>
12
12
  <% options[:include_blank] = true if column.type.to_s =~ /time|date/ %>
13
13
  <% options[:as] = :text if column.type.to_s =~ /tsvector/ %>
14
+ <% options[:as] = :text if name.to_s == 'country' %>
14
15
  <% if column.type.to_s =~ /text/ %>
15
16
  <% options[:input_html] = {} %>
16
17
  <% options[:input_html][:rows] = 4 %>
@@ -7,7 +7,11 @@
7
7
  <% @record.class.columns.each do |column| %>
8
8
  <% name = column.name %>
9
9
  <% next if [@table.primary_key, 'created_at', 'updated_at'].include?(column.name) %>
10
- <%= form.input name, label: name %>
10
+ <% if name.to_s == "country" %>
11
+ <%= form.input name, label: name, as: :string %>
12
+ <% else %>
13
+ <%= form.input name, label: name %>
14
+ <% end %>
11
15
  <% end %>
12
16
  </div>
13
17
  <%= form.submit 'SAVE', class: 'button small' %>
data/lib/libs.rb CHANGED
@@ -7,6 +7,7 @@ require_relative 'rails_db/mysql_result'
7
7
  require_relative 'rails_db/result'
8
8
  require_relative 'rails_db/rails_db_error'
9
9
  require_relative 'rails_db/history'
10
+ require_relative 'rails_db/helpers'
10
11
 
11
12
  require_relative 'rails_db/sql_query_data'
12
13
  require_relative 'rails_db/sql_explain'
@@ -21,7 +21,7 @@ module RailsDb
21
21
 
22
22
  initializer 'rails_db.helpers' do
23
23
  ActiveSupport.on_load :action_view do
24
- ActionView::Base.send :include, RailsDb::RailsDbDataTableHelper
24
+ include RailsDb::Helpers
25
25
  end
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  module RailsDb
2
- module RailsDbDataTableHelper
2
+ module Helpers
3
3
  # TODO check styles
4
4
  STYLES = {
5
5
  default: {
@@ -69,6 +69,5 @@ module RailsDb
69
69
  style = STYLES[style] || STYLES[:default]
70
70
  style[tag.to_sym]
71
71
  end
72
-
73
72
  end
74
- end
73
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsDb
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.1"
3
3
  end
@@ -67,7 +67,7 @@ class DashboardControllerTest < ActionDispatch::IntegrationTest
67
67
  get '/rails/db/tables/users/edit?pk_id=' + edit_user.id.to_s, xhr: true
68
68
  assert_equal 200, status
69
69
 
70
- put '/rails/db/tables/users/update?pk_id=' + edit_user.id.to_s, {xhr: true, params: { record: { name: 'JOHN' }}}
70
+ put '/rails/db/tables/users/update?pk_id=' + edit_user.id.to_s, xhr: true, params: { record: { name: 'JOHN' }}
71
71
  assert_equal 200, status
72
72
  edit_user.reload
73
73
  assert_equal 'JOHN', edit_user.name
@@ -76,14 +76,14 @@ class DashboardControllerTest < ActionDispatch::IntegrationTest
76
76
  assert_equal 200, status
77
77
 
78
78
  assert_equal 2, User.count
79
- post '/rails/db/tables/users/create', {xhr: true, params: { record: { name: 'XXX' }} }
79
+ post '/rails/db/tables/users/create', xhr: true, params: { record: { name: 'XXX' }}
80
80
  assert_equal 200, status
81
81
  assert_equal 3, User.count
82
82
 
83
83
  get '/rails/db/tables/users/edit?pk_id=' + customer.id.to_s, xhr: true
84
84
  assert_equal 200, status
85
85
 
86
- put '/rails/db/tables/users/update?pk_id=' + customer.id.to_s, {xhr: true, params: { record: { name: 'STI' }} }
86
+ put '/rails/db/tables/users/update?pk_id=' + customer.id.to_s, xhr: true, params: { record: { name: 'STI' }}
87
87
  assert_equal 200, status
88
88
  customer.reload
89
89
  assert_equal 'STI', customer.name
@@ -0,0 +1,5 @@
1
+ class AddCountryColumn < ActiveRecord::Migration[6.1]
2
+ def change
3
+ add_column :users, :country, :string
4
+ end
5
+ end
Binary file
@@ -2,15 +2,15 @@
2
2
  # of editing this file, please use the migrations feature of Active Record to
3
3
  # incrementally modify your database, and then regenerate this schema definition.
4
4
  #
5
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
5
+ # This file is the source Rails uses to define your schema when running `bin/rails
6
+ # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7
+ # be faster and is potentially less error prone than running all of your
8
+ # migrations from scratch. Old migrations may fail to apply correctly if those
9
+ # migrations use external dependencies or application code.
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20180528134358) do
13
+ ActiveRecord::Schema.define(version: 2021_06_26_083314) do
14
14
 
15
15
  create_table "accounts", force: :cascade do |t|
16
16
  t.string "name"
@@ -49,46 +49,46 @@ ActiveRecord::Schema.define(version: 20180528134358) do
49
49
 
50
50
  create_table "projects", force: :cascade do |t|
51
51
  t.string "name"
52
- t.string "description_214636"
53
- t.string "description_881927"
54
- t.string "description_377910"
55
- t.string "description_787561"
56
- t.string "description_397939"
57
- t.string "description_427609"
58
- t.string "description_70125"
59
- t.string "description_68088"
60
- t.string "description_211155"
61
- t.string "description_915979"
62
- t.string "description_198834"
63
- t.string "description_669085"
64
- t.string "description_771"
65
- t.string "description_519606"
66
- t.string "description_500107"
67
- t.string "description_277668"
68
- t.string "description_706655"
69
- t.string "description_617984"
70
- t.string "description_312370"
71
- t.string "description_239866"
72
- t.integer "amount_777579"
73
- t.integer "amount_886090"
74
- t.integer "amount_11955"
75
- t.integer "amount_494653"
76
- t.integer "amount_666834"
77
- t.integer "amount_297923"
78
- t.integer "amount_458470"
79
- t.integer "amount_339355"
80
- t.integer "amount_539001"
81
- t.integer "amount_209067"
82
- t.integer "amount_74088"
83
- t.integer "amount_736364"
84
- t.integer "amount_685429"
85
- t.integer "amount_506310"
86
- t.integer "amount_440103"
87
- t.integer "amount_418280"
88
- t.integer "amount_60289"
89
- t.integer "amount_433505"
90
- t.integer "amount_160749"
91
- t.integer "amount_723751"
52
+ t.string "description_245592"
53
+ t.string "description_450580"
54
+ t.string "description_183349"
55
+ t.string "description_341325"
56
+ t.string "description_277196"
57
+ t.string "description_943405"
58
+ t.string "description_904897"
59
+ t.string "description_267877"
60
+ t.string "description_47807"
61
+ t.string "description_713494"
62
+ t.string "description_696562"
63
+ t.string "description_976508"
64
+ t.string "description_918800"
65
+ t.string "description_27002"
66
+ t.string "description_393763"
67
+ t.string "description_960166"
68
+ t.string "description_804457"
69
+ t.string "description_684568"
70
+ t.string "description_98716"
71
+ t.string "description_337791"
72
+ t.integer "amount_584190"
73
+ t.integer "amount_898177"
74
+ t.integer "amount_599511"
75
+ t.integer "amount_308345"
76
+ t.integer "amount_572259"
77
+ t.integer "amount_562080"
78
+ t.integer "amount_684853"
79
+ t.integer "amount_77648"
80
+ t.integer "amount_377109"
81
+ t.integer "amount_246825"
82
+ t.integer "amount_91844"
83
+ t.integer "amount_787673"
84
+ t.integer "amount_158730"
85
+ t.integer "amount_331843"
86
+ t.integer "amount_540084"
87
+ t.integer "amount_780019"
88
+ t.integer "amount_745694"
89
+ t.integer "amount_715202"
90
+ t.integer "amount_887110"
91
+ t.integer "amount_607339"
92
92
  t.datetime "created_at", null: false
93
93
  t.datetime "updated_at", null: false
94
94
  t.datetime "deleted_at"
@@ -113,6 +113,7 @@ ActiveRecord::Schema.define(version: 20180528134358) do
113
113
  t.date "dob"
114
114
  t.boolean "active", default: true
115
115
  t.string "type"
116
+ t.string "country"
116
117
  t.index ["account_id"], name: "index_users_on_account_id"
117
118
  t.index ["name"], name: "index_users_on_name"
118
119
  t.index ["salary"], name: "index_users_on_salary"
Binary file
@@ -223,3 +223,335 @@ Processing by RailsDb::TablesController#create as JS
223
223
  Completed 200 OK in 3869ms (Views: 45.0ms | ActiveRecord: 3.1ms | Allocations: 71502)
224
224
 
225
225
 
226
+  (0.9ms) SELECT sqlite_version(*)
227
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
228
+ Migrating to AddCountryColumn (20210626083314)
229
+ TRANSACTION (0.0ms) begin transaction
230
+  (0.4ms) ALTER TABLE "users" ADD "country" varchar
231
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20210626083314"]]
232
+ TRANSACTION (2.1ms) commit transaction
233
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
234
+  (0.0ms) SELECT sqlite_version(*)
235
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
236
+ Started GET "/" for 192.168.0.108 at 2021-06-26 01:33:49 -0700
237
+  (0.6ms) SELECT sqlite_version(*)
238
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
239
+ Processing by HomeController#index as HTML
240
+ Rendering layout layouts/application.html.erb
241
+ Rendering home/index.html.erb within layouts/application
242
+  (0.1ms) SELECT id, name, users_count FROM accounts ORDER BY users_count desc LIMIT 10 OFFSET 0
243
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_data_table.html.erb (Duration: 0.7ms | Allocations: 645)
244
+  (0.1ms) select id, name, age from users order by age desc limit 10
245
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_sql_result.html.erb (Duration: 0.5ms | Allocations: 536)
246
+  (0.1ms) SELECT COUNT(*) FROM "users"
247
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."type" = ? [["type", "Customer"]]
248
+  (0.1ms) SELECT COUNT(*) FROM "accounts"
249
+ Rendered home/index.html.erb within layouts/application (Duration: 16.1ms | Allocations: 7109)
250
+ Rendered layout layouts/application.html.erb (Duration: 289.4ms | Allocations: 137068)
251
+ Completed 200 OK in 300ms (Views: 291.1ms | ActiveRecord: 1.0ms | Allocations: 140645)
252
+
253
+
254
+ Started GET "/assets/application.debug-421266e152cbfb3f2385f564b9be42243c2ab61de590ce6647e3cd742050ed48.css" for 192.168.0.108 at 2021-06-26 01:33:49 -0700
255
+ Started GET "/assets/application.debug-a1cb7dfbf90892f06b5c91607f1d134a954845da49f4def90ffc484e298dfb23.js" for 192.168.0.108 at 2021-06-26 01:33:49 -0700
256
+ Started GET "/rails/db" for 192.168.0.108 at 2021-06-26 01:33:51 -0700
257
+ Processing by RailsDb::DashboardController#index as HTML
258
+ Rendering layout /root/projects/rails_db/app/views/layouts/rails_db/application.html.erb
259
+ Rendering /root/projects/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application
260
+ Rendered /root/projects/rails_db/app/views/rails_db/dashboard/index.html.erb within layouts/rails_db/application (Duration: 0.9ms | Allocations: 953)
261
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 2.2ms | Allocations: 2409)
262
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 1.6ms | Allocations: 915)
263
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.4ms | Allocations: 410)
264
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 2.6ms | Allocations: 1708)
265
+ Rendered layout /root/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 105.4ms | Allocations: 83456)
266
+ Completed 200 OK in 107ms (Views: 106.3ms | ActiveRecord: 0.1ms | Allocations: 84715)
267
+
268
+
269
+ Started GET "/assets/rails_db/application.debug-b68d73bfa75c10a9608a0ddbff28c38f96a3dd0fee187b37a39ae32277ddcd34.js" for 192.168.0.108 at 2021-06-26 01:33:51 -0700
270
+ Started GET "/assets/rails_db/application.debug-f7c4d149f5a7e42e5f900c7e0f454055e2baa311b79aec7c34816e77d8329481.css" for 192.168.0.108 at 2021-06-26 01:33:51 -0700
271
+ Started GET "/assets/rails_db/logo_mini-e46c13b71074493bb7845fa9e5838957fc7f4825088d7474700e8ecad3a12cb0.png" for 192.168.0.108 at 2021-06-26 01:33:51 -0700
272
+ Started GET "/assets/rails_db/logo-72ddb38e7d2961f79f60a852fe496dbd533ffae37f9591ddf5c5ce3eb500b9c9.png" for 192.168.0.108 at 2021-06-26 01:33:51 -0700
273
+ Started GET "/rails/db/tables/users/data" for 192.168.0.108 at 2021-06-26 01:33:53 -0700
274
+ Processing by RailsDb::TablesController#data as JS
275
+ Parameters: {"table_id"=>"users"}
276
+  (0.1ms) SELECT COUNT(*) FROM "users"
277
+ Rendering /root/projects/rails_db/app/views/rails_db/tables/data.js.erb
278
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.6ms | Allocations: 146)
279
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 48.1ms | Allocations: 32423)
280
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 28.1ms | Allocations: 7540)
281
+  Load (0.3ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
282
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 2.0ms | Allocations: 1504)
283
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 1.5ms | Allocations: 1202)
284
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 1.7ms | Allocations: 1207)
285
+ CACHE (0.0ms) SELECT COUNT(*) FROM "users"
286
+ CACHE (0.0ms) SELECT COUNT(*) FROM "users"
287
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.2ms | Allocations: 116)
288
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 116.1ms | Allocations: 68169)
289
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/data.js.erb (Duration: 118.3ms | Allocations: 70177)
290
+ Completed 200 OK in 133ms (Views: 117.3ms | ActiveRecord: 3.6ms | Allocations: 74111)
291
+
292
+
293
+ Started GET "/rails/db/tables/users/new" for 192.168.0.108 at 2021-06-26 01:33:55 -0700
294
+ Processing by RailsDb::TablesController#new as JS
295
+ Parameters: {"table_id"=>"users"}
296
+  (0.1ms) SELECT COUNT(*) FROM "users"
297
+ Rendering /root/projects/rails_db/app/views/rails_db/tables/new.js.erb
298
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_new.html.erb (Duration: 30.5ms | Allocations: 21134)
299
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/new.js.erb (Duration: 32.2ms | Allocations: 21592)
300
+ Completed 500 Internal Server Error in 43ms (ActiveRecord: 2.5ms | Allocations: 27941)
301
+
302
+
303
+
304
+ ActionView::Template::Error (undefined method `country_select' for #<SimpleForm::FormBuilder:0x00007fe9446a1d48>):
305
+ 7: <% @record.class.columns.each do |column| %>
306
+ 8: <% name = column.name %>
307
+ 9: <% next if [@table.primary_key, 'created_at', 'updated_at'].include?(column.name) %>
308
+ 10: <%= form.input name, label: name %>
309
+ 11: <% end %>
310
+ 12: </div>
311
+ 13: <%= form.submit 'SAVE', class: 'button small' %>
312
+
313
+ simple_form (5.1.0) lib/simple_form/inputs/priority_input.rb:8:in `input'
314
+ simple_form (5.1.0) lib/simple_form/components/label_input.rb:29:in `call'
315
+ simple_form (5.1.0) lib/simple_form/components/label_input.rb:29:in `deprecated_component'
316
+ simple_form (5.1.0) lib/simple_form/components/label_input.rb:15:in `label_input'
317
+ simple_form (5.1.0) lib/simple_form/wrappers/leaf.rb:20:in `call'
318
+ simple_form (5.1.0) lib/simple_form/wrappers/leaf.rb:20:in `render'
319
+ simple_form (5.1.0) lib/simple_form/wrappers/many.rb:29:in `block in render'
320
+ simple_form (5.1.0) lib/simple_form/wrappers/many.rb:27:in `each'
321
+ simple_form (5.1.0) lib/simple_form/wrappers/many.rb:27:in `render'
322
+ simple_form (5.1.0) lib/simple_form/wrappers/root.rb:16:in `render'
323
+ simple_form (5.1.0) lib/simple_form/form_builder.rb:124:in `input'
324
+ /root/projects/rails_db/app/views/rails_db/tables/_new.html.erb:10
325
+ /root/projects/rails_db/app/views/rails_db/tables/_new.html.erb:7:in `each'
326
+ /root/projects/rails_db/app/views/rails_db/tables/_new.html.erb:7
327
+ actionview (6.1.3.2) lib/action_view/helpers/capture_helper.rb:45:in `block in capture'
328
+ actionview (6.1.3.2) lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer'
329
+ actionview (6.1.3.2) lib/action_view/helpers/capture_helper.rb:45:in `capture'
330
+ actionview (6.1.3.2) lib/action_view/helpers/form_helper.rb:450:in `form_for'
331
+ simple_form (5.1.0) lib/simple_form/action_view_extensions/form_helper.rb:27:in `block in simple_form_for'
332
+ simple_form (5.1.0) lib/simple_form/action_view_extensions/form_helper.rb:46:in `with_simple_form_field_error_proc'
333
+ simple_form (5.1.0) lib/simple_form/action_view_extensions/form_helper.rb:26:in `simple_form_for'
334
+ /root/projects/rails_db/app/views/rails_db/tables/_new.html.erb:5
335
+ actionview (6.1.3.2) lib/action_view/base.rb:247:in `public_send'
336
+ actionview (6.1.3.2) lib/action_view/base.rb:247:in `_run'
337
+ actionview (6.1.3.2) lib/action_view/template.rb:154:in `block in render'
338
+ activesupport (6.1.3.2) lib/active_support/notifications.rb:205:in `instrument'
339
+ actionview (6.1.3.2) lib/action_view/template.rb:345:in `instrument_render_template'
340
+ actionview (6.1.3.2) lib/action_view/template.rb:152:in `render'
341
+ actionview (6.1.3.2) lib/action_view/renderer/partial_renderer.rb:285:in `block in render_partial_template'
342
+ activesupport (6.1.3.2) lib/active_support/notifications.rb:203:in `block in instrument'
343
+ activesupport (6.1.3.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
344
+ activesupport (6.1.3.2) lib/active_support/notifications.rb:203:in `instrument'
345
+ actionview (6.1.3.2) lib/action_view/renderer/partial_renderer.rb:280:in `render_partial_template'
346
+ actionview (6.1.3.2) lib/action_view/renderer/partial_renderer.rb:271:in `render'
347
+ actionview (6.1.3.2) lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object'
348
+ actionview (6.1.3.2) lib/action_view/renderer/renderer.rb:53:in `render_partial'
349
+ actionview (6.1.3.2) lib/action_view/helpers/rendering_helper.rb:45:in `render'
350
+ /root/projects/rails_db/app/views/rails_db/tables/new.js.erb:1
351
+ actionview (6.1.3.2) lib/action_view/base.rb:247:in `public_send'
352
+ actionview (6.1.3.2) lib/action_view/base.rb:247:in `_run'
353
+ actionview (6.1.3.2) lib/action_view/template.rb:154:in `block in render'
354
+ activesupport (6.1.3.2) lib/active_support/notifications.rb:205:in `instrument'
355
+ actionview (6.1.3.2) lib/action_view/template.rb:345:in `instrument_render_template'
356
+ actionview (6.1.3.2) lib/action_view/template.rb:152:in `render'
357
+ actionview (6.1.3.2) lib/action_view/renderer/template_renderer.rb:61:in `block (2 levels) in render_template'
358
+ activesupport (6.1.3.2) lib/active_support/notifications.rb:203:in `block in instrument'
359
+ activesupport (6.1.3.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
360
+ activesupport (6.1.3.2) lib/active_support/notifications.rb:203:in `instrument'
361
+ actionview (6.1.3.2) lib/action_view/renderer/template_renderer.rb:56:in `block in render_template'
362
+ actionview (6.1.3.2) lib/action_view/renderer/template_renderer.rb:75:in `render_with_layout'
363
+ actionview (6.1.3.2) lib/action_view/renderer/template_renderer.rb:55:in `render_template'
364
+ actionview (6.1.3.2) lib/action_view/renderer/template_renderer.rb:11:in `render'
365
+ actionview (6.1.3.2) lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
366
+ actionview (6.1.3.2) lib/action_view/renderer/renderer.rb:29:in `render_to_object'
367
+ actionview (6.1.3.2) lib/action_view/rendering.rb:117:in `block in _render_template'
368
+ actionview (6.1.3.2) lib/action_view/base.rb:273:in `in_rendering_context'
369
+ actionview (6.1.3.2) lib/action_view/rendering.rb:116:in `_render_template'
370
+ actionpack (6.1.3.2) lib/action_controller/metal/streaming.rb:218:in `_render_template'
371
+ actionview (6.1.3.2) lib/action_view/rendering.rb:103:in `render_to_body'
372
+ actionpack (6.1.3.2) lib/action_controller/metal/rendering.rb:52:in `render_to_body'
373
+ actionpack (6.1.3.2) lib/action_controller/metal/renderers.rb:142:in `render_to_body'
374
+ actionpack (6.1.3.2) lib/abstract_controller/rendering.rb:25:in `render'
375
+ actionpack (6.1.3.2) lib/action_controller/metal/rendering.rb:36:in `render'
376
+ actionpack (6.1.3.2) lib/action_controller/metal/instrumentation.rb:46:in `block (2 levels) in render'
377
+ /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
378
+ activesupport (6.1.3.2) lib/active_support/core_ext/benchmark.rb:14:in `ms'
379
+ actionpack (6.1.3.2) lib/action_controller/metal/instrumentation.rb:46:in `block in render'
380
+ actionpack (6.1.3.2) lib/action_controller/metal/instrumentation.rb:86:in `cleanup_view_runtime'
381
+ activerecord (6.1.3.2) lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
382
+ actionpack (6.1.3.2) lib/action_controller/metal/instrumentation.rb:45:in `render'
383
+ actionpack (6.1.3.2) lib/action_controller/metal/implicit_render.rb:35:in `default_render'
384
+ actionpack (6.1.3.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
385
+ actionpack (6.1.3.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
386
+ actionpack (6.1.3.2) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
387
+ actionpack (6.1.3.2) lib/abstract_controller/base.rb:228:in `process_action'
388
+ actionpack (6.1.3.2) lib/action_controller/metal/rendering.rb:30:in `process_action'
389
+ actionpack (6.1.3.2) lib/abstract_controller/callbacks.rb:42:in `block in process_action'
390
+ activesupport (6.1.3.2) lib/active_support/callbacks.rb:117:in `block in run_callbacks'
391
+ actiontext (6.1.3.2) lib/action_text/rendering.rb:20:in `with_renderer'
392
+ actiontext (6.1.3.2) lib/action_text/engine.rb:55:in `block (4 levels) in <class:Engine>'
393
+ activesupport (6.1.3.2) lib/active_support/callbacks.rb:126:in `instance_exec'
394
+ activesupport (6.1.3.2) lib/active_support/callbacks.rb:126:in `block in run_callbacks'
395
+ activesupport (6.1.3.2) lib/active_support/callbacks.rb:137:in `run_callbacks'
396
+ actionpack (6.1.3.2) lib/abstract_controller/callbacks.rb:41:in `process_action'
397
+ actionpack (6.1.3.2) lib/action_controller/metal/rescue.rb:22:in `process_action'
398
+ actionpack (6.1.3.2) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
399
+ activesupport (6.1.3.2) lib/active_support/notifications.rb:203:in `block in instrument'
400
+ activesupport (6.1.3.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
401
+ activesupport (6.1.3.2) lib/active_support/notifications.rb:203:in `instrument'
402
+ actionpack (6.1.3.2) lib/action_controller/metal/instrumentation.rb:33:in `process_action'
403
+ actionpack (6.1.3.2) lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
404
+ activerecord (6.1.3.2) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
405
+ actionpack (6.1.3.2) lib/abstract_controller/base.rb:165:in `process'
406
+ actionview (6.1.3.2) lib/action_view/rendering.rb:39:in `process'
407
+ actionpack (6.1.3.2) lib/action_controller/metal.rb:190:in `dispatch'
408
+ actionpack (6.1.3.2) lib/action_controller/metal.rb:254:in `dispatch'
409
+ actionpack (6.1.3.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
410
+ actionpack (6.1.3.2) lib/action_dispatch/routing/route_set.rb:33:in `serve'
411
+ actionpack (6.1.3.2) lib/action_dispatch/journey/router.rb:50:in `block in serve'
412
+ actionpack (6.1.3.2) lib/action_dispatch/journey/router.rb:32:in `each'
413
+ actionpack (6.1.3.2) lib/action_dispatch/journey/router.rb:32:in `serve'
414
+ actionpack (6.1.3.2) lib/action_dispatch/routing/route_set.rb:842:in `call'
415
+ railties (6.1.3.2) lib/rails/engine.rb:539:in `call'
416
+ railties (6.1.3.2) lib/rails/railtie.rb:207:in `public_send'
417
+ railties (6.1.3.2) lib/rails/railtie.rb:207:in `method_missing'
418
+ actionpack (6.1.3.2) lib/action_dispatch/routing/mapper.rb:20:in `block in <class:Constraints>'
419
+ actionpack (6.1.3.2) lib/action_dispatch/routing/mapper.rb:49:in `serve'
420
+ actionpack (6.1.3.2) lib/action_dispatch/journey/router.rb:50:in `block in serve'
421
+ actionpack (6.1.3.2) lib/action_dispatch/journey/router.rb:32:in `each'
422
+ actionpack (6.1.3.2) lib/action_dispatch/journey/router.rb:32:in `serve'
423
+ actionpack (6.1.3.2) lib/action_dispatch/routing/route_set.rb:842:in `call'
424
+ rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
425
+ rack (2.2.3) lib/rack/etag.rb:27:in `call'
426
+ rack (2.2.3) lib/rack/conditional_get.rb:27:in `call'
427
+ rack (2.2.3) lib/rack/head.rb:12:in `call'
428
+ actionpack (6.1.3.2) lib/action_dispatch/http/permissions_policy.rb:22:in `call'
429
+ actionpack (6.1.3.2) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
430
+ rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
431
+ rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
432
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/cookies.rb:689:in `call'
433
+ activerecord (6.1.3.2) lib/active_record/migration.rb:601:in `call'
434
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
435
+ activesupport (6.1.3.2) lib/active_support/callbacks.rb:98:in `run_callbacks'
436
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
437
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
438
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
439
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
440
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
441
+ railties (6.1.3.2) lib/rails/rack/logger.rb:37:in `call_app'
442
+ railties (6.1.3.2) lib/rails/rack/logger.rb:26:in `block in call'
443
+ activesupport (6.1.3.2) lib/active_support/tagged_logging.rb:99:in `block in tagged'
444
+ activesupport (6.1.3.2) lib/active_support/tagged_logging.rb:37:in `tagged'
445
+ activesupport (6.1.3.2) lib/active_support/tagged_logging.rb:99:in `tagged'
446
+ railties (6.1.3.2) lib/rails/rack/logger.rb:26:in `call'
447
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
448
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/request_id.rb:26:in `call'
449
+ rack (2.2.3) lib/rack/method_override.rb:24:in `call'
450
+ rack (2.2.3) lib/rack/runtime.rb:22:in `call'
451
+ activesupport (6.1.3.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
452
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
453
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/static.rb:24:in `call'
454
+ rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
455
+ actionpack (6.1.3.2) lib/action_dispatch/middleware/host_authorization.rb:92:in `call'
456
+ railties (6.1.3.2) lib/rails/engine.rb:539:in `call'
457
+ rack (2.2.3) lib/rack/handler/webrick.rb:95:in `service'
458
+ /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/webrick/httpserver.rb:140:in `service'
459
+ /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/webrick/httpserver.rb:96:in `run'
460
+ /usr/local/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/webrick/server.rb:307:in `block in start_thread'
461
+ Started GET "/rails/db/tables/users/new" for 192.168.0.108 at 2021-06-26 01:36:10 -0700
462
+ Processing by RailsDb::TablesController#new as JS
463
+ Parameters: {"table_id"=>"users"}
464
+  (0.1ms) SELECT COUNT(*) FROM "users"
465
+ Rendering /root/projects/rails_db/app/views/rails_db/tables/new.js.erb
466
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_new.html.erb (Duration: 21.0ms | Allocations: 17112)
467
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/new.js.erb (Duration: 22.2ms | Allocations: 18054)
468
+ Completed 200 OK in 35ms (Views: 21.5ms | ActiveRecord: 2.7ms | Allocations: 25993)
469
+
470
+
471
+ Started GET "/rails/db/tables/users/edit?pk_id=2" for 192.168.0.108 at 2021-06-26 01:36:16 -0700
472
+ Processing by RailsDb::TablesController#edit as JS
473
+ Parameters: {"pk_id"=>"2", "table_id"=>"users"}
474
+  (0.1ms) SELECT COUNT(*) FROM "users"
475
+  Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
476
+ Rendering /root/projects/rails_db/app/views/rails_db/tables/edit.js.erb
477
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 26.0ms | Allocations: 23374)
478
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 27.5ms | Allocations: 25585)
479
+ Completed 200 OK in 41ms (Views: 26.0ms | ActiveRecord: 2.6ms | Allocations: 32111)
480
+
481
+
482
+ Started PUT "/rails/db/tables/users/update?pk_id=2" for 192.168.0.108 at 2021-06-26 01:36:19 -0700
483
+ Processing by RailsDb::TablesController#update as JS
484
+ Parameters: {"utf8"=>"✓", "record"=>{"name"=>"Bob Jones", "age"=>"22", "salary"=>"", "bio"=>"This is BIO", "created_at(1i)"=>"2018", "created_at(2i)"=>"5", "created_at(3i)"=>"12", "created_at(4i)"=>"21", "created_at(5i)"=>"19", "updated_at(1i)"=>"2018", "updated_at(2i)"=>"5", "updated_at(3i)"=>"12", "updated_at(4i)"=>"21", "updated_at(5i)"=>"19", "account_id"=>"1", "dob(1i)"=>"", "dob(2i)"=>"", "dob(3i)"=>"", "active"=>"1", "type"=>"", "country"=>"111"}, "commit"=>"SAVE", "pk_id"=>"2", "table_id"=>"users"}
485
+  (0.1ms) SELECT COUNT(*) FROM "users"
486
+  Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
487
+ TRANSACTION (0.0ms) begin transaction
488
+ #<Class:0x00007fe945636128> Update (0.2ms) UPDATE "users" SET "created_at" = ?, "updated_at" = ?, "type" = ?, "country" = ? WHERE "users"."id" = ? [["created_at", "2018-05-12 21:19:00"], ["updated_at", "2018-05-12 21:19:00"], ["type", ""], ["country", "111"], ["id", 2]]
489
+ TRANSACTION (2.2ms) commit transaction
490
+ Rendering /root/projects/rails_db/app/views/rails_db/tables/update.js.erb
491
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 2.9ms | Allocations: 1814)
492
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 4.1ms | Allocations: 2501)
493
+ Completed 200 OK in 25ms (Views: 3.5ms | ActiveRecord: 3.9ms | Allocations: 9972)
494
+
495
+
496
+ Started GET "/rails/db/tables/users/edit?pk_id=3" for 192.168.0.108 at 2021-06-26 01:36:20 -0700
497
+ Processing by RailsDb::TablesController#edit as JS
498
+ Parameters: {"pk_id"=>"3", "table_id"=>"users"}
499
+  (0.1ms) SELECT COUNT(*) FROM "users"
500
+  Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
501
+ Rendering /root/projects/rails_db/app/views/rails_db/tables/edit.js.erb
502
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 34.4ms | Allocations: 22690)
503
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 35.7ms | Allocations: 24580)
504
+ Completed 200 OK in 49ms (Views: 34.0ms | ActiveRecord: 2.9ms | Allocations: 30829)
505
+
506
+
507
+ Started PUT "/rails/db/tables/users/update?pk_id=3" for 192.168.0.108 at 2021-06-26 01:36:24 -0700
508
+ Processing by RailsDb::TablesController#update as JS
509
+ Parameters: {"utf8"=>"✓", "record"=>{"name"=>"Anna Smith", "age"=>"28", "salary"=>"100.0", "bio"=>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ligula arcu, commodo et mauris ut, efficitur aliquet ex. Aliquam iaculis justo maximus, dapibus nibh a, tincidunt enim. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Pellentesque hendrerit pharetra nulla, ac euismod tellus rutrum non. Ut tortor enim, tincidunt vitae pharetra quis, tincidunt sit amet felis. Sed convallis nulla sed urna finibus aliquet. Aliquam a molestie orci. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum in finibus sem, ut sagittis enim.\nSed nulla sem, suscipit sit amet lobortis eget, gravida in lectus. In sagittis urna sit amet commodo egestas. Donec vulputate, orci ac gravida congue, orci arcu facilisis ante, sed blandit quam lacus ullamcorper eros. Duis vitae sem et eros luctus tempor et ut neque. Donec at molestie quam, vel gravida velit. Etiam eu consectetur massa, sit amet vehicula risus. Nullam elementum, neque non dignissim dignissim, arcu erat lobortis orci, quis venenatis eros nibh ac risus.", "created_at(1i)"=>"2018", "created_at(2i)"=>"5", "created_at(3i)"=>"12", "created_at(4i)"=>"21", "created_at(5i)"=>"19", "updated_at(1i)"=>"2018", "updated_at(2i)"=>"5", "updated_at(3i)"=>"12", "updated_at(4i)"=>"21", "updated_at(5i)"=>"19", "account_id"=>"1", "dob(1i)"=>"", "dob(2i)"=>"", "dob(3i)"=>"", "active"=>"1", "type"=>"", "country"=>"1111"}, "commit"=>"SAVE", "pk_id"=>"3", "table_id"=>"users"}
510
+  (0.1ms) SELECT COUNT(*) FROM "users"
511
+  Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
512
+ TRANSACTION (0.1ms) begin transaction
513
+ #<Class:0x0000000004a55b00> Update (0.2ms) UPDATE "users" SET "created_at" = ?, "updated_at" = ?, "type" = ?, "country" = ? WHERE "users"."id" = ? [["created_at", "2018-05-12 21:19:00"], ["updated_at", "2018-05-12 21:19:00"], ["type", ""], ["country", "1111"], ["id", 3]]
514
+ TRANSACTION (2.6ms) commit transaction
515
+ Rendering /root/projects/rails_db/app/views/rails_db/tables/update.js.erb
516
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 4.3ms | Allocations: 1554)
517
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/update.js.erb (Duration: 5.4ms | Allocations: 1891)
518
+ Completed 200 OK in 27ms (Views: 4.2ms | ActiveRecord: 5.1ms | Allocations: 9024)
519
+
520
+
521
+ Started GET "/rails/db/tables/users/edit?pk_id=3" for 192.168.0.108 at 2021-06-26 01:36:26 -0700
522
+ Processing by RailsDb::TablesController#edit as JS
523
+ Parameters: {"pk_id"=>"3", "table_id"=>"users"}
524
+  (0.1ms) SELECT COUNT(*) FROM "users"
525
+  Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
526
+ Rendering /root/projects/rails_db/app/views/rails_db/tables/edit.js.erb
527
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_edit.html.erb (Duration: 21.8ms | Allocations: 22667)
528
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/edit.js.erb (Duration: 22.6ms | Allocations: 24559)
529
+ Completed 200 OK in 35ms (Views: 21.1ms | ActiveRecord: 2.3ms | Allocations: 30809)
530
+
531
+
532
+ Started GET "/rails/db/tables/users/data" for 192.168.0.108 at 2021-06-26 01:36:27 -0700
533
+ Processing by RailsDb::TablesController#data as HTML
534
+ Parameters: {"table_id"=>"users"}
535
+  (0.1ms) SELECT COUNT(*) FROM "users"
536
+ Rendering layout /root/projects/rails_db/app/views/layouts/rails_db/application.html.erb
537
+ Rendering /root/projects/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application
538
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_exp_col.html.erb (Duration: 0.2ms | Allocations: 139)
539
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 7.0ms | Allocations: 7783)
540
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_condition_fields.html.erb (Duration: 5.9ms | Allocations: 7537)
541
+  Load (0.1ms) SELECT "users".* FROM "users" LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
542
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 1.9ms | Allocations: 1212)
543
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 1.4ms | Allocations: 1197)
544
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_row.html.erb (Duration: 2.3ms | Allocations: 1203)
545
+ CACHE (0.0ms) SELECT COUNT(*) FROM "users"
546
+ CACHE (0.0ms) SELECT COUNT(*) FROM "users"
547
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_sql.html.erb (Duration: 0.3ms | Allocations: 112)
548
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/_data.html.erb (Duration: 51.0ms | Allocations: 42108)
549
+ Rendered /root/projects/rails_db/app/views/rails_db/tables/data.html.erb within layouts/rails_db/application (Duration: 51.8ms | Allocations: 42444)
550
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_header.html.erb (Duration: 1.6ms | Allocations: 1835)
551
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_sidebar.html.erb (Duration: 1.1ms | Allocations: 894)
552
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_gems.html.erb (Duration: 0.3ms | Allocations: 384)
553
+ Rendered /root/projects/rails_db/app/views/rails_db/shared/_footer.html.erb (Duration: 1.4ms | Allocations: 1659)
554
+ Rendered layout /root/projects/rails_db/app/views/layouts/rails_db/application.html.erb (Duration: 63.2ms | Allocations: 60496)
555
+ Completed 200 OK in 74ms (Views: 61.1ms | ActiveRecord: 3.2ms | Allocations: 62998)
556
+
557
+