audited_views 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +5 -5
  2. data/app/helpers/audited_views_helper.rb +1 -1
  3. data/lib/audited_views/version.rb +1 -1
  4. data/spec/dummy/db/development.sqlite3 +0 -0
  5. data/spec/dummy/db/schema.rb +23 -23
  6. data/spec/dummy/db/test.sqlite3 +0 -0
  7. data/spec/dummy/log/development.log +110 -0
  8. data/spec/dummy/log/test.log +70 -740
  9. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{VO/VOse1hbRPubC1r_WKyZVcYG1tsb06PRsqYBTWSZ_4LQ.cache → -Y/-YymUmuvGh07mddnTJj_cgMSfx5quxjyGjRP7EkoTwQ.cache} +0 -0
  10. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{_T/_TaNU0GYb1Zzjzqn1bEXOa71HFfO3dCpQondp87sme0.cache → 0F/0F82Dfa41LKwbYBpctk03ybbzstbSP0kFKqQuIZ8c4k.cache} +0 -0
  11. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{pn/pneR-xUFEeqlsU0chMbmmftc6gAsfjtjN5OaIGlKhRI.cache → 0Y/0YYxZbmf4eBBrd4l2zVwyVJ8NWDsJNu5lQmw6pdnrP8.cache} +0 -0
  12. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Z3/Z3JitHcVFrpH_dDIHC8wcLgBbrOFH80aMYBrF8nd4tM.cache → 28/280SG7m3WfwQqx60QVG02lH7sA6Miv8_wvmILgBSOy8.cache} +0 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{G3/G3NDkLlk_SX3YG7k0awtx4zjVlakoKrntN0jsjSlAhQ.cache → 50/50kaaYySnZcG6Raj2DyAQkE9NVC7GOgEYExh-gwRUko.cache} +0 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8x/8xoBZbh_cvT9EjAppZfAwbyGkvyw33r6D4jEoXJ8E3g.cache +0 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Yu/YuPHwAJY0qdk1Fb45vssLS5M3MciX-sj_cQ9baUwa9U.cache → 9_/9_cM740XJw5nR9SOdODeRgZ4eQdzkrCQ9yOSRkSOXJo.cache} +0 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AJ/AJEKm6Si046b8FvMhfGSxStIrnFb1_mijaBgkRFOvqY.cache +1 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +0 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LW/LWvEFImqIeBZqMP8GEe0W5JhcxFKQaN6Yw4_ZjnZA_o.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ll/LlDmEDut9KSHs1huPtez5pCrEStJ0xbv90BAvRL45Ek.cache +0 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MR/MRBFJnLrCbpyUPTnvxqvXJQDeUDvjbYYVfPWmgSezKU.cache +0 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Rb/RbStQeBxEZI9BGCSMb0iROr94h-xJRSjqjiDo9IB4uo.cache +1 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/S1/S1z7i-CVlvezwnGUmDwLsIiAkXiuvb3P40x892XT_Ek.cache +3 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{S7/S7N-OOCIx75bN-VQuGH8Bs-NEQh0ssHghH7U96EBzM0.cache → Uc/Uc3Wj0ecUUV-OzjhYRhkFQcgpDv7wlcxvDh0eon4Hic.cache} +0 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{6I/6IckMLuSd1VjjIlhjnTs6QHUVroN9w04mXEBy0fU6kM.cache → Zo/ZoRCB1hJDKP7SXg8B_3fauzLx2sF-C1lYEU0Z-RGSag.cache} +0 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{qx/qxk5c2dD60rx2NJD_uhpqxuHoJLxv5XwxAZTALIICns.cache → _J/_JY2Q8WkSG3T9kGkKpz2J6Ir80JyQ-tZN9Cuml87J5I.cache} +0 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Zq/ZqwqzGmQdZwugVyeWaTsoSs1I-XBgeIBtazZxC4lYZs.cache → _t/_tt8wp32pp5L2O2X1uvsHznA2xTfTH4hlYOuNLMm97E.cache} +0 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/am/am7Do4UyDjVwvPQpzZ1T10Fv4xFg1lG-zyNHlic1lGs.cache +1 -0
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +0 -0
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cl/clNwTZeYerxRGUZRyrJDXfX5oH0sVH7V_Hkhjz3jRdY.cache +1 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{yX/yXva_dhsxO6Sjr1dHQF_cyEOGHd065bVtMaMDTBQzXU.cache → hS/hScHwzdjmcRoPHBILy-WfkEQLi5gtOBYL3AgJCGxRpk.cache} +0 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jm/jmAimAIDJ2Icw7Fv6FpfNt7NdkCVHbk1mS8IdM_UdNo.cache +1 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +0 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +0 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +0 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{RW/RWT2LDI5Hha4SP5FZXHASQrTckyYiN2XnYmK2vdeKPE.cache → rL/rL3RFcWrJkkySZ6fb9qysIUUyKU92tVZp2WQwra3QTw.cache} +0 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{R8/R8a1x_kIzFZki0ulOqRGqJfaA12mS9yybP1yhl5NY5Y.cache → so/soKEEdhfSxoebFItr1FUfHawl5ecABIKiGCYyQwG4uM.cache} +0 -0
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{MJ/MJsVvHPcinS4hoxBd_MJ0yT7ViT4Ka6UMsRGGCuEMe0.cache → t7/t7hUrb4QUYgtLztKCrZMZZlEd_gFwKgCMj_lt_sh3pc.cache} +0 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uL/uL3i40dKCdUTUNjmQlXRC2qS4ikGaVYjRb_gMUFSgfo.cache +1 -0
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uf/ufTRVvHuh0gVhWdEzeM4_SnvLslT7_C0AskKq45q10Q.cache +1 -0
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{q3/q3odLgZNiy989rT2dGN8sh88f9cbTIlXNBsMxVm-qO4.cache → xO/xORU3CObV7eAfbBcV5dj7qUZCqTZBgBwvFO-r0VBhCY.cache} +0 -0
  41. data/spec/dummy/tmp/capybara/{capybara-201705080936011266128551.html → capybara-201806202314198171543396.html} +5 -5
  42. metadata +117 -159
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-s/-sApyz8RREntIAnO7uawATjXPT2wvPX8w1wQF1XFuSs.cache +0 -1
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3N/3NLOckzY84noY3hUEOd6K6Rfz7XB_fIRpHeGca6jXFQ.cache +0 -1
  45. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3Y/3YWAsbouC_92KRyVIfCR1XZUL6aU5fDhsrDPZPwqLaw.cache +0 -0
  46. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3l/3lTfVt5mnUw_pwWB-EWfV7v3nBpF6w9PWzx_OY0d5Uo.cache +0 -0
  47. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/47/47N7l6uHSjSCd7Ru3vJ0JoBp9dFdqA8phU8uKIjIvqM.cache +0 -1
  48. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Al/AlF65aLeuD-x6AxoO6n4G93XaQ5Nx0MU1FzfD4L3cPc.cache +0 -0
  49. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BN/BNy5uhInXB0ihf1X9XEjYXOTQzS7LxrBtFhdfyIdeqA.cache +0 -1
  50. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D0/D0cNdcvMptZ90AYLZ73Y5d3iFojSVkzXX1hn78q5VSU.cache +0 -0
  51. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nl/NlsP11HhLUppMbrveWN9hUdmj5EeypXs_8VJoP7EHCQ.cache +0 -1
  52. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OJ/OJ1uiUYKQmWd42oIWTlWOfjdMwo2HqQUv4bwvFozlgo.cache +0 -1
  53. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OU/OUrRymFy2GqVPmy2wEwtOU35eAGKpRc9Yd2s6FLH9IA.cache +0 -1
  54. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OX/OXWdn9vE2KzoWk1Tgi3J7onOHM0xGEFYOD1Hg0h_bS0.cache +0 -0
  55. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PH/PHbdEchD5mfuw2iJHZ14bwbA5umhLrM_H7vcEPsnFBU.cache +0 -1
  56. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pk/PkhAoD3YaK1D-UYeKoFVVgr69lnTZMSQqUfczLbJ5NE.cache +0 -1
  57. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SV/SVlVMncJi5iECzorG_xSmMvxIdCpAUPWeqLkXBRXKpM.cache +0 -0
  58. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VR/VReNvp0QHy6LIJW8nYxURZoy5zbXKlkoMwR1TKWY-VQ.cache +0 -1
  59. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bw/bwdvZFbg53AKcjymQ40V9gm6Lk-G_xPEv3mFu5uRSnU.cache +0 -3
  60. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cj/cjNlSRlQtUDAwuCwO0GS59TcwcUey_SxumTMRMHp-Pc.cache +0 -0
  61. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gQ/gQL5o0PwSkV6nDNQotitNefQRbps23gfbhd0spq4GYI.cache +0 -1
  62. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lk/lkovZoGWsi9s_5nn1YPmKKPQO5Ip6AeKCDi1Fj94i4o.cache +0 -3
  63. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m4/m4b6OtLpnRvCY8QxV_G2w9l7YiS6Nb-1ZMXncJLuCxU.cache +0 -1
  64. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pd/pdcYU2LAlzymtrkzi7c5N-62_9DiwuvZTHdXvi3LOH4.cache +0 -1
  65. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qQ/qQf8fS1PozjLFywxp2mh64LVU9thBA6Mb1eJDrXOwUo.cache +0 -0
  66. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ru/ru-jaKyvWi9mo2jrTCMYECWtSm8wxxLH-UKNKEu2Uyk.cache +0 -1
  67. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sE/sE5I8LMVqjxu0PHdY_io7wdnYvUQnL-YQaUIk8sw-M4.cache +0 -0
  68. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uU/uU7MDObelvIGwP_PhyWZ3qWYsbvuSdNJGFXkYIqtCEs.cache +0 -1
  69. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vV/vVAUGE3VA_1WPwDbZuHjuALjKVuSK8gJL3QGkUCz6us.cache +0 -1
  70. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wK/wKsc6LmmkCDdNh8zD8yfu_lyJjL3pK8f1BpTAXc-vH4.cache +0 -1
  71. data/spec/dummy/tmp/capybara/capybara-201705080935504744542394.html +0 -139
  72. data/spec/dummy/tmp/capybara/capybara-201705080935583045830839.html +0 -139
  73. data/spec/dummy/tmp/capybara/capybara-2017052417022284173193.html +0 -139
  74. data/spec/dummy/tmp/capybara/capybara-201705241703119446562013.html +0 -139
  75. data/spec/dummy/tmp/capybara/capybara-20170524170318735562344.html +0 -139
  76. data/spec/dummy/tmp/capybara/capybara-20170524170322884470518.html +0 -139
  77. data/spec/dummy/tmp/capybara/capybara-201705241704194913728982.html +0 -139
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 714402b63644225becb5fcb054fa9423ee906e51
4
- data.tar.gz: cbdb67ffc6bd33c8e758ef8d990502bc13e14a69
2
+ SHA256:
3
+ metadata.gz: 79b8c85647989e55ae1358a178543c8270a64cd9bf6a9a009d8d24ba0dc47a6b
4
+ data.tar.gz: 74ce05cd1632bafefca5f48268b8b8c283d8e2f72b0444d9d9a4cd440e031aa0
5
5
  SHA512:
