paper_trail_ui 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +77 -0
  4. data/Rakefile +32 -0
  5. data/app/assets/javascripts/paper_trail_ui/application.js +18 -0
  6. data/app/assets/javascripts/paper_trail_ui/bootstrap-datepicker.js +474 -0
  7. data/app/assets/javascripts/paper_trail_ui/bootstrap.min.js +7 -0
  8. data/app/assets/javascripts/paper_trail_ui/reports.js +4 -0
  9. data/app/assets/stylesheets/paper_trail_ui/application.css +17 -0
  10. data/app/assets/stylesheets/paper_trail_ui/bootstrap.min.css +6 -0
  11. data/app/assets/stylesheets/paper_trail_ui/datepicker.css +182 -0
  12. data/app/controllers/paper_trail_ui/application_controller.rb +4 -0
  13. data/app/controllers/paper_trail_ui/reports_controller.rb +29 -0
  14. data/app/helpers/paper_trail_ui/application_helper.rb +10 -0
  15. data/app/views/layouts/paper_trail_ui/application.html.haml +9 -0
  16. data/app/views/paper_trail_ui/reports/_object_info_row.html.haml +5 -0
  17. data/app/views/paper_trail_ui/reports/index.html.haml +64 -0
  18. data/app/views/paper_trail_ui/reports/show.html.haml +50 -0
  19. data/config/routes.rb +3 -0
  20. data/lib/paper_trail_ui.rb +4 -0
  21. data/lib/paper_trail_ui/engine.rb +10 -0
  22. data/lib/paper_trail_ui/version.rb +3 -0
  23. data/lib/tasks/paper_trail_ui_tasks.rake +4 -0
  24. data/spec/controllers/paper_trail_ui/reports_controller_spec.rb +24 -0
  25. data/spec/dummy/README.rdoc +28 -0
  26. data/spec/dummy/Rakefile +6 -0
  27. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  28. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  29. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  30. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  31. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/spec/dummy/bin/bundle +3 -0
  33. data/spec/dummy/bin/rails +4 -0
  34. data/spec/dummy/bin/rake +4 -0
  35. data/spec/dummy/bin/setup +29 -0
  36. data/spec/dummy/config.ru +4 -0
  37. data/spec/dummy/config/application.rb +26 -0
  38. data/spec/dummy/config/boot.rb +5 -0
  39. data/spec/dummy/config/database.yml +23 -0
  40. data/spec/dummy/config/environment.rb +5 -0
  41. data/spec/dummy/config/environments/development.rb +41 -0
  42. data/spec/dummy/config/environments/production.rb +79 -0
  43. data/spec/dummy/config/environments/test.rb +42 -0
  44. data/spec/dummy/config/initializers/assets.rb +11 -0
  45. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  47. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/spec/dummy/config/initializers/inflections.rb +16 -0
  49. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  50. data/spec/dummy/config/initializers/paper_trail.rb +2 -0
  51. data/spec/dummy/config/initializers/session_store.rb +3 -0
  52. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  53. data/spec/dummy/config/locales/en.yml +23 -0
  54. data/spec/dummy/config/routes.rb +4 -0
  55. data/spec/dummy/config/secrets.yml +22 -0
  56. data/spec/dummy/db/migrate/20170622142833_create_versions.rb +36 -0
  57. data/spec/dummy/db/schema.rb +30 -0
  58. data/spec/dummy/log/development.log +24 -0
  59. data/spec/dummy/log/test.log +569 -0
  60. data/spec/dummy/public/404.html +67 -0
  61. data/spec/dummy/public/422.html +67 -0
  62. data/spec/dummy/public/500.html +66 -0
  63. data/spec/dummy/public/favicon.ico +0 -0
  64. data/spec/rails_helper.rb +57 -0
  65. data/spec/spec_helper.rb +96 -0
  66. metadata +282 -0
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount PaperTrailUi::Engine => "/paper_trail_ui"
4
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: f0b2532e1870c9c99282d3ffbc95bbfebdd6e8ae3489c00ad7ab7d13a759601d512e0403a936f7d57b6f504e12dad0147e5bba5cdb3cbb6023c6c6cf79e7e1e6
15
+
16
+ test:
17
+ secret_key_base: 4cc3cff516bdea0387ca456607721074bd6b9b9b619df2cde98273714de69c9e41b6313d2854496358e1c8fefd912cbdcc6a3e276c4937165216d0eca7357214
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,36 @@
1
+ # This migration creates the `versions` table, the only schema PT requires.
2
+ # All other migrations PT provides are optional.
3
+ class CreateVersions < ActiveRecord::Migration
4
+
5
+ # The largest text column available in all supported RDBMS is
6
+ # 1024^3 - 1 bytes, roughly one gibibyte. We specify a size
7
+ # so that MySQL will use `longtext` instead of `text`. Otherwise,
8
+ # when serializing very large objects, `text` might not be big enough.
9
+ TEXT_BYTES = 1_073_741_823
10
+
11
+ def change
12
+ create_table :versions do |t|
13
+ t.string :item_type, {:null=>false}
14
+ t.integer :item_id, null: false
15
+ t.string :event, null: false
16
+ t.string :whodunnit
17
+ t.text :object, limit: TEXT_BYTES
18
+
19
+ # Known issue in MySQL: fractional second precision
20
+ # -------------------------------------------------
21
+ #
22
+ # MySQL timestamp columns do not support fractional seconds unless
23
+ # defined with "fractional seconds precision". MySQL users should manually
24
+ # add fractional seconds precision to this migration, specifically, to
25
+ # the `created_at` column.
26
+ # (https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html)
27
+ #
28
+ # MySQL users should also upgrade to rails 4.2, which is the first
29
+ # version of ActiveRecord with support for fractional seconds in MySQL.
30
+ # (https://github.com/rails/rails/pull/14359)
31
+ #
32
+ t.datetime :created_at
33
+ end
34
+ add_index :versions, %i(item_type item_id)
35
+ end
36
+ end
@@ -0,0 +1,30 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20170622142833) do
15
+
16
+ # These are extensions that must be enabled in order to support this database
17
+ enable_extension "plpgsql"
18
+
19
+ create_table "versions", force: :cascade do |t|
20
+ t.string "item_type", null: false
21
+ t.integer "item_id", null: false
22
+ t.string "event", null: false
23
+ t.string "whodunnit"
24
+ t.text "object"
25
+ t.datetime "created_at"
26
+ end
27
+
28
+ add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id", using: :btree
29
+
30
+ end
@@ -0,0 +1,24 @@
1
+ DEPRECATION WARNING: PaperTrail.config.track_associations has not been set. As of PaperTrail 5, it defaults to false. Tracking associations is an experimental feature so we recommend setting PaperTrail.config.track_associations = false in your config/initializers/paper_trail.rb . (called from __pry__ at (pry):5)
2
+ DEPRECATION WARNING: PaperTrail.config.track_associations has not been set. As of PaperTrail 5, it defaults to false. Tracking associations is an experimental feature so we recommend setting PaperTrail.config.track_associations = false in your config/initializers/paper_trail.rb . (called from __pry__ at (pry):3)
3
+  (10.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
4
+  (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
+ Migrating to CreateVersions (20170622142833)
7
+  (0.1ms) BEGIN
8
+  (5.6ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp) 
9
+  (2.2ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
10
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170622142833"]]
11
+  (1.2ms) COMMIT
12
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+  (2.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
14
+ FROM pg_constraint c
15
+ JOIN pg_class t1 ON c.conrelid = t1.oid
16
+ JOIN pg_class t2 ON c.confrelid = t2.oid
17
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
18
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
19
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
20
+ WHERE c.contype = 'f'
21
+ AND t1.relname = 'versions'
22
+ AND t3.nspname = ANY (current_schemas(false))
23
+ ORDER BY c.conname
24
+
@@ -0,0 +1,569 @@
1
+  (105.8ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
2
+  (233.2ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
3
+  (106.3ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
4
+  (231.4ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
5
+  (106.3ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
6
+  (236.1ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
7
+  (106.2ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
8
+  (231.5ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
9
+  (105.3ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
10
+  (232.4ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
11
+  (105.2ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
12
+  (230.3ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
13
+  (106.4ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
14
+  (233.6ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
15
+  (106.4ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
16
+  (233.5ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
17
+  (105.1ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
18
+  (230.7ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
19
+  (104.8ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
20
+  (240.7ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
21
+  (106.6ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
22
+  (231.6ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
23
+  (106.7ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
24
+  (233.6ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
25
+  (108.9ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
26
+  (230.0ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
27
+  (105.2ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
28
+  (232.4ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
29
+  (105.2ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
30
+  (230.4ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
31
+  (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
32
+  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
33
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
+  (105.0ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
36
+  (231.1ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
37
+ SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
38
+  (7.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
39
+  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40
+  (0.4ms) SELECT version FROM "schema_migrations"
41
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
42
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
43
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+ Migrating to CreateVersions (20170622142833)
45
+  (0.1ms) BEGIN
46
+  (6.7ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp) 
47
+  (2.4ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" ("item_type", "item_id")
48
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170622142833"]]
49
+  (1.7ms) COMMIT
50
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
51
+  (3.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
52
+ FROM pg_constraint c
53
+ JOIN pg_class t1 ON c.conrelid = t1.oid
54
+ JOIN pg_class t2 ON c.confrelid = t2.oid
55
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
56
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
57
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
58
+ WHERE c.contype = 'f'
59
+ AND t1.relname = 'versions'
60
+ AND t3.nspname = ANY (current_schemas(false))
61
+ ORDER BY c.conname
62
+
63
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
64
+  (105.1ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
65
+  (230.1ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
66
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
67
+  (9.4ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
68
+  (3.1ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
69
+  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
70
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
71
+  (0.3ms) SELECT version FROM "schema_migrations"
72
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
73
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
74
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
75
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
76
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
77
+  (0.2ms) BEGIN
78
+  (0.3ms) ROLLBACK
79
+  (0.1ms) BEGIN
80
+  (0.1ms) ROLLBACK
81
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
82
+  (106.6ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
83
+  (229.9ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
84
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
85
+  (7.8ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
86
+  (3.3ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
87
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
88
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
89
+  (0.3ms) SELECT version FROM "schema_migrations"
90
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
91
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
92
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
93
+  (105.2ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
94
+  (230.6ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
95
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
96
+  (8.7ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
97
+  (3.3ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
98
+  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
99
+  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
100
+  (0.3ms) SELECT version FROM "schema_migrations"
101
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
102
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
103
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT item_type FROM "versions"
104
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
105
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
106
+  (0.2ms) BEGIN
107
+ Processing by PaperTrailUi::ReportsController#index as HTML
108
+ Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)
109
+  (0.1ms) ROLLBACK
110
+  (0.1ms) BEGIN
111
+  (0.1ms) ROLLBACK
112
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
113
+  (108.6ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
114
+  (231.1ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
115
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
116
+  (8.5ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
117
+  (3.2ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
118
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
119
+  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
120
+  (0.4ms) SELECT version FROM "schema_migrations"
121
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
122
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
123
+ PaperTrail::Version Load (0.5ms) SELECT DISTINCT item_type FROM "versions"
124
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
125
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT whodunnit FROM "versions"
126
+  (0.1ms) BEGIN
127
+ Processing by PaperTrailUi::ReportsController#index as HTML
128
+ Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)
129
+  (0.1ms) ROLLBACK
130
+  (0.1ms) BEGIN
131
+ Processing by PaperTrailUi::ReportsController#show as HTML
132
+ PaperTrail::Version Load (0.2ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", nil]]
133
+ Completed 404 Not Found in 8ms (ActiveRecord: 1.2ms)
134
+  (0.1ms) ROLLBACK
135
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
136
+  (107.0ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
137
+  (232.8ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
138
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
139
+  (7.9ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
140
+  (6.0ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
141
+  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
142
+  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
143
+  (0.4ms) SELECT version FROM "schema_migrations"
144
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
145
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
146
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
147
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
148
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
149
+  (0.2ms) BEGIN
150
+ Processing by PaperTrailUi::ReportsController#index as HTML
151
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT "versions".* FROM "versions"
152
+ Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.7ms)
153
+  (0.2ms) ROLLBACK
154
+  (0.1ms) BEGIN
155
+ Processing by PaperTrailUi::ReportsController#show as HTML
156
+ PaperTrail::Version Load (0.2ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", nil]]
157
+ Completed 404 Not Found in 7ms (ActiveRecord: 2.1ms)
158
+  (0.1ms) ROLLBACK
159
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
160
+  (105.3ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
161
+  (234.9ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
162
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
163
+  (8.3ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
164
+  (3.2ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
165
+  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
166
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
167
+  (0.3ms) SELECT version FROM "schema_migrations"
168
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
169
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
170
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
171
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
172
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT whodunnit FROM "versions"
173
+  (0.2ms) BEGIN
174
+ Processing by PaperTrailUi::ReportsController#index as HTML
175
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT "versions".* FROM "versions"
176
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.7ms)
177
+  (0.1ms) ROLLBACK
178
+  (0.1ms) BEGIN
179
+ Processing by PaperTrailUi::ReportsController#show as HTML
180
+ PaperTrail::Version Load (0.1ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", nil]]
181
+ Completed 404 Not Found in 7ms (ActiveRecord: 1.8ms)
182
+  (0.1ms) ROLLBACK
183
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
184
+  (106.5ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
185
+  (232.9ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
186
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
187
+  (11.0ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
188
+  (5.8ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
189
+  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
190
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
191
+  (0.4ms) SELECT version FROM "schema_migrations"
192
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
193
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
194
+ PaperTrail::Version Load (0.5ms) SELECT DISTINCT item_type FROM "versions"
195
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT event FROM "versions"
196
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT whodunnit FROM "versions"
197
+  (0.2ms) BEGIN
198
+  (0.2ms) ROLLBACK
199
+  (0.1ms) BEGIN
200
+  (0.1ms) ROLLBACK
201
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
202
+  (106.4ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
203
+  (231.3ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
204
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
205
+  (8.3ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
206
+  (3.3ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
207
+  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
208
+  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
209
+  (0.4ms) SELECT version FROM "schema_migrations"
210
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
211
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
212
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
213
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
214
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT whodunnit FROM "versions"
215
+  (0.2ms) BEGIN
216
+  (0.2ms) ROLLBACK
217
+  (0.1ms) BEGIN
218
+ Processing by PaperTrailUi::ReportsController#show as HTML
219
+ PaperTrail::Version Load (0.2ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", nil]]
220
+ Completed 404 Not Found in 8ms (ActiveRecord: 2.0ms)
221
+  (0.2ms) ROLLBACK
222
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
223
+  (106.7ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
224
+  (234.6ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
225
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
226
+  (9.3ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
227
+  (3.2ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
228
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
229
+  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
230
+  (0.3ms) SELECT version FROM "schema_migrations"
231
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
232
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
233
+ PaperTrail::Version Load (0.5ms) SELECT DISTINCT item_type FROM "versions"
234
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
235
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
236
+  (0.2ms) BEGIN
237
+ Processing by PaperTrailUi::ReportsController#index as HTML
238
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT "versions".* FROM "versions"
239
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.7ms)
240
+  (0.2ms) ROLLBACK
241
+  (0.1ms) BEGIN
242
+ Processing by PaperTrailUi::ReportsController#show as HTML
243
+ PaperTrail::Version Load (0.2ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", nil]]
244
+ Completed 404 Not Found in 7ms (ActiveRecord: 2.0ms)
245
+  (0.2ms) ROLLBACK
246
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
247
+  (105.2ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
248
+  (230.0ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
249
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
250
+  (8.0ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
251
+  (3.1ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
252
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
253
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
254
+  (0.3ms) SELECT version FROM "schema_migrations"
255
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
256
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
257
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
258
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
259
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT whodunnit FROM "versions"
260
+  (0.1ms) BEGIN
261
+ Processing by PaperTrailUi::ReportsController#index as HTML
262
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT "versions".* FROM "versions"
263
+ Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.7ms)
264
+  (0.2ms) ROLLBACK
265
+  (0.1ms) BEGIN
266
+ Processing by PaperTrailUi::ReportsController#show as HTML
267
+ PaperTrail::Version Load (0.2ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", nil]]
268
+ Completed 404 Not Found in 7ms (ActiveRecord: 2.1ms)
269
+  (0.1ms) ROLLBACK
270
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
271
+  (106.7ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
272
+  (232.2ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
273
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
274
+  (8.2ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
275
+  (3.2ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
276
+  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
277
+  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
278
+  (0.4ms) SELECT version FROM "schema_migrations"
279
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
280
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
281
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
282
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
283
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT whodunnit FROM "versions"
284
+  (0.2ms) BEGIN
285
+ Processing by PaperTrailUi::ReportsController#index as HTML
286
+ PaperTrail::Version Load (0.8ms) SELECT DISTINCT "versions".* FROM "versions"
287
+ Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.8ms)
288
+  (0.1ms) ROLLBACK
289
+  (0.1ms) BEGIN
290
+ Processing by PaperTrailUi::ReportsController#show as HTML
291
+ Parameters: {"id"=>"1"}
292
+ PaperTrail::Version Load (0.3ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", 1]]
293
+ Completed 404 Not Found in 8ms (ActiveRecord: 2.1ms)
294
+  (0.2ms) ROLLBACK
295
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
296
+  (105.0ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
297
+  (232.9ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
298
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
299
+  (8.6ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
300
+  (5.9ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
301
+  (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
302
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
303
+  (0.3ms) SELECT version FROM "schema_migrations"
304
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
305
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
306
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
307
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
308
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
309
+  (0.1ms) BEGIN
310
+ Processing by PaperTrailUi::ReportsController#index as HTML
311
+ PaperTrail::Version Load (0.8ms) SELECT DISTINCT "versions".* FROM "versions"
312
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.8ms)
313
+  (0.2ms) ROLLBACK
314
+  (0.2ms) BEGIN
315
+  (0.2ms) SAVEPOINT active_record_1
316
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
317
+  (0.2ms) ROLLBACK
318
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
319
+  (107.1ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
320
+  (230.9ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
321
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
322
+  (11.1ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
323
+  (3.2ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
324
+  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
325
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
326
+  (0.3ms) SELECT version FROM "schema_migrations"
327
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
328
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
329
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT item_type FROM "versions"
330
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
331
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
332
+  (0.2ms) BEGIN
333
+ Processing by PaperTrailUi::ReportsController#index as HTML
334
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT "versions".* FROM "versions"
335
+ Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.7ms)
336
+  (0.1ms) ROLLBACK
337
+  (0.1ms) BEGIN
338
+  (0.2ms) SAVEPOINT active_record_1
339
+ SQL (0.6ms) INSERT INTO "versions" ("event", "created_at") VALUES ($1, $2) RETURNING "id" [["event", "create"], ["created_at", "2017-06-22 15:11:03.050138"]]
340
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
341
+  (0.1ms) ROLLBACK
342
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
343
+  (106.5ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
344
+  (231.5ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
345
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
346
+  (11.4ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
347
+  (3.4ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
348
+  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
349
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
350
+  (0.3ms) SELECT version FROM "schema_migrations"
351
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
352
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
353
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
354
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
355
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT whodunnit FROM "versions"
356
+  (0.2ms) BEGIN
357
+ Processing by PaperTrailUi::ReportsController#index as HTML
358
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT "versions".* FROM "versions"
359
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.7ms)
360
+  (0.2ms) ROLLBACK
361
+  (0.1ms) BEGIN
362
+  (0.2ms) SAVEPOINT active_record_1
363
+ SQL (0.5ms) INSERT INTO "versions" ("event", "item_type", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["event", "create"], ["item_type", "Test"], ["created_at", "2017-06-22 15:11:26.395039"]]
364
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
365
+  (0.1ms) ROLLBACK
366
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
367
+  (106.9ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
368
+  (234.1ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
369
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
370
+  (11.8ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
371
+  (3.1ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
372
+  (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
373
+  (5.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
374
+  (0.4ms) SELECT version FROM "schema_migrations"
375
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
376
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
377
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
378
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
379
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
380
+  (0.2ms) BEGIN
381
+ Processing by PaperTrailUi::ReportsController#index as HTML
382
+ PaperTrail::Version Load (0.8ms) SELECT DISTINCT "versions".* FROM "versions"
383
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.8ms)
384
+  (0.2ms) ROLLBACK
385
+  (0.2ms) BEGIN
386
+  (0.1ms) SAVEPOINT active_record_1
387
+ SQL (0.4ms) INSERT INTO "versions" ("event", "item_type", "item_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["item_type", "Test"], ["item_id", 1], ["created_at", "2017-06-22 15:11:39.679956"]]
388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
389
+ Processing by PaperTrailUi::ReportsController#show as HTML
390
+ Parameters: {"id"=>"1"}
391
+ PaperTrail::Version Load (0.3ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", 1]]
392
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.3ms)
393
+  (0.2ms) ROLLBACK
394
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
395
+  (106.6ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
396
+  (241.7ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
397
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
398
+  (9.9ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
399
+  (3.4ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
400
+  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
401
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
402
+  (0.3ms) SELECT version FROM "schema_migrations"
403
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
404
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
405
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
406
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
407
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT whodunnit FROM "versions"
408
+  (0.2ms) BEGIN
409
+ Processing by PaperTrailUi::ReportsController#index as HTML
410
+ PaperTrail::Version Load (0.8ms) SELECT DISTINCT "versions".* FROM "versions"
411
+ Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.8ms)
412
+  (0.2ms) ROLLBACK
413
+  (0.2ms) BEGIN
414
+  (0.2ms) SAVEPOINT active_record_1
415
+ SQL (0.5ms) INSERT INTO "versions" ("event", "item_type", "item_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["item_type", "Test"], ["item_id", 1], ["created_at", "2017-06-22 15:21:01.570664"]]
416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
417
+ Processing by PaperTrailUi::ReportsController#show as HTML
418
+ Parameters: {"id"=>"1"}
419
+ PaperTrail::Version Load (0.3ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", 1]]
420
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.3ms)
421
+  (0.2ms) ROLLBACK
422
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
423
+  (106.5ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
424
+  (232.8ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
425
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
426
+  (7.9ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
427
+  (3.3ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
428
+  (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
429
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
430
+  (0.4ms) SELECT version FROM "schema_migrations"
431
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
432
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
433
+ PaperTrail::Version Load (0.5ms) SELECT DISTINCT item_type FROM "versions"
434
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT event FROM "versions"
435
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
436
+  (0.1ms) BEGIN
437
+ Processing by PaperTrailUi::ReportsController#index as HTML
438
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT "versions".* FROM "versions"
439
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.6ms)
440
+  (0.1ms) ROLLBACK
441
+  (0.2ms) BEGIN
442
+  (0.2ms) SAVEPOINT active_record_1
443
+ SQL (0.4ms) INSERT INTO "versions" ("event", "item_type", "item_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["item_type", "Test"], ["item_id", 1], ["created_at", "2017-06-22 15:21:29.687672"]]
444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
445
+ Processing by PaperTrailUi::ReportsController#show as HTML
446
+ Parameters: {"id"=>"1"}
447
+ PaperTrail::Version Load (1.2ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", 1]]
448
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.2ms)
449
+  (0.2ms) ROLLBACK
450
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
451
+  (106.7ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
452
+  (230.3ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
453
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
454
+  (8.4ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
455
+  (6.0ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
456
+  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
457
+  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
458
+  (0.3ms) SELECT version FROM "schema_migrations"
459
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
460
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
461
+ PaperTrail::Version Load (0.9ms) SELECT DISTINCT item_type FROM "versions"
462
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
463
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
464
+  (0.2ms) BEGIN
465
+ Processing by PaperTrailUi::ReportsController#index as HTML
466
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT "versions".* FROM "versions"
467
+ Rendered /home/nayefmuhiar/rails_projects/paper_trail_ui/app/views/paper_trail_ui/reports/index.html.erb (0.3ms)
468
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
469
+ Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.7ms)
470
+  (0.2ms) ROLLBACK
471
+  (0.1ms) BEGIN
472
+  (0.2ms) SAVEPOINT active_record_1
473
+ SQL (0.4ms) INSERT INTO "versions" ("event", "item_type", "item_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["item_type", "Test"], ["item_id", 1], ["created_at", "2017-06-22 15:23:16.272638"]]
474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
475
+ Processing by PaperTrailUi::ReportsController#show as HTML
476
+ Parameters: {"id"=>"1"}
477
+ PaperTrail::Version Load (0.3ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", 1]]
478
+ Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms)
479
+  (0.3ms) ROLLBACK
480
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
481
+  (106.6ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
482
+  (231.6ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
483
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
484
+  (8.3ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
485
+  (3.1ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
486
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
487
+  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
488
+  (0.3ms) SELECT version FROM "schema_migrations"
489
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
490
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
491
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT item_type FROM "versions"
492
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
493
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
494
+  (0.2ms) BEGIN
495
+ Processing by PaperTrailUi::ReportsController#index as HTML
496
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT "versions".* FROM "versions"
497
+ Rendered /home/nayefmuhiar/rails_projects/paper_trail_ui/app/views/paper_trail_ui/reports/index.html.haml within layouts/paper_trail_ui/application (0.3ms)
498
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
499
+ Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.7ms)
500
+  (0.2ms) ROLLBACK
501
+  (0.1ms) BEGIN
502
+  (0.1ms) SAVEPOINT active_record_1
503
+ SQL (0.3ms) INSERT INTO "versions" ("event", "item_type", "item_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["item_type", "Test"], ["item_id", 1], ["created_at", "2017-06-22 15:23:52.584906"]]
504
+  (0.2ms) RELEASE SAVEPOINT active_record_1
505
+ Processing by PaperTrailUi::ReportsController#show as HTML
506
+ Parameters: {"id"=>"1"}
507
+ PaperTrail::Version Load (0.3ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", 1]]
508
+ Rendered /home/nayefmuhiar/rails_projects/paper_trail_ui/app/views/paper_trail_ui/reports/show.html.haml within layouts/paper_trail_ui/application (0.2ms)
509
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
510
+ Completed 200 OK in 11ms (Views: 2.6ms | ActiveRecord: 0.3ms)
511
+  (0.1ms) ROLLBACK
512
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
513
+  (105.1ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
514
+  (232.5ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
515
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
516
+  (8.3ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
517
+  (6.0ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
518
+  (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
519
+  (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
520
+  (0.3ms) SELECT version FROM "schema_migrations"
521
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
522
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
523
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
524
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
525
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT whodunnit FROM "versions"
526
+  (0.1ms) BEGIN
527
+ Processing by PaperTrailUi::ReportsController#index as HTML
528
+ PaperTrail::Version Load (0.7ms) SELECT DISTINCT "versions".* FROM "versions"
529
+ Rendered /home/nayefmuhiar/rails_projects/paper_trail_ui/app/views/paper_trail_ui/reports/index.html.haml within layouts/paper_trail_ui/application (0.3ms)
530
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
531
+ Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.7ms)
532
+  (0.2ms) ROLLBACK
533
+  (0.1ms) BEGIN
534
+  (0.2ms) SAVEPOINT active_record_1
535
+ SQL (0.4ms) INSERT INTO "versions" ("event", "item_type", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["event", "create"], ["item_type", "Test"], ["created_at", "2017-06-22 15:24:29.237465"]]
536
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
537
+  (0.1ms) ROLLBACK
538
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
539
+  (105.3ms) DROP DATABASE IF EXISTS "paper_trail_ui_test"
540
+  (233.9ms) CREATE DATABASE "paper_trail_ui_test" ENCODING = 'unicode'
541
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
542
+  (8.4ms) CREATE TABLE "versions" ("id" serial primary key, "item_type" character varying NOT NULL, "item_id" integer NOT NULL, "event" character varying NOT NULL, "whodunnit" character varying, "object" text, "created_at" timestamp)
543
+  (3.2ms) CREATE INDEX "index_versions_on_item_type_and_item_id" ON "versions" USING btree ("item_type", "item_id")
544
+  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
545
+  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
546
+  (0.3ms) SELECT version FROM "schema_migrations"
547
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20170622142833')
548
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
549
+ PaperTrail::Version Load (0.6ms) SELECT DISTINCT item_type FROM "versions"
550
+ PaperTrail::Version Load (0.3ms) SELECT DISTINCT event FROM "versions"
551
+ PaperTrail::Version Load (0.2ms) SELECT DISTINCT whodunnit FROM "versions"
552
+  (0.2ms) BEGIN
553
+ Processing by PaperTrailUi::ReportsController#index as HTML
554
+ PaperTrail::Version Load (0.9ms) SELECT DISTINCT "versions".* FROM "versions"
555
+ Rendered /home/nayefmuhiar/rails_projects/paper_trail_ui/app/views/paper_trail_ui/reports/index.html.haml within layouts/paper_trail_ui/application (0.3ms)
556
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
557
+ Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.9ms)
558
+  (0.5ms) ROLLBACK
559
+  (0.1ms) BEGIN
560
+  (0.1ms) SAVEPOINT active_record_1
561
+ SQL (0.6ms) INSERT INTO "versions" ("event", "item_type", "item_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["event", "create"], ["item_type", "Test"], ["item_id", 1], ["created_at", "2017-06-22 15:24:54.129869"]]
562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
563
+ Processing by PaperTrailUi::ReportsController#show as HTML
564
+ Parameters: {"id"=>"1"}
565
+ PaperTrail::Version Load (0.2ms) SELECT "versions".* FROM "versions" WHERE "versions"."id" = $1 LIMIT 1 [["id", 1]]
566
+ Rendered /home/nayefmuhiar/rails_projects/paper_trail_ui/app/views/paper_trail_ui/reports/show.html.haml within layouts/paper_trail_ui/application (0.2ms)
567
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
568
+ Completed 200 OK in 10ms (Views: 1.9ms | ActiveRecord: 0.2ms)
569
+  (0.2ms) ROLLBACK