6
- metadata.gz: 97572ca6c4c3972369b95044a2e2dff9a43a84897fe43bcddaffe2ff53f1c253a727e0dc9d210f8226884da7b8b7520499cd5be98d6ee71e269a930076504184
7
- data.tar.gz: fb0c44430d9eb407c04b3385298c3904dc26e928174ee795139c21774433092913506ad417c93e63933e9db5e113f2086e570d98d0d9069961fc978e5031c759
6
+ metadata.gz: ad8da02ee31b6a46da45100497a3f1e1219736bb4d9d96b7b68ca5cdef967240d1536052356d03839ff47df39ef367359c2dd7e9d69576b8d9cb307da906870d
7
+ data.tar.gz: fd58b7808a50f309531be8eff1b672bbbb193feeead561da7d9c1f6fc022227a111147d7af93e1980accafc55a9c69067788700a473f1ba6e81ca1f1adaf54b0
@@ -70,7 +70,7 @@ module AuditedViewsHelper
70
70
  def format_audited_value(value)
71
71
  case value
72
72
  when true, false
73
- t("audited.#{value}_word")
73
+ t("audits.#{value}_word")
74
74
  when Date
75
75
  ldate value
76
76
  when NilClass
@@ -1,3 +1,3 @@
1
1
  module AuditedViews
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -10,22 +10,22 @@
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: 20170507191539) do
13
+ ActiveRecord::Schema.define(version: 2017_05_07_191539) do
14
14
 
15
15
  create_table "audits", force: :cascade do |t|
16
- t.integer "auditable_id"
17
- t.string "auditable_type"
18
- t.integer "associated_id"
19
- t.string "associated_type"
20
- t.integer "user_id"
21
- t.string "user_type"
22
- t.string "username"
23
- t.string "action"
24
- t.text "audited_changes"
25
- t.integer "version", default: 0
26
- t.string "comment"
27
- t.string "remote_address"
28
- t.string "request_uuid"
16
+ t.integer "auditable_id"
17
+ t.string "auditable_type"
18
+ t.integer "associated_id"
19
+ t.string "associated_type"
20
+ t.integer "user_id"
21
+ t.string "user_type"
22
+ t.string "username"
23
+ t.string "action"
24
+ t.text "audited_changes"
25
+ t.integer "version", default: 0
26
+ t.string "comment"
27
+ t.string "remote_address"
28
+ t.string "request_uuid"
29
29
  t.datetime "created_at"
30
30
  t.index ["associated_id", "associated_type"], name: "associated_index"
31
31
  t.index ["auditable_id", "auditable_type"], name: "auditable_index"
@@ -35,18 +35,18 @@ ActiveRecord::Schema.define(version: 20170507191539) do
35
35
  end
36
36
 
37
37
  create_table "products", force: :cascade do |t|
38
- t.string "sku"
39
- t.string "title"
40
- t.decimal "price"
41
- t.boolean "active"
42
- t.text "description"
43
- t.datetime "created_at", null: false
44
- t.datetime "updated_at", null: false
38
+ t.string "sku"
39
+ t.string "title"
40
+ t.decimal "price"
41
+ t.boolean "active"
42
+ t.text "description"
43
+ t.datetime "created_at", null: false
44
+ t.datetime "updated_at", null: false
45
45
  end
46
46
 
47
47
  create_table "users", force: :cascade do |t|
48
- t.string "name"
49
- t.string "email"
48
+ t.string "name"
49
+ t.string "email"
50
50
  t.datetime "created_at", null: false
51
51
  t.datetime "updated_at", null: false
52
52
  end
Binary file
@@ -0,0 +1,110 @@
1
+ DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
2
+ set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
3
+ boolean values and must have old data converted to 1 and 0 (its native boolean
4
+ serialization) before setting this flag to true. Conversion can be accomplished
5
+ by setting up a rake task which runs
6
+
7
+ ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
8
+ ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
9
+
10
+ for all models and all boolean columns, after which the flag must be set to
11
+ true by adding the following to your application.rb file:
12
+
13
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
14
+ (called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
15
+ DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
16
+ set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
17
+ boolean values and must have old data converted to 1 and 0 (its native boolean
18
+ serialization) before setting this flag to true. Conversion can be accomplished
19
+ by setting up a rake task which runs
20
+
21
+ ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
22
+ ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
23
+
24
+ for all models and all boolean columns, after which the flag must be set to
25
+ true by adding the following to your application.rb file:
26
+
27
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
28
+ (called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
29
+  (0.1ms) SELECT sqlite_version(*)
30
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
31
+  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
32
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
33
+ Migrating to CreateProducts (20170507023018)
34
+  (0.1ms) begin transaction
35
+  (0.5ms) CREATE TABLE "products" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
36
+ ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170507023018"]]
37
+  (1.3ms) commit transaction
38
+ Migrating to CreateUsers (20170507023113)
39
+  (0.1ms) begin transaction
40
+  (0.5ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
41
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170507023113"]]
42
+  (1.2ms) commit transaction
43
+ Migrating to InstallAudited (20170507191539)
44
+  (0.1ms) begin transaction
45
+  (0.2ms) DROP TABLE IF EXISTS "audits"
46
+  (0.4ms) CREATE TABLE "audits" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)
47
+  (0.1ms) CREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")
48
+  (0.1ms) CREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")
49
+  (0.1ms) CREATE INDEX "user_index" ON "audits" ("user_id", "user_type")
50
+  (0.2ms) CREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")
51
+  (0.2ms) CREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")
52
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170507191539"]]
53
+  (3.3ms) commit transaction
54
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
55
+  (0.1ms) begin transaction
56
+ ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-06-21 02:11:57.885505"], ["updated_at", "2018-06-21 02:11:57.885505"]]
57
+  (1.1ms) commit transaction
58
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
59
+ DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
60
+ set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
61
+ boolean values and must have old data converted to 1 and 0 (its native boolean
62
+ serialization) before setting this flag to true. Conversion can be accomplished
63
+ by setting up a rake task which runs
64
+
65
+ ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
66
+ ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
67
+
68
+ for all models and all boolean columns, after which the flag must be set to
69
+ true by adding the following to your application.rb file:
70
+
71
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
72
+ (called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
73
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
74
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
75
+  (0.1ms) begin transaction
76
+  (0.0ms) commit transaction
77
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
78
+ DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
79
+ set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
80
+ boolean values and must have old data converted to 1 and 0 (its native boolean
81
+ serialization) before setting this flag to true. Conversion can be accomplished
82
+ by setting up a rake task which runs
83
+
84
+ ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
85
+ ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
86
+
87
+ for all models and all boolean columns, after which the flag must be set to
88
+ true by adding the following to your application.rb file:
89
+
90
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
91
+ (called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
92
+ DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
93
+ set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
94
+ boolean values and must have old data converted to 1 and 0 (its native boolean
95
+ serialization) before setting this flag to true. Conversion can be accomplished
96
+ by setting up a rake task which runs
97
+
98
+ ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
99
+ ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
100
+
101
+ for all models and all boolean columns, after which the flag must be set to
102
+ true by adding the following to your application.rb file:
103
+
104
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
105
+ (called from <top (required)> at /Users/douglas.lise/code/douglas/lab/audited_views/spec/dummy/config/environment.rb:5)
106
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
107
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
108
+  (0.1ms) begin transaction
109
+  (0.1ms) commit transaction
110
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
@@ -1,771 +1,101 @@
1
-  (0.2ms) begin transaction
1
+  (3.4ms) begin transaction
2
+  (0.1ms) rollback transaction
3
+  (1.0ms) begin transaction
2
4
   (0.1ms) rollback transaction
3
-  (0.0ms) begin transaction
4
-  (0.0ms) rollback transaction
5
-  (23.1ms) CREATE TABLE "audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)
6
-  (0.1ms) select sqlite_version(*)
7
-  (8.1ms) CREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")
8
-  (0.1ms)  SELECT sql
9
- FROM sqlite_master
10
- WHERE name='associated_index' AND type='index'
11
- UNION ALL
12
- SELECT sql
13
- FROM sqlite_temp_master
14
- WHERE name='associated_index' AND type='index'
15
- 
16
-  (10.6ms) CREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")
17
-  (0.1ms)  SELECT sql
18
- FROM sqlite_master
19
- WHERE name='auditable_index' AND type='index'
20
- UNION ALL
21
- SELECT sql
22
- FROM sqlite_temp_master
23
- WHERE name='auditable_index' AND type='index'
24
- 
25
-  (0.1ms)  SELECT sql
26
- FROM sqlite_master
27
- WHERE name='associated_index' AND type='index'
28
- UNION ALL
29
- SELECT sql
30
- FROM sqlite_temp_master
31
- WHERE name='associated_index' AND type='index'
32
- 
33
-  (10.7ms) CREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")
34
-  (0.1ms)  SELECT sql
35
- FROM sqlite_master
36
- WHERE name='index_audits_on_created_at' AND type='index'
37
- UNION ALL
38
- SELECT sql
39
- FROM sqlite_temp_master
40
- WHERE name='index_audits_on_created_at' AND type='index'
41
- 
42
-  (0.1ms)  SELECT sql
43
- FROM sqlite_master
44
- WHERE name='auditable_index' AND type='index'
45
- UNION ALL
46
- SELECT sql
47
- FROM sqlite_temp_master
48
- WHERE name='auditable_index' AND type='index'
49
- 
50
-  (0.1ms)  SELECT sql
51
- FROM sqlite_master
52
- WHERE name='associated_index' AND type='index'
53
- UNION ALL
54
- SELECT sql
55
- FROM sqlite_temp_master
56
- WHERE name='associated_index' AND type='index'
57
- 
58
-  (10.3ms) CREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")
59
-  (0.1ms)  SELECT sql
60
- FROM sqlite_master
61
- WHERE name='index_audits_on_request_uuid' AND type='index'
62
- UNION ALL
63
- SELECT sql
64
- FROM sqlite_temp_master
65
- WHERE name='index_audits_on_request_uuid' AND type='index'
66
- 
67
-  (0.1ms)  SELECT sql
68
- FROM sqlite_master
69
- WHERE name='index_audits_on_created_at' AND type='index'
70
- UNION ALL
71
- SELECT sql
72
- FROM sqlite_temp_master
73
- WHERE name='index_audits_on_created_at' AND type='index'
74
- 
75
-  (0.1ms)  SELECT sql
76
- FROM sqlite_master
77
- WHERE name='auditable_index' AND type='index'
78
- UNION ALL
79
- SELECT sql
80
- FROM sqlite_temp_master
81
- WHERE name='auditable_index' AND type='index'
82
- 
83
-  (0.1ms)  SELECT sql
84
- FROM sqlite_master
85
- WHERE name='associated_index' AND type='index'
86
- UNION ALL
87
- SELECT sql
88
- FROM sqlite_temp_master
89
- WHERE name='associated_index' AND type='index'
90
- 
91
-  (11.7ms) CREATE INDEX "user_index" ON "audits" ("user_id", "user_type")
92
-  (12.3ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
93
-  (12.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
94
-  (10.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
95
-  (0.1ms) SELECT version FROM "schema_migrations"
96
-  (10.3ms) INSERT INTO "schema_migrations" (version) VALUES (20170507191539)
97
-  (10.2ms) INSERT INTO "schema_migrations" (version) VALUES
98
- (20170507023018),
99
- (20170507023113);
100
-
101
- 
102
-  (12.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
103
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
104
5
   (0.1ms) begin transaction
105
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 12:35:48 UTC], ["updated_at", 2017-05-08 12:35:48 UTC]]
106
-  (11.2ms) commit transaction
107
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
6
+  (0.1ms) rollback transaction
108
7
   (0.1ms) begin transaction
109
-  (0.0ms) commit transaction
110
-  (0.4ms) begin transaction
111
-  (0.1ms) SAVEPOINT active_record_1
112
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
113
-  (0.0ms) RELEASE SAVEPOINT active_record_1
114
-  (0.1ms) SAVEPOINT active_record_1
115
- SQL (0.6ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:375b1f8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
116
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
117
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "d9a6a17e-5235-46e2-a037-474ddd818b86"], ["created_at", 2017-05-08 12:35:50 UTC]]
118
-  (0.1ms) RELEASE SAVEPOINT active_record_1
119
- Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:50 -0300
120
- Processing by ProductsController#show as HTML
121
- Parameters: {"id"=>"1"}
122
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
123
- Rendering products/show.html.erb within layouts/application
124
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
125
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
126
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (21.6ms)
127
- Rendered products/show.html.erb within layouts/application (47.4ms)
128
- Completed 200 OK in 233ms (Views: 214.4ms | ActiveRecord: 0.5ms)
129
-  (0.2ms) rollback transaction
8
+  (0.0ms) rollback transaction
9
+  (0.2ms) begin transaction
10
+  (0.1ms) rollback transaction
130
11
   (0.1ms) begin transaction
131
-  (0.1ms) SAVEPOINT active_record_1
132
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
133
-  (0.0ms) RELEASE SAVEPOINT active_record_1
134
-  (0.1ms) SAVEPOINT active_record_1
135
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:6bbcbb8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:50 UTC], ["updated_at", 2017-05-08 12:35:50 UTC]]
136
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
137
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "b4626db5-205e-411d-b256-ff38c2608cec"], ["created_at", 2017-05-08 12:35:50 UTC]]
138
-  (0.1ms) RELEASE SAVEPOINT active_record_1
139
- Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:50 -0300
140
- Processing by ProductsController#show as HTML
141
- Parameters: {"id"=>"1"}
142
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
143
- Rendering products/show.html.erb within layouts/application
144
- Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
145
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
146
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (5.1ms)
147
- Rendered products/show.html.erb within layouts/application (7.4ms)
148
- Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.4ms)
149
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-08 09:35:50 -0300
150
- Processing by ProductsController#show as HTML
151
- Parameters: {"show_log"=>"true", "id"=>"1"}
152
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
153
- Rendering products/show.html.erb within layouts/application
154
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
155
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
156
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
157
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
158
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
159
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (10.0ms)
160
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (13.0ms)
161
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (20.0ms)
162
- Rendered products/show.html.erb within layouts/application (22.6ms)
163
- Completed 200 OK in 27ms (Views: 24.5ms | ActiveRecord: 0.7ms)
12
+  (0.1ms) rollback transaction
13
+  (0.2ms) begin transaction
164
14
   (0.2ms) rollback transaction
165
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
166
-  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
167
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
168
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
169
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
170
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
171
-  (14.5ms) CREATE TABLE "audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)
172
-  (0.1ms) select sqlite_version(*)
173
-  (9.6ms) CREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")
174
-  (0.1ms)  SELECT sql
175
- FROM sqlite_master
176
- WHERE name='associated_index' AND type='index'
177
- UNION ALL
178
- SELECT sql
179
- FROM sqlite_temp_master
180
- WHERE name='associated_index' AND type='index'
181
- 
182
-  (11.6ms) CREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")
183
-  (0.1ms)  SELECT sql
184
- FROM sqlite_master
185
- WHERE name='auditable_index' AND type='index'
186
- UNION ALL
187
- SELECT sql
188
- FROM sqlite_temp_master
189
- WHERE name='auditable_index' AND type='index'
190
- 
191
-  (0.1ms)  SELECT sql
192
- FROM sqlite_master
193
- WHERE name='associated_index' AND type='index'
194
- UNION ALL
195
- SELECT sql
196
- FROM sqlite_temp_master
197
- WHERE name='associated_index' AND type='index'
198
- 
199
-  (10.4ms) CREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")
200
-  (0.1ms)  SELECT sql
201
- FROM sqlite_master
202
- WHERE name='index_audits_on_created_at' AND type='index'
203
- UNION ALL
204
- SELECT sql
205
- FROM sqlite_temp_master
206
- WHERE name='index_audits_on_created_at' AND type='index'
207
- 
208
-  (0.1ms)  SELECT sql
209
- FROM sqlite_master
210
- WHERE name='auditable_index' AND type='index'
211
- UNION ALL
212
- SELECT sql
213
- FROM sqlite_temp_master
214
- WHERE name='auditable_index' AND type='index'
215
- 
216
-  (0.1ms)  SELECT sql
217
- FROM sqlite_master
218
- WHERE name='associated_index' AND type='index'
219
- UNION ALL
220
- SELECT sql
221
- FROM sqlite_temp_master
222
- WHERE name='associated_index' AND type='index'
223
- 
224
-  (10.3ms) CREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")
225
-  (0.1ms)  SELECT sql
226
- FROM sqlite_master
227
- WHERE name='index_audits_on_request_uuid' AND type='index'
228
- UNION ALL
229
- SELECT sql
230
- FROM sqlite_temp_master
231
- WHERE name='index_audits_on_request_uuid' AND type='index'
232
- 
233
-  (0.1ms)  SELECT sql
234
- FROM sqlite_master
235
- WHERE name='index_audits_on_created_at' AND type='index'
236
- UNION ALL
237
- SELECT sql
238
- FROM sqlite_temp_master
239
- WHERE name='index_audits_on_created_at' AND type='index'
240
- 
241
-  (0.2ms)  SELECT sql
242
- FROM sqlite_master
243
- WHERE name='auditable_index' AND type='index'
244
- UNION ALL
245
- SELECT sql
246
- FROM sqlite_temp_master
247
- WHERE name='auditable_index' AND type='index'
248
- 
249
-  (0.4ms)  SELECT sql
250
- FROM sqlite_master
251
- WHERE name='associated_index' AND type='index'
252
- UNION ALL
253
- SELECT sql
254
- FROM sqlite_temp_master
255
- WHERE name='associated_index' AND type='index'
256
- 
257
-  (9.6ms) CREATE INDEX "user_index" ON "audits" ("user_id", "user_type")
258
-  (10.5ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
259
-  (10.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
260
-  (11.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
261
-  (0.1ms) SELECT version FROM "schema_migrations"
262
-  (10.4ms) INSERT INTO "schema_migrations" (version) VALUES (20170507191539)
263
-  (8.8ms) INSERT INTO "schema_migrations" (version) VALUES
264
- (20170507023018),
265
- (20170507023113);
266
-
267
- 
268
-  (12.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
269
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
270
15
   (0.1ms) begin transaction
271
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-08 12:35:56 UTC], ["updated_at", 2017-05-08 12:35:56 UTC]]
272
-  (9.1ms) commit transaction
273
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
16
+  (0.1ms) rollback transaction
17
+  (0.1ms) SELECT sqlite_version(*)
18
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
19
+  (2.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
20
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
21
+ Migrating to CreateProducts (20170507023018)
22
+  (0.1ms) begin transaction
23
+  (0.6ms) CREATE TABLE "products" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
24
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170507023018"]]
25
+  (0.9ms) commit transaction
26
+ Migrating to CreateUsers (20170507023113)
27
+  (0.1ms) begin transaction
28
+  (0.4ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
29
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170507023113"]]
30
+  (0.8ms) commit transaction
31
+ Migrating to InstallAudited (20170507191539)
32
+  (0.1ms) begin transaction
33
+  (0.2ms) DROP TABLE IF EXISTS "audits"
34
+  (0.7ms) CREATE TABLE "audits" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)
35
+  (0.2ms) CREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")
36
+  (0.3ms) CREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")
37
+  (0.2ms) CREATE INDEX "user_index" ON "audits" ("user_id", "user_type")
38
+  (0.2ms) CREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")
39
+  (0.3ms) CREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")
40
+ ActiveRecord::SchemaMigration Create (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170507191539"]]
41
+  (1.0ms) commit transaction
42
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
43
+  (0.1ms) begin transaction
44
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-06-21 02:14:15.101229"], ["updated_at", "2018-06-21 02:14:15.101229"]]
45
+  (1.5ms) commit transaction
46
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
274
47
   (0.1ms) begin transaction
275
-  (0.0ms) commit transaction
276
-  (0.5ms) begin transaction
277
48
   (0.1ms) SAVEPOINT active_record_1
278
- SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:57 UTC], ["updated_at", 2017-05-08 12:35:57 UTC]]
279
-  (0.1ms) RELEASE SAVEPOINT active_record_1
49
+ User Create (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", "2018-06-21 02:14:19.259093"], ["updated_at", "2018-06-21 02:14:19.259093"]]
50
+  (0.3ms) RELEASE SAVEPOINT active_record_1
280
51
   (0.1ms) SAVEPOINT active_record_1
281
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:2d76750,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:57 UTC], ["updated_at", 2017-05-08 12:35:57 UTC]]
282
- Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
283
- SQL (0.3ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "41835f55-1b36-43a4-ad3e-575de5255d6f"], ["created_at", 2017-05-08 12:35:57 UTC]]
52
+ Product Create (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 450.0], ["active", "t"], ["description", "Smartphone ABC"], ["created_at", "2018-06-21 02:14:19.285076"], ["updated_at", "2018-06-21 02:14:19.285076"]]
53
+ Audited::Audit Load (0.4ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
54
+ Audited::Audit Create (1.5ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "98490529-f9fe-450f-a7ba-6b35b694409f"], ["created_at", "2018-06-21 02:14:19.345277"]]
284
55
   (0.1ms) RELEASE SAVEPOINT active_record_1
285
- Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:57 -0300
56
+ Started GET "/products/1" for 127.0.0.1 at 2018-06-20 23:14:19 -0300
286
57
  Processing by ProductsController#show as HTML
287
58
  Parameters: {"id"=>"1"}
288
- Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
59
+ Product Load (0.3ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
289
60
  Rendering products/show.html.erb within layouts/application
290
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
61
+ Audited::Audit Load (0.4ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
291
62
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
292
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (18.4ms)
293
- Rendered products/show.html.erb within layouts/application (36.1ms)
294
- Completed 200 OK in 197ms (Views: 190.6ms | ActiveRecord: 0.6ms)
295
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-08 09:35:58 -0300
63
+ Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_controls.html.erb (14.7ms)
64
+ Rendered products/show.html.erb within layouts/application (31.7ms)
65
+ Completed 200 OK in 294ms (Views: 284.4ms | ActiveRecord: 0.7ms)
66
+ Started GET "/products/1?show_log=true" for 127.0.0.1 at 2018-06-20 23:14:19 -0300
296
67
  Processing by ProductsController#show as HTML
297
68
  Parameters: {"show_log"=>"true", "id"=>"1"}
298
69
  Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
299
70
  Rendering products/show.html.erb within layouts/application
300
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
71
+ Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
301
72
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
302
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
303
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
73
+ Audited::Audit Load (0.5ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
74
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
304
75
  Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
305
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (6.3ms)
306
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (8.7ms)
307
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (13.8ms)
308
- Rendered products/show.html.erb within layouts/application (15.5ms)
309
- Completed 200 OK in 19ms (Views: 17.2ms | ActiveRecord: 0.6ms)
310
-  (0.2ms) rollback transaction
76
+ Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_audit_record.html.erb (12.9ms)
77
+ Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_audits.html.erb (28.5ms)
78
+ Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_controls.html.erb (42.5ms)
79
+ Rendered products/show.html.erb within layouts/application (43.2ms)
80
+ Completed 200 OK in 46ms (Views: 43.9ms | ActiveRecord: 1.1ms)
81
+  (1.5ms) rollback transaction
311
82
   (0.1ms) begin transaction
312
-  (0.0ms) SAVEPOINT active_record_1
313
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:35:58 UTC], ["updated_at", 2017-05-08 12:35:58 UTC]]
314
-  (0.0ms) RELEASE SAVEPOINT active_record_1
315
-  (0.1ms) SAVEPOINT active_record_1
316
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:61256c8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:35:58 UTC], ["updated_at", 2017-05-08 12:35:58 UTC]]
317
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
318
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "73f94d51-41f9-43c8-a48c-1f9fdf8a7bb5"], ["created_at", 2017-05-08 12:35:58 UTC]]
319
-  (0.1ms) RELEASE SAVEPOINT active_record_1
320
- Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:35:58 -0300
321
- Processing by ProductsController#show as HTML
322
- Parameters: {"id"=>"1"}
323
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
324
- Rendering products/show.html.erb within layouts/application
325
- Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
326
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
327
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (4.9ms)
328
- Rendered products/show.html.erb within layouts/application (7.2ms)
329
- Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.4ms)
330
-  (0.3ms) rollback transaction
331
-  (0.4ms) begin transaction
332
83
   (0.1ms) SAVEPOINT active_record_1
333
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
84
+ User Create (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", "2018-06-21 02:14:19.727105"], ["updated_at", "2018-06-21 02:14:19.727105"]]
334
85
   (0.1ms) RELEASE SAVEPOINT active_record_1
335
86
   (0.1ms) SAVEPOINT active_record_1
336
- SQL (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:382d8d8,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
87
+ Product Create (0.3ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 450.0], ["active", "t"], ["description", "Smartphone ABC"], ["created_at", "2018-06-21 02:14:19.730526"], ["updated_at", "2018-06-21 02:14:19.730526"]]
337
88
  Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
338
- SQL (0.3ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "eee48361-37f1-4160-b26e-1f375731ed9d"], ["created_at", 2017-05-08 12:36:01 UTC]]
89
+ Audited::Audit Create (0.7ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "3d830aea-6f89-4734-9921-93530d71afc7"], ["created_at", "2018-06-21 02:14:19.734682"]]
339
90
   (0.1ms) RELEASE SAVEPOINT active_record_1
340
- Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:36:01 -0300
91
+ Started GET "/products/1" for 127.0.0.1 at 2018-06-20 23:14:19 -0300
341
92
  Processing by ProductsController#show as HTML
342
93
  Parameters: {"id"=>"1"}
343
94
  Product Load (0.2ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
344
95
  Rendering products/show.html.erb within layouts/application
345
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
346
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
347
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (11.6ms)
348
- Rendered products/show.html.erb within layouts/application (26.6ms)
349
- Completed 200 OK in 211ms (Views: 203.8ms | ActiveRecord: 0.5ms)
350
-  (0.2ms) rollback transaction
351
-  (0.1ms) begin transaction
352
-  (0.0ms) SAVEPOINT active_record_1
353
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
354
-  (0.0ms) RELEASE SAVEPOINT active_record_1
355
-  (0.0ms) SAVEPOINT active_record_1
356
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", #<BigDecimal:5ec7250,'0.45E3',9(18)>], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-08 12:36:01 UTC], ["updated_at", 2017-05-08 12:36:01 UTC]]
357
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
358
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45E3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "f6da4da1-a6c6-46e8-a08b-c45a3f626f6f"], ["created_at", 2017-05-08 12:36:01 UTC]]
359
-  (0.0ms) RELEASE SAVEPOINT active_record_1
360
- Started GET "/products/1" for 127.0.0.1 at 2017-05-08 09:36:01 -0300
361
- Processing by ProductsController#show as HTML
362
- Parameters: {"id"=>"1"}
363
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
364
- Rendering products/show.html.erb within layouts/application
365
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
366
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
367
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (4.4ms)
368
- Rendered products/show.html.erb within layouts/application (6.6ms)
369
- Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.3ms)
370
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-08 09:36:01 -0300
371
- Processing by ProductsController#show as HTML
372
- Parameters: {"show_log"=>"true", "id"=>"1"}
373
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
374
- Rendering products/show.html.erb within layouts/application
375
- Audited::Audit Load (0.4ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
376
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
377
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
378
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
379
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
380
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (6.7ms)
381
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (9.5ms)
382
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (15.7ms)
383
- Rendered products/show.html.erb within layouts/application (17.2ms)
384
- Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.8ms)
385
-  (0.2ms) rollback transaction
386
-  (0.3ms) begin transaction
387
-  (0.0ms) SAVEPOINT active_record_1
388
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:02:21 UTC], ["updated_at", 2017-05-24 20:02:21 UTC]]
389
-  (0.0ms) RELEASE SAVEPOINT active_record_1
390
-  (0.1ms) SAVEPOINT active_record_1
391
- SQL (2.6ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:02:21 UTC], ["updated_at", 2017-05-24 20:02:21 UTC]]
392
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
393
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "62f49913-0e08-4a70-adab-946829009a1a"], ["created_at", 2017-05-24 20:02:21 UTC]]
394
-  (0.0ms) RELEASE SAVEPOINT active_record_1
395
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:02:21 -0300
396
- Processing by ProductsController#show as HTML
397
- Parameters: {"id"=>"1"}
398
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
399
- Rendering products/show.html.erb within layouts/application
400
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
96
+ Audited::Audit Load (0.5ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
401
97
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
402
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (13.5ms)
403
- Rendered products/show.html.erb within layouts/application (31.0ms)
404
- Completed 200 OK in 216ms (Views: 210.9ms | ActiveRecord: 0.5ms)
405
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:02:22 -0300
406
- Processing by ProductsController#show as HTML
407
- Parameters: {"show_log"=>"true", "id"=>"1"}
408
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
409
- Rendering products/show.html.erb within layouts/application
410
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
411
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
412
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
413
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
414
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
415
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (4.7ms)
416
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (6.7ms)
417
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (10.5ms)
418
- Rendered products/show.html.erb within layouts/application (12.0ms)
419
- Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.5ms)
420
-  (0.2ms) rollback transaction
421
-  (0.1ms) begin transaction
422
-  (0.1ms) SAVEPOINT active_record_1
423
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:02:22 UTC], ["updated_at", 2017-05-24 20:02:22 UTC]]
424
-  (0.0ms) RELEASE SAVEPOINT active_record_1
425
-  (0.0ms) SAVEPOINT active_record_1
426
- SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:02:22 UTC], ["updated_at", 2017-05-24 20:02:22 UTC]]
427
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
428
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "44ab377d-ec1e-416e-baeb-99c985e8f659"], ["created_at", 2017-05-24 20:02:22 UTC]]
429
-  (0.0ms) RELEASE SAVEPOINT active_record_1
430
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:02:22 -0300
431
- Processing by ProductsController#show as HTML
432
- Parameters: {"id"=>"1"}
433
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
434
- Rendering products/show.html.erb within layouts/application
435
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
436
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
437
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.4ms)
438
- Rendered products/show.html.erb within layouts/application (4.9ms)
439
- Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms)
440
-  (0.1ms) rollback transaction
441
-  (0.2ms) begin transaction
442
-  (0.0ms) SAVEPOINT active_record_1
443
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
444
-  (0.0ms) RELEASE SAVEPOINT active_record_1
445
-  (0.1ms) SAVEPOINT active_record_1
446
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
447
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
448
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "9247a947-9280-4ca2-973a-690eec9734f8"], ["created_at", 2017-05-24 20:03:11 UTC]]
449
-  (0.1ms) RELEASE SAVEPOINT active_record_1
450
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:11 -0300
451
- Processing by ProductsController#show as HTML
452
- Parameters: {"id"=>"1"}
453
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
454
- Rendering products/show.html.erb within layouts/application
455
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
456
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
457
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (6.7ms)
458
- Rendered products/show.html.erb within layouts/application (16.8ms)
459
- Completed 200 OK in 113ms (Views: 109.7ms | ActiveRecord: 0.4ms)
460
-  (0.2ms) rollback transaction
461
-  (0.0ms) begin transaction
462
-  (0.0ms) SAVEPOINT active_record_1
463
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
464
-  (0.0ms) RELEASE SAVEPOINT active_record_1
465
-  (0.0ms) SAVEPOINT active_record_1
466
- SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:11 UTC], ["updated_at", 2017-05-24 20:03:11 UTC]]
467
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
468
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "59c3fdc3-921d-438e-bd47-c7aa91f9e7ce"], ["created_at", 2017-05-24 20:03:11 UTC]]
469
-  (0.1ms) RELEASE SAVEPOINT active_record_1
470
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:11 -0300
471
- Processing by ProductsController#show as HTML
472
- Parameters: {"id"=>"1"}
473
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
474
- Rendering products/show.html.erb within layouts/application
475
- Audited::Audit Load (0.3ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
476
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
477
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (5.8ms)
478
- Rendered products/show.html.erb within layouts/application (7.9ms)
479
- Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.5ms)
480
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:03:11 -0300
481
- Processing by ProductsController#show as HTML
482
- Parameters: {"show_log"=>"true", "id"=>"1"}
483
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
484
- Rendering products/show.html.erb within layouts/application
485
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
486
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
487
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
488
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
489
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
490
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (6.2ms)
491
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (8.4ms)
492
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (12.6ms)
493
- Rendered products/show.html.erb within layouts/application (14.0ms)
494
- Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.7ms)
495
-  (0.1ms) rollback transaction
496
-  (0.3ms) begin transaction
497
-  (0.1ms) SAVEPOINT active_record_1
498
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:17 UTC], ["updated_at", 2017-05-24 20:03:17 UTC]]
499
-  (0.1ms) RELEASE SAVEPOINT active_record_1
500
-  (0.1ms) SAVEPOINT active_record_1
501
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:17 UTC], ["updated_at", 2017-05-24 20:03:17 UTC]]
502
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
503
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "247692e4-5d18-4063-a40c-73e1f7a38910"], ["created_at", 2017-05-24 20:03:17 UTC]]
504
-  (0.0ms) RELEASE SAVEPOINT active_record_1
505
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:17 -0300
506
- Processing by ProductsController#show as HTML
507
- Parameters: {"id"=>"1"}
508
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
509
- Rendering products/show.html.erb within layouts/application
510
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
511
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
512
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (7.0ms)
513
- Rendered products/show.html.erb within layouts/application (16.7ms)
514
- Completed 200 OK in 112ms (Views: 109.2ms | ActiveRecord: 0.4ms)
515
-  (0.2ms) rollback transaction
516
-  (0.0ms) begin transaction
517
-  (0.0ms) SAVEPOINT active_record_1
518
- SQL (0.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:18 UTC], ["updated_at", 2017-05-24 20:03:18 UTC]]
519
-  (0.0ms) RELEASE SAVEPOINT active_record_1
520
-  (0.0ms) SAVEPOINT active_record_1
521
- SQL (0.1ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:18 UTC], ["updated_at", 2017-05-24 20:03:18 UTC]]
522
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
523
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "5d0bbe25-b8b8-44bf-9236-518c3cc5994f"], ["created_at", 2017-05-24 20:03:18 UTC]]
524
-  (0.0ms) RELEASE SAVEPOINT active_record_1
525
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:18 -0300
526
- Processing by ProductsController#show as HTML
527
- Parameters: {"id"=>"1"}
528
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
529
- Rendering products/show.html.erb within layouts/application
530
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
531
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
532
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (4.1ms)
533
- Rendered products/show.html.erb within layouts/application (5.8ms)
534
- Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.3ms)
535
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:03:18 -0300
536
- Processing by ProductsController#show as HTML
537
- Parameters: {"show_log"=>"true", "id"=>"1"}
538
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
539
- Rendering products/show.html.erb within layouts/application
540
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
541
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
542
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
543
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
544
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
545
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (4.9ms)
546
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (7.5ms)
547
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (12.3ms)
548
- Rendered products/show.html.erb within layouts/application (14.4ms)
549
- Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.6ms)
550
-  (0.1ms) rollback transaction
551
-  (0.3ms) begin transaction
552
-  (0.0ms) SAVEPOINT active_record_1
553
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
554
-  (0.0ms) RELEASE SAVEPOINT active_record_1
555
-  (0.0ms) SAVEPOINT active_record_1
556
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
557
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
558
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "7aae40ec-d30a-4ad4-b151-a84c48b30350"], ["created_at", 2017-05-24 20:03:22 UTC]]
559
-  (0.0ms) RELEASE SAVEPOINT active_record_1
560
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:22 -0300
561
- Processing by ProductsController#show as HTML
562
- Parameters: {"id"=>"1"}
563
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
564
- Rendering products/show.html.erb within layouts/application
565
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
566
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
567
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (6.9ms)
568
- Rendered products/show.html.erb within layouts/application (16.6ms)
569
- Completed 200 OK in 166ms (Views: 162.9ms | ActiveRecord: 0.4ms)
570
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:03:22 -0300
571
- Processing by ProductsController#show as HTML
572
- Parameters: {"show_log"=>"true", "id"=>"1"}
573
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
574
- Rendering products/show.html.erb within layouts/application
575
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
576
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
577
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
578
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
579
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
580
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (4.0ms)
581
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (5.9ms)
582
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (9.6ms)
583
- Rendered products/show.html.erb within layouts/application (11.0ms)
584
- Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.5ms)
585
-  (0.1ms) rollback transaction
586
-  (0.0ms) begin transaction
587
-  (0.0ms) SAVEPOINT active_record_1
588
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
589
-  (0.0ms) RELEASE SAVEPOINT active_record_1
590
-  (0.0ms) SAVEPOINT active_record_1
591
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:03:22 UTC], ["updated_at", 2017-05-24 20:03:22 UTC]]
592
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
593
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "c95ed066-e4d5-41b7-8071-35a6f7fe68e7"], ["created_at", 2017-05-24 20:03:22 UTC]]
594
-  (0.0ms) RELEASE SAVEPOINT active_record_1
595
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:03:22 -0300
596
- Processing by ProductsController#show as HTML
597
- Parameters: {"id"=>"1"}
598
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
599
- Rendering products/show.html.erb within layouts/application
600
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
601
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
602
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.3ms)
603
- Rendered products/show.html.erb within layouts/application (4.9ms)
604
- Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms)
605
-  (0.1ms) rollback transaction
606
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
607
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
608
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
609
-  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
610
- ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
611
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", :environment]]
612
-  (30.7ms) CREATE TABLE "audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "auditable_id" integer, "auditable_type" varchar, "associated_id" integer, "associated_type" varchar, "user_id" integer, "user_type" varchar, "username" varchar, "action" varchar, "audited_changes" text, "version" integer DEFAULT 0, "comment" varchar, "remote_address" varchar, "request_uuid" varchar, "created_at" datetime)
613
-  (0.1ms) select sqlite_version(*)
614
-  (12.3ms) CREATE INDEX "associated_index" ON "audits" ("associated_id", "associated_type")
615
-  (0.1ms)  SELECT sql
616
- FROM sqlite_master
617
- WHERE name='associated_index' AND type='index'
618
- UNION ALL
619
- SELECT sql
620
- FROM sqlite_temp_master
621
- WHERE name='associated_index' AND type='index'
622
- 
623
-  (12.9ms) CREATE INDEX "auditable_index" ON "audits" ("auditable_id", "auditable_type")
624
-  (0.1ms)  SELECT sql
625
- FROM sqlite_master
626
- WHERE name='auditable_index' AND type='index'
627
- UNION ALL
628
- SELECT sql
629
- FROM sqlite_temp_master
630
- WHERE name='auditable_index' AND type='index'
631
- 
632
-  (0.1ms)  SELECT sql
633
- FROM sqlite_master
634
- WHERE name='associated_index' AND type='index'
635
- UNION ALL
636
- SELECT sql
637
- FROM sqlite_temp_master
638
- WHERE name='associated_index' AND type='index'
639
- 
640
-  (12.7ms) CREATE INDEX "index_audits_on_created_at" ON "audits" ("created_at")
641
-  (0.1ms)  SELECT sql
642
- FROM sqlite_master
643
- WHERE name='index_audits_on_created_at' AND type='index'
644
- UNION ALL
645
- SELECT sql
646
- FROM sqlite_temp_master
647
- WHERE name='index_audits_on_created_at' AND type='index'
648
- 
649
-  (0.1ms)  SELECT sql
650
- FROM sqlite_master
651
- WHERE name='auditable_index' AND type='index'
652
- UNION ALL
653
- SELECT sql
654
- FROM sqlite_temp_master
655
- WHERE name='auditable_index' AND type='index'
656
- 
657
-  (0.1ms)  SELECT sql
658
- FROM sqlite_master
659
- WHERE name='associated_index' AND type='index'
660
- UNION ALL
661
- SELECT sql
662
- FROM sqlite_temp_master
663
- WHERE name='associated_index' AND type='index'
664
- 
665
-  (15.7ms) CREATE INDEX "index_audits_on_request_uuid" ON "audits" ("request_uuid")
666
-  (0.1ms)  SELECT sql
667
- FROM sqlite_master
668
- WHERE name='index_audits_on_request_uuid' AND type='index'
669
- UNION ALL
670
- SELECT sql
671
- FROM sqlite_temp_master
672
- WHERE name='index_audits_on_request_uuid' AND type='index'
673
- 
674
-  (0.1ms)  SELECT sql
675
- FROM sqlite_master
676
- WHERE name='index_audits_on_created_at' AND type='index'
677
- UNION ALL
678
- SELECT sql
679
- FROM sqlite_temp_master
680
- WHERE name='index_audits_on_created_at' AND type='index'
681
- 
682
-  (0.1ms)  SELECT sql
683
- FROM sqlite_master
684
- WHERE name='auditable_index' AND type='index'
685
- UNION ALL
686
- SELECT sql
687
- FROM sqlite_temp_master
688
- WHERE name='auditable_index' AND type='index'
689
- 
690
-  (0.1ms)  SELECT sql
691
- FROM sqlite_master
692
- WHERE name='associated_index' AND type='index'
693
- UNION ALL
694
- SELECT sql
695
- FROM sqlite_temp_master
696
- WHERE name='associated_index' AND type='index'
697
- 
698
-  (13.6ms) CREATE INDEX "user_index" ON "audits" ("user_id", "user_type")
699
-  (12.8ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar, "title" varchar, "price" decimal, "active" boolean, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
700
-  (12.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
701
-  (14.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
702
-  (0.1ms) SELECT version FROM "schema_migrations"
703
-  (14.2ms) INSERT INTO "schema_migrations" (version) VALUES (20170507191539)
704
-  (12.9ms) INSERT INTO "schema_migrations" (version) VALUES
705
- (20170507023018),
706
- (20170507023113);
707
-
708
- 
709
-  (19.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
710
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
711
-  (0.1ms) begin transaction
712
- SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-05-24 20:04:17 UTC], ["updated_at", 2017-05-24 20:04:17 UTC]]
713
-  (12.7ms) commit transaction
714
- ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
715
-  (0.0ms) begin transaction
716
-  (0.0ms) commit transaction
717
-  (0.2ms) begin transaction
718
-  (0.0ms) SAVEPOINT active_record_1
719
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
720
-  (0.0ms) RELEASE SAVEPOINT active_record_1
721
-  (0.1ms) SAVEPOINT active_record_1
722
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
723
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
724
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "5716d7cd-b3ca-4550-9a8b-60a52e558034"], ["created_at", 2017-05-24 20:04:19 UTC]]
725
-  (0.0ms) RELEASE SAVEPOINT active_record_1
726
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:04:19 -0300
727
- Processing by ProductsController#show as HTML
728
- Parameters: {"id"=>"1"}
729
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
730
- Rendering products/show.html.erb within layouts/application
731
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
732
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
733
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (6.8ms)
734
- Rendered products/show.html.erb within layouts/application (16.9ms)
735
- Completed 200 OK in 152ms (Views: 149.6ms | ActiveRecord: 0.4ms)
736
- Started GET "/products/1?show_log=true" for 127.0.0.1 at 2017-05-24 17:04:19 -0300
737
- Processing by ProductsController#show as HTML
738
- Parameters: {"show_log"=>"true", "id"=>"1"}
739
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
740
- Rendering products/show.html.erb within layouts/application
741
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
742
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
743
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" ASC [["auditable_id", 1], ["auditable_type", "Product"]]
744
- CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
745
- Product Load (0.0ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
746
- Rendered /home/douglas/code/audited_views/app/views/application/_audit_record.html.erb (4.0ms)
747
- Rendered /home/douglas/code/audited_views/app/views/application/_audits.html.erb (5.9ms)
748
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (9.9ms)
749
- Rendered products/show.html.erb within layouts/application (11.5ms)
750
- Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.5ms)
751
-  (0.1ms) rollback transaction
752
-  (0.0ms) begin transaction
753
-  (0.0ms) SAVEPOINT active_record_1
754
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "user@domain.com"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
755
-  (0.0ms) RELEASE SAVEPOINT active_record_1
756
-  (0.1ms) SAVEPOINT active_record_1
757
- SQL (0.2ms) INSERT INTO "products" ("sku", "title", "price", "active", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["sku", "001"], ["title", "Smartphone"], ["price", 0.45e3], ["active", true], ["description", "Smartphone ABC"], ["created_at", 2017-05-24 20:04:19 UTC], ["updated_at", 2017-05-24 20:04:19 UTC]]
758
- Audited::Audit Load (0.1ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? ORDER BY "audits"."version" DESC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["LIMIT", 1]]
759
- SQL (0.2ms) INSERT INTO "audits" ("auditable_id", "auditable_type", "user_id", "user_type", "action", "audited_changes", "version", "request_uuid", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["auditable_id", 1], ["auditable_type", "Product"], ["user_id", 1], ["user_type", "User"], ["action", "create"], ["audited_changes", "---\nsku: '001'\ntitle: Smartphone\nprice: !ruby/object:BigDecimal 18:0.45e3\nactive: true\ndescription: Smartphone ABC\n"], ["version", 1], ["request_uuid", "d479c820-e51e-42a6-ad03-93634030a648"], ["created_at", 2017-05-24 20:04:19 UTC]]
760
-  (0.2ms) RELEASE SAVEPOINT active_record_1
761
- Started GET "/products/1" for 127.0.0.1 at 2017-05-24 17:04:19 -0300
762
- Processing by ProductsController#show as HTML
763
- Parameters: {"id"=>"1"}
764
- Product Load (0.1ms) SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
765
- Rendering products/show.html.erb within layouts/application
766
- Audited::Audit Load (0.2ms) SELECT "audits".* FROM "audits" WHERE "audits"."auditable_id" = ? AND "audits"."auditable_type" = ? AND "audits"."action" = ? ORDER BY "audits"."version" ASC LIMIT ? [["auditable_id", 1], ["auditable_type", "Product"], ["action", "create"], ["LIMIT", 1]]
767
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
768
- Rendered /home/douglas/code/audited_views/app/views/application/_controls.html.erb (3.4ms)
769
- Rendered products/show.html.erb within layouts/application (4.9ms)
770
- Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.3ms)
771
-  (0.1ms) rollback transaction
98
+ Rendered /Users/douglas.lise/code/douglas/lab/audited_views/app/views/application/_controls.html.erb (7.3ms)
99
+ Rendered products/show.html.erb within layouts/application (12.3ms)
100
+ Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 0.8ms)
101
+  (1.4ms) rollback transaction