witch_doctor 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -2
  3. data/Rakefile +1 -0
  4. data/app/controllers/witch_doctor/virus_scans_controller.rb +13 -2
  5. data/app/models/virus_scan.rb +0 -3
  6. data/app/permiterters/virus_scan_permitter.rb +7 -0
  7. data/lib/witch_doctor/antivirus +0 -0
  8. data/lib/witch_doctor/antivirus_concern.rb +3 -1
  9. data/lib/witch_doctor/version.rb +1 -1
  10. data/spec/controllers/virus_scans_controller_spec.rb +4 -4
  11. data/spec/dummy/README.rdoc +15 -248
  12. data/spec/dummy/Rakefile +1 -2
  13. data/spec/dummy/app/assets/javascripts/application.js +3 -5
  14. data/spec/dummy/app/assets/stylesheets/application.css +5 -3
  15. data/spec/dummy/app/controllers/application_controller.rb +3 -1
  16. data/spec/dummy/app/views/layouts/application.html.erb +2 -2
  17. data/spec/dummy/bin/bundle +3 -0
  18. data/spec/dummy/bin/rails +4 -0
  19. data/spec/dummy/bin/rake +4 -0
  20. data/spec/dummy/config/application.rb +7 -37
  21. data/spec/dummy/config/boot.rb +4 -9
  22. data/spec/dummy/config/database.yml +8 -8
  23. data/spec/dummy/config/environment.rb +3 -3
  24. data/spec/dummy/config/environments/development.rb +18 -18
  25. data/spec/dummy/config/environments/production.rb +40 -29
  26. data/spec/dummy/config/environments/test.rb +16 -14
  27. data/spec/dummy/config/initializers/assets.rb +8 -0
  28. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  29. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  30. data/spec/dummy/config/initializers/inflections.rb +6 -5
  31. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  32. data/spec/dummy/config/initializers/session_store.rb +1 -6
  33. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  34. data/spec/dummy/config/locales/en.yml +20 -2
  35. data/spec/dummy/config/routes.rb +1 -0
  36. data/spec/dummy/config/secrets.yml +22 -0
  37. data/spec/dummy/config.ru +1 -1
  38. data/spec/dummy/db/development.sqlite3 +0 -0
  39. data/spec/dummy/db/schema.rb +8 -8
  40. data/spec/dummy/db/test.sqlite3 +0 -0
  41. data/spec/dummy/log/development.log +277 -0
  42. data/spec/dummy/log/test.log +1438 -0
  43. data/spec/dummy/public/404.html +54 -13
  44. data/spec/dummy/public/422.html +54 -13
  45. data/spec/dummy/public/500.html +53 -12
  46. data/spec/models/virus_scan_spec.rb +1 -1
  47. data/spec/permitters/virus_scan_permitter_spec.rb +34 -0
  48. metadata +37 -27
  49. data/spec/dummy/script/rails +0 -6
@@ -0,0 +1,1438 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+  (0.3ms) begin transaction
4
+  (0.2ms) SAVEPOINT active_record_1
5
+ SQL (4.4ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
6
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7
+  (0.0ms) SAVEPOINT active_record_1
8
+ SQL (0.6ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
9
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
11
+ Processing by WitchDoctor::VirusScansController#update as JSON
12
+ Parameters: {"token"=>"999", "id"=>"1"}
13
+ Completed 403 Forbidden in 0.6ms (Views: 0.3ms | ActiveRecord: 0.0ms)
14
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
15
+  (0.2ms) rollback transaction
16
+  (13.7ms) DELETE FROM "documents";
17
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'documents';
18
+  (17.1ms) DELETE FROM "virus_scans";
19
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
20
+  (0.1ms) begin transaction
21
+  (0.1ms) SAVEPOINT active_record_1
22
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
23
+  (0.0ms) RELEASE SAVEPOINT active_record_1
24
+  (0.0ms) SAVEPOINT active_record_1
25
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
26
+  (0.0ms) RELEASE SAVEPOINT active_record_1
27
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
28
+ Processing by WitchDoctor::VirusScansController#update as JSON
29
+ Parameters: {"id"=>"1"}
30
+ Completed 401 Unauthorized in 0.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
31
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
32
+  (0.1ms) rollback transaction
33
+  (13.1ms) DELETE FROM "documents";
34
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
35
+  (30.6ms) DELETE FROM "virus_scans";
36
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
37
+  (0.1ms) begin transaction
38
+  (0.1ms) SAVEPOINT active_record_1
39
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
40
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41
+  (0.0ms) SAVEPOINT active_record_1
42
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
43
+  (0.0ms) RELEASE SAVEPOINT active_record_1
44
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
45
+ Processing by WitchDoctor::VirusScansController#update as JSON
46
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
47
+ VirusScan Load (0.2ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
48
+  (0.0ms) SAVEPOINT active_record_1
49
+  (0.1ms) UPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:15:50.302175', "updated_at" = '2015-02-12 12:15:50.303103' WHERE "virus_scans"."id" = 1
50
+  (0.0ms) RELEASE SAVEPOINT active_record_1
51
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
52
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
53
+ Completed 200 OK in 10.9ms (Views: 4.7ms | ActiveRecord: 0.5ms)
54
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
55
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
56
+  (0.1ms) rollback transaction
57
+  (27.8ms) DELETE FROM "documents";
58
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
59
+  (30.2ms) DELETE FROM "virus_scans";
60
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
61
+  (0.1ms) begin transaction
62
+  (0.1ms) SAVEPOINT active_record_1
63
+ SQL (0.7ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
64
+  (0.1ms) RELEASE SAVEPOINT active_record_1
65
+  (0.0ms) SAVEPOINT active_record_1
66
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
67
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
69
+ Processing by WitchDoctor::VirusScansController#update as JSON
70
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Wazaaap"}, "id"=>"1"}
71
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
72
+  (0.0ms) SAVEPOINT active_record_1
73
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
74
+ Completed 400 Bad Request in 6.9ms (Views: 0.2ms | ActiveRecord: 0.1ms)
75
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
76
+  (0.1ms) rollback transaction
77
+  (21.6ms) DELETE FROM "documents";
78
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
79
+  (22.1ms) DELETE FROM "virus_scans";
80
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
81
+  (0.1ms) begin transaction
82
+  (0.1ms) SAVEPOINT active_record_1
83
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
84
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85
+  (0.1ms) SAVEPOINT active_record_1
86
+ SQL (0.4ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
87
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
89
+ Processing by WitchDoctor::VirusScansController#update as JSON
90
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean", "mount_point"=>"abc"}, "id"=>"1"}
91
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
92
+  (0.0ms) SAVEPOINT active_record_1
93
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
94
+ Completed 406 Not Acceptable in 1.2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
95
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
96
+  (0.1ms) rollback transaction
97
+  (15.5ms) DELETE FROM "documents";
98
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
99
+  (12.6ms) DELETE FROM "virus_scans";
100
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
101
+  (0.0ms) begin transaction
102
+  (0.1ms) SAVEPOINT active_record_1
103
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
105
+  (0.1ms) SAVEPOINT active_record_1
106
+ SQL (0.5ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
108
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
109
+ Processing by WitchDoctor::VirusScansController#update as HTML
110
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
111
+ Completed 406 Not Acceptable in 0.7ms (Views: 0.5ms | ActiveRecord: 0.0ms)
112
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
113
+  (0.1ms) rollback transaction
114
+  (27.9ms) DELETE FROM "documents";
115
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
116
+  (36.5ms) DELETE FROM "virus_scans";
117
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
118
+  (0.0ms) begin transaction
119
+  (0.1ms) SAVEPOINT active_record_1
120
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
122
+  (0.0ms) SAVEPOINT active_record_1
123
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
125
+  (0.0ms) SAVEPOINT active_record_1
126
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
128
+  (0.0ms) SAVEPOINT active_record_1
129
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
131
+ Processing by WitchDoctor::VirusScansController#index as JSON
132
+ Parameters: {"token"=>999}
133
+ Completed 403 Forbidden in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
134
+  (0.2ms) rollback transaction
135
+  (26.4ms) DELETE FROM "documents";
136
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
137
+  (26.1ms) DELETE FROM "virus_scans";
138
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
139
+  (0.1ms) begin transaction
140
+  (0.1ms) SAVEPOINT active_record_1
141
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
143
+  (0.1ms) SAVEPOINT active_record_1
144
+ SQL (0.4ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
145
+  (0.1ms) RELEASE SAVEPOINT active_record_1
146
+  (0.0ms) SAVEPOINT active_record_1
147
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
149
+  (0.0ms) SAVEPOINT active_record_1
150
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
152
+ Processing by WitchDoctor::VirusScansController#index as JSON
153
+ Completed 401 Unauthorized in 0.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
154
+  (0.2ms) rollback transaction
155
+  (13.6ms) DELETE FROM "documents";
156
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
157
+  (15.5ms) DELETE FROM "virus_scans";
158
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
159
+  (0.1ms) begin transaction
160
+  (0.1ms) SAVEPOINT active_record_1
161
+ SQL (0.7ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
163
+  (0.0ms) SAVEPOINT active_record_1
164
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
166
+  (0.0ms) SAVEPOINT active_record_1
167
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
169
+  (0.0ms) SAVEPOINT active_record_1
170
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
172
+  (0.0ms) SAVEPOINT active_record_1
173
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
175
+  (0.0ms) SAVEPOINT active_record_1
176
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
178
+ Processing by WitchDoctor::VirusScansController#index as JSON
179
+ Parameters: {"token"=>"1234"}
180
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2
181
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
182
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1
183
+ Completed 200 OK in 8.7ms (Views: 1.8ms | ActiveRecord: 0.2ms)
184
+  (0.1ms) rollback transaction
185
+  (13.6ms) DELETE FROM "documents";
186
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
187
+  (13.5ms) DELETE FROM "virus_scans";
188
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
189
+  (0.1ms) begin transaction
190
+  (0.1ms) SAVEPOINT active_record_1
191
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
193
+  (0.2ms) SAVEPOINT active_record_1
194
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
196
+  (0.0ms) SAVEPOINT active_record_1
197
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
199
+  (0.0ms) SAVEPOINT active_record_1
200
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
202
+  (0.0ms) SAVEPOINT active_record_1
203
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
205
+  (0.0ms) SAVEPOINT active_record_1
206
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
208
+ Processing by WitchDoctor::VirusScansController#index as HTML
209
+ Parameters: {"token"=>"1234"}
210
+ Completed 406 Not Acceptable in 0.4ms (ActiveRecord: 0.0ms)
211
+  (0.1ms) rollback transaction
212
+  (14.0ms) DELETE FROM "documents";
213
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
214
+  (13.2ms) DELETE FROM "virus_scans";
215
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
216
+  (0.1ms) begin transaction
217
+  (0.0ms) SAVEPOINT active_record_1
218
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
220
+  (0.0ms) SAVEPOINT active_record_1
221
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
223
+  (0.0ms) SAVEPOINT active_record_1
224
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
226
+  (0.0ms) SAVEPOINT active_record_1
227
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229
+  (0.0ms) SAVEPOINT active_record_1
230
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
232
+  (0.0ms) SAVEPOINT active_record_1
233
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
235
+ Processing by WitchDoctor::VirusScansController#index as HTML
236
+ Parameters: {"token"=>"1234"}
237
+ Completed 406 Not Acceptable in 0.4ms (ActiveRecord: 0.0ms)
238
+  (0.1ms) rollback transaction
239
+  (14.2ms) DELETE FROM "documents";
240
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
241
+  (13.9ms) DELETE FROM "virus_scans";
242
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
243
+  (0.1ms) begin transaction
244
+  (0.0ms) SAVEPOINT active_record_1
245
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
247
+  (0.0ms) SAVEPOINT active_record_1
248
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
250
+  (0.0ms) SAVEPOINT active_record_1
251
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253
+  (0.0ms) SAVEPOINT active_record_1
254
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
255
+  (0.1ms) RELEASE SAVEPOINT active_record_1
256
+  (0.0ms) SAVEPOINT active_record_1
257
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
259
+  (0.0ms) SAVEPOINT active_record_1
260
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:50 UTC +00:00]]
261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
262
+ Processing by WitchDoctor::VirusScansController#index as JSON
263
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2
264
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
265
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1
266
+ Completed 200 OK in 2.5ms (Views: 1.6ms | ActiveRecord: 0.2ms)
267
+  (0.1ms) rollback transaction
268
+  (15.3ms) DELETE FROM "documents";
269
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'documents';
270
+  (23.3ms) DELETE FROM "virus_scans";
271
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
272
+  (0.1ms) begin transaction
273
+  (0.0ms) rollback transaction
274
+  (27.9ms) DELETE FROM "documents";
275
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
276
+  (10.7ms) DELETE FROM "virus_scans";
277
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
278
+  (0.1ms) begin transaction
279
+  (0.0ms) rollback transaction
280
+  (13.6ms) DELETE FROM "documents";
281
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
282
+  (13.2ms) DELETE FROM "virus_scans";
283
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
284
+  (0.1ms) begin transaction
285
+  (0.1ms) rollback transaction
286
+  (13.1ms) DELETE FROM "documents";
287
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
288
+  (13.1ms) DELETE FROM "virus_scans";
289
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
290
+  (0.1ms) begin transaction
291
+  (0.1ms) rollback transaction
292
+  (24.4ms) DELETE FROM "documents";
293
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
294
+  (23.5ms) DELETE FROM "virus_scans";
295
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
296
+  (0.1ms) begin transaction
297
+  (0.1ms) rollback transaction
298
+  (26.8ms) DELETE FROM "documents";
299
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
300
+  (25.0ms) DELETE FROM "virus_scans";
301
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
302
+  (0.1ms) begin transaction
303
+  (0.1ms) SAVEPOINT active_record_1
304
+ SQL (0.7ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
305
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
307
+  (0.0ms) SAVEPOINT active_record_1
308
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
310
+  (0.0ms) SAVEPOINT active_record_1
311
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
312
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
314
+  (0.0ms) SAVEPOINT active_record_1
315
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
317
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
318
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
319
+  (0.1ms) rollback transaction
320
+  (31.0ms) DELETE FROM "documents";
321
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
322
+  (24.3ms) DELETE FROM "virus_scans";
323
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
324
+  (0.1ms) begin transaction
325
+  (0.1ms) SAVEPOINT active_record_1
326
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
327
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
329
+  (0.0ms) SAVEPOINT active_record_1
330
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
332
+  (0.0ms) SAVEPOINT active_record_1
333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
334
+  (0.1ms) rollback transaction
335
+  (16.5ms) DELETE FROM "documents";
336
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
337
+  (16.0ms) DELETE FROM "virus_scans";
338
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
339
+  (0.1ms) begin transaction
340
+  (0.1ms) SAVEPOINT active_record_1
341
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
342
+ SQL (0.4ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
344
+  (0.0ms) SAVEPOINT active_record_1
345
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
347
+  (0.0ms) SAVEPOINT active_record_1
348
+  (0.1ms) UPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:15:51.272410', "updated_at" = '2015-02-12 12:15:51.272508' WHERE "virus_scans"."id" = 2
349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
350
+  (0.1ms) rollback transaction
351
+  (15.9ms) DELETE FROM "documents";
352
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
353
+  (13.9ms) DELETE FROM "virus_scans";
354
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
355
+  (0.1ms) begin transaction
356
+  (0.1ms) SAVEPOINT active_record_1
357
+ SQL (0.5ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
358
+ SQL (0.5ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:15:51 UTC +00:00]]
359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
360
+  (0.2ms) rollback transaction
361
+  (14.1ms) DELETE FROM "documents";
362
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
363
+  (14.1ms) DELETE FROM "virus_scans";
364
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
365
+  (0.1ms) begin transaction
366
+  (0.1ms) rollback transaction
367
+  (13.9ms) DELETE FROM "documents";
368
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
369
+  (13.3ms) DELETE FROM "virus_scans";
370
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
371
+  (0.1ms) begin transaction
372
+  (0.0ms) rollback transaction
373
+  (21.1ms) DELETE FROM "documents";
374
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
375
+  (26.3ms) DELETE FROM "virus_scans";
376
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
377
+  (0.1ms) begin transaction
378
+  (0.1ms) rollback transaction
379
+  (25.0ms) DELETE FROM "documents";
380
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
381
+  (16.9ms) DELETE FROM "virus_scans";
382
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
383
+  (0.0ms) begin transaction
384
+  (0.0ms) rollback transaction
385
+  (14.2ms) DELETE FROM "documents";
386
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
387
+  (13.6ms) DELETE FROM "virus_scans";
388
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
389
+  (0.1ms) begin transaction
390
+  (0.0ms) rollback transaction
391
+  (14.8ms) DELETE FROM "documents";
392
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
393
+  (15.4ms) DELETE FROM "virus_scans";
394
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
395
+  (0.2ms) begin transaction
396
+  (0.1ms) rollback transaction
397
+  (13.2ms) DELETE FROM "documents";
398
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
399
+  (13.0ms) DELETE FROM "virus_scans";
400
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
401
+  (0.2ms) begin transaction
402
+  (0.1ms) rollback transaction
403
+  (13.1ms) DELETE FROM "documents";
404
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
405
+  (13.5ms) DELETE FROM "virus_scans";
406
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
407
+  (0.1ms) begin transaction
408
+  (0.1ms) rollback transaction
409
+  (24.4ms) DELETE FROM "documents";
410
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
411
+  (30.2ms) DELETE FROM "virus_scans";
412
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
413
+  (0.1ms) begin transaction
414
+  (0.1ms) rollback transaction
415
+  (25.1ms) DELETE FROM "documents";
416
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
417
+  (15.1ms) DELETE FROM "virus_scans";
418
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
419
+  (0.1ms) begin transaction
420
+  (0.1ms) rollback transaction
421
+  (13.9ms) DELETE FROM "documents";
422
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
423
+  (13.7ms) DELETE FROM "virus_scans";
424
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
425
+  (0.1ms) begin transaction
426
+  (0.1ms) rollback transaction
427
+  (14.1ms) DELETE FROM "documents";
428
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
429
+  (13.7ms) DELETE FROM "virus_scans";
430
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
431
+  (0.1ms) begin transaction
432
+  (0.1ms) rollback transaction
433
+  (19.3ms) DELETE FROM "documents";
434
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
435
+  (24.1ms) DELETE FROM "virus_scans";
436
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
437
+  (0.1ms) begin transaction
438
+  (0.1ms) rollback transaction
439
+  (28.7ms) DELETE FROM "documents";
440
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
441
+  (13.6ms) DELETE FROM "virus_scans";
442
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
443
+  (0.1ms) begin transaction
444
+  (0.1ms) rollback transaction
445
+  (20.5ms) DELETE FROM "documents";
446
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
447
+  (21.9ms) DELETE FROM "virus_scans";
448
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
449
+  (0.1ms) begin transaction
450
+  (0.1ms) rollback transaction
451
+  (27.9ms) DELETE FROM "documents";
452
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
453
+  (14.1ms) DELETE FROM "virus_scans";
454
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
455
+  (0.1ms) begin transaction
456
+  (0.1ms) rollback transaction
457
+  (14.0ms) DELETE FROM "documents";
458
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
459
+  (18.2ms) DELETE FROM "virus_scans";
460
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
461
+  (0.1ms) begin transaction
462
+  (0.1ms) rollback transaction
463
+  (24.6ms) DELETE FROM "documents";
464
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
465
+  (27.4ms) DELETE FROM "virus_scans";
466
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
467
+  (0.1ms) begin transaction
468
+  (0.1ms) rollback transaction
469
+  (31.7ms) DELETE FROM "documents";
470
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'documents';
471
+  (27.4ms) DELETE FROM "virus_scans";
472
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
473
+  (0.1ms) begin transaction
474
+  (0.1ms) rollback transaction
475
+  (25.6ms) DELETE FROM "documents";
476
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
477
+  (28.7ms) DELETE FROM "virus_scans";
478
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
479
+ Connecting to database specified by database.yml
480
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
481
+ Migrating to CreateDocument (20150209121125)
482
+ Migrating to CreateWitchDoctorVirusScans (20150209121818)
483
+  (0.0ms) select sqlite_version(*)
484
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
485
+ Connecting to database specified by database.yml
486
+  (0.3ms) begin transaction
487
+  (0.1ms) SAVEPOINT active_record_1
488
+ SQL (3.7ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
489
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
491
+  (0.1ms) rollback transaction
492
+  (14.1ms) DELETE FROM "documents";
493
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
494
+  (13.6ms) DELETE FROM "virus_scans";
495
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
496
+  (0.1ms) begin transaction
497
+  (0.1ms) SAVEPOINT active_record_1
498
+ SQL (0.7ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
499
+ SQL (0.4ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
501
+  (0.1ms) SAVEPOINT active_record_1
502
+ SQL (0.6ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
504
+  (0.0ms) SAVEPOINT active_record_1
505
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
506
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
508
+  (0.0ms) SAVEPOINT active_record_1
509
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
511
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
512
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
513
+  (0.1ms) rollback transaction
514
+  (13.7ms) DELETE FROM "documents";
515
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
516
+  (14.3ms) DELETE FROM "virus_scans";
517
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
518
+  (0.0ms) begin transaction
519
+  (0.0ms) SAVEPOINT active_record_1
520
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
521
+ SQL (0.4ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
522
+  (0.2ms) RELEASE SAVEPOINT active_record_1
523
+  (0.1ms) SAVEPOINT active_record_1
524
+ SQL (0.6ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
526
+  (0.1ms) SAVEPOINT active_record_1
527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
528
+  (0.1ms) rollback transaction
529
+  (13.3ms) DELETE FROM "documents";
530
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
531
+  (13.9ms) DELETE FROM "virus_scans";
532
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
533
+  (0.0ms) begin transaction
534
+  (0.0ms) SAVEPOINT active_record_1
535
+ SQL (0.4ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
536
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
538
+  (0.0ms) SAVEPOINT active_record_1
539
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:01 UTC +00:00]]
540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
541
+  (0.0ms) SAVEPOINT active_record_1
542
+  (0.1ms) UPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:18:01.398634', "updated_at" = '2015-02-12 12:18:01.398840' WHERE "virus_scans"."id" = 2
543
+  (0.0ms) RELEASE SAVEPOINT active_record_1
544
+  (0.1ms) rollback transaction
545
+  (16.0ms) DELETE FROM "documents";
546
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
547
+  (13.6ms) DELETE FROM "virus_scans";
548
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
549
+  (0.1ms) begin transaction
550
+  (0.0ms) rollback transaction
551
+  (13.9ms) DELETE FROM "documents";
552
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
553
+  (31.8ms) DELETE FROM "virus_scans";
554
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
555
+  (0.1ms) begin transaction
556
+  (0.1ms) rollback transaction
557
+  (30.2ms) DELETE FROM "documents";
558
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
559
+  (22.9ms) DELETE FROM "virus_scans";
560
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
561
+  (0.1ms) begin transaction
562
+  (0.1ms) rollback transaction
563
+  (19.0ms) DELETE FROM "documents";
564
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
565
+  (13.3ms) DELETE FROM "virus_scans";
566
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
567
+  (0.0ms) begin transaction
568
+  (0.0ms) rollback transaction
569
+  (13.4ms) DELETE FROM "documents";
570
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
571
+  (12.8ms) DELETE FROM "virus_scans";
572
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
573
+  (0.2ms) begin transaction
574
+  (0.1ms) rollback transaction
575
+  (23.9ms) DELETE FROM "documents";
576
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
577
+  (20.3ms) DELETE FROM "virus_scans";
578
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
579
+  (0.1ms) begin transaction
580
+  (0.1ms) rollback transaction
581
+  (24.3ms) DELETE FROM "documents";
582
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
583
+  (20.4ms) DELETE FROM "virus_scans";
584
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
585
+  (0.1ms) begin transaction
586
+  (0.1ms) rollback transaction
587
+  (25.1ms) DELETE FROM "documents";
588
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
589
+  (20.7ms) DELETE FROM "virus_scans";
590
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
591
+  (0.1ms) begin transaction
592
+  (0.1ms) rollback transaction
593
+  (13.5ms) DELETE FROM "documents";
594
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
595
+  (21.2ms) DELETE FROM "virus_scans";
596
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
597
+  (0.1ms) begin transaction
598
+  (0.1ms) rollback transaction
599
+  (27.4ms) DELETE FROM "documents";
600
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
601
+  (28.7ms) DELETE FROM "virus_scans";
602
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
603
+  (0.1ms) begin transaction
604
+  (0.1ms) rollback transaction
605
+  (29.2ms) DELETE FROM "documents";
606
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'documents';
607
+  (20.6ms) DELETE FROM "virus_scans";
608
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
609
+  (0.1ms) begin transaction
610
+  (0.1ms) rollback transaction
611
+  (13.2ms) DELETE FROM "documents";
612
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
613
+  (12.9ms) DELETE FROM "virus_scans";
614
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
615
+  (0.1ms) begin transaction
616
+  (0.1ms) rollback transaction
617
+  (21.9ms) DELETE FROM "documents";
618
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
619
+  (19.0ms) DELETE FROM "virus_scans";
620
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
621
+  (0.1ms) begin transaction
622
+  (0.1ms) rollback transaction
623
+  (18.5ms) DELETE FROM "documents";
624
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
625
+  (31.2ms) DELETE FROM "virus_scans";
626
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
627
+  (0.1ms) begin transaction
628
+  (0.1ms) rollback transaction
629
+  (30.4ms) DELETE FROM "documents";
630
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
631
+  (25.4ms) DELETE FROM "virus_scans";
632
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
633
+  (0.1ms) begin transaction
634
+  (0.1ms) rollback transaction
635
+  (19.8ms) DELETE FROM "documents";
636
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
637
+  (16.1ms) DELETE FROM "virus_scans";
638
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
639
+  (0.0ms) begin transaction
640
+  (0.0ms) rollback transaction
641
+  (13.6ms) DELETE FROM "documents";
642
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
643
+  (15.0ms) DELETE FROM "virus_scans";
644
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
645
+  (0.1ms) begin transaction
646
+  (0.1ms) rollback transaction
647
+  (13.7ms) DELETE FROM "documents";
648
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
649
+  (14.1ms) DELETE FROM "virus_scans";
650
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
651
+  (0.1ms) begin transaction
652
+  (0.1ms) rollback transaction
653
+  (13.7ms) DELETE FROM "documents";
654
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
655
+  (13.8ms) DELETE FROM "virus_scans";
656
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
657
+  (0.1ms) begin transaction
658
+  (0.0ms) rollback transaction
659
+  (18.1ms) DELETE FROM "documents";
660
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
661
+  (16.3ms) DELETE FROM "virus_scans";
662
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
663
+  (0.1ms) begin transaction
664
+  (0.0ms) rollback transaction
665
+  (28.3ms) DELETE FROM "documents";
666
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
667
+  (14.2ms) DELETE FROM "virus_scans";
668
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
669
+  (0.1ms) begin transaction
670
+  (0.1ms) rollback transaction
671
+  (13.5ms) DELETE FROM "documents";
672
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
673
+  (13.3ms) DELETE FROM "virus_scans";
674
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
675
+  (0.1ms) begin transaction
676
+  (0.1ms) rollback transaction
677
+  (13.4ms) DELETE FROM "documents";
678
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
679
+  (20.3ms) DELETE FROM "virus_scans";
680
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
681
+  (0.0ms) begin transaction
682
+  (0.1ms) rollback transaction
683
+  (20.9ms) DELETE FROM "documents";
684
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
685
+  (22.8ms) DELETE FROM "virus_scans";
686
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
687
+  (0.1ms) begin transaction
688
+  (0.1ms) rollback transaction
689
+  (14.3ms) DELETE FROM "documents";
690
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
691
+  (15.2ms) DELETE FROM "virus_scans";
692
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
693
+  (0.1ms) begin transaction
694
+  (0.1ms) SAVEPOINT active_record_1
695
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
697
+  (0.0ms) SAVEPOINT active_record_1
698
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
700
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
701
+ Processing by WitchDoctor::VirusScansController#update as JSON
702
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
703
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
704
+  (0.0ms) SAVEPOINT active_record_1
705
+  (0.1ms) UPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:18:02.533925', "updated_at" = '2015-02-12 12:18:02.534072' WHERE "virus_scans"."id" = 1
706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
707
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
708
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
709
+ Completed 200 OK in 4.7ms (Views: 1.2ms | ActiveRecord: 0.4ms)
710
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
711
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
712
+  (0.1ms) rollback transaction
713
+  (26.6ms) DELETE FROM "documents";
714
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
715
+  (27.5ms) DELETE FROM "virus_scans";
716
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
717
+  (0.1ms) begin transaction
718
+  (0.0ms) SAVEPOINT active_record_1
719
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
721
+  (0.0ms) SAVEPOINT active_record_1
722
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
724
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
725
+ Processing by WitchDoctor::VirusScansController#update as HTML
726
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
727
+ Completed 406 Not Acceptable in 0.3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
728
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
729
+  (0.1ms) rollback transaction
730
+  (29.8ms) DELETE FROM "documents";
731
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
732
+  (29.5ms) DELETE FROM "virus_scans";
733
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
734
+  (0.1ms) begin transaction
735
+  (0.0ms) SAVEPOINT active_record_1
736
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
738
+  (0.0ms) SAVEPOINT active_record_1
739
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
741
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
742
+ Processing by WitchDoctor::VirusScansController#update as JSON
743
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Wazaaap"}, "id"=>"1"}
744
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
745
+  (0.0ms) SAVEPOINT active_record_1
746
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
747
+ Completed 400 Bad Request in 5.5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
748
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
749
+  (0.1ms) rollback transaction
750
+  (28.2ms) DELETE FROM "documents";
751
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
752
+  (23.0ms) DELETE FROM "virus_scans";
753
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
754
+  (0.1ms) begin transaction
755
+  (0.1ms) SAVEPOINT active_record_1
756
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
758
+  (0.0ms) SAVEPOINT active_record_1
759
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
761
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
762
+ Processing by WitchDoctor::VirusScansController#update as JSON
763
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean", "mount_point"=>"abc"}, "id"=>"1"}
764
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
765
+  (0.0ms) SAVEPOINT active_record_1
766
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
767
+ Completed 406 Not Acceptable in 1.2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
768
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
769
+  (0.1ms) rollback transaction
770
+  (25.8ms) DELETE FROM "documents";
771
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
772
+  (25.9ms) DELETE FROM "virus_scans";
773
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
774
+  (0.1ms) begin transaction
775
+  (0.1ms) SAVEPOINT active_record_1
776
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
777
+  (0.1ms) RELEASE SAVEPOINT active_record_1
778
+  (0.1ms) SAVEPOINT active_record_1
779
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
781
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
782
+ Processing by WitchDoctor::VirusScansController#update as JSON
783
+ Parameters: {"token"=>"999", "id"=>"1"}
784
+ Completed 403 Forbidden in 0.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
785
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
786
+  (0.1ms) rollback transaction
787
+  (13.0ms) DELETE FROM "documents";
788
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
789
+  (13.1ms) DELETE FROM "virus_scans";
790
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
791
+  (0.1ms) begin transaction
792
+  (0.0ms) SAVEPOINT active_record_1
793
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
795
+  (0.0ms) SAVEPOINT active_record_1
796
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
798
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
799
+ Processing by WitchDoctor::VirusScansController#update as JSON
800
+ Parameters: {"id"=>"1"}
801
+ Completed 401 Unauthorized in 0.2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
802
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
803
+  (0.1ms) rollback transaction
804
+  (13.4ms) DELETE FROM "documents";
805
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
806
+  (14.9ms) DELETE FROM "virus_scans";
807
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
808
+  (0.1ms) begin transaction
809
+  (0.1ms) SAVEPOINT active_record_1
810
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
812
+  (0.1ms) SAVEPOINT active_record_1
813
+ SQL (0.5ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
815
+  (0.1ms) SAVEPOINT active_record_1
816
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
818
+  (0.0ms) SAVEPOINT active_record_1
819
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
821
+  (0.0ms) SAVEPOINT active_record_1
822
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
824
+  (0.0ms) SAVEPOINT active_record_1
825
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
827
+ Processing by WitchDoctor::VirusScansController#index as JSON
828
+ Parameters: {"token"=>"1234"}
829
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2
830
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
831
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1
832
+ Completed 200 OK in 6.6ms (Views: 1.9ms | ActiveRecord: 0.2ms)
833
+  (0.1ms) rollback transaction
834
+  (12.8ms) DELETE FROM "documents";
835
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
836
+  (13.5ms) DELETE FROM "virus_scans";
837
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
838
+  (0.0ms) begin transaction
839
+  (0.1ms) SAVEPOINT active_record_1
840
+ SQL (0.7ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
841
+  (0.2ms) RELEASE SAVEPOINT active_record_1
842
+  (0.1ms) SAVEPOINT active_record_1
843
+ SQL (0.4ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
845
+  (0.1ms) SAVEPOINT active_record_1
846
+ SQL (0.4ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
848
+  (0.1ms) SAVEPOINT active_record_1
849
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
851
+  (0.1ms) SAVEPOINT active_record_1
852
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
854
+  (0.0ms) SAVEPOINT active_record_1
855
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:02 UTC +00:00]]
856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
857
+ Processing by WitchDoctor::VirusScansController#index as HTML
858
+ Parameters: {"token"=>"1234"}
859
+ Completed 406 Not Acceptable in 0.5ms (ActiveRecord: 0.0ms)
860
+  (0.1ms) rollback transaction
861
+  (15.2ms) DELETE FROM "documents";
862
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
863
+  (20.4ms) DELETE FROM "virus_scans";
864
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
865
+  (0.1ms) begin transaction
866
+  (0.1ms) SAVEPOINT active_record_1
867
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
869
+  (0.0ms) SAVEPOINT active_record_1
870
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
872
+  (0.0ms) SAVEPOINT active_record_1
873
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
875
+  (0.0ms) SAVEPOINT active_record_1
876
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
878
+  (0.0ms) SAVEPOINT active_record_1
879
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
881
+  (0.0ms) SAVEPOINT active_record_1
882
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
884
+ Processing by WitchDoctor::VirusScansController#index as HTML
885
+ Parameters: {"token"=>"1234"}
886
+ Completed 406 Not Acceptable in 0.4ms (ActiveRecord: 0.0ms)
887
+  (0.1ms) rollback transaction
888
+  (28.6ms) DELETE FROM "documents";
889
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
890
+  (25.4ms) DELETE FROM "virus_scans";
891
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
892
+  (0.1ms) begin transaction
893
+  (0.1ms) SAVEPOINT active_record_1
894
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
896
+  (0.0ms) SAVEPOINT active_record_1
897
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
899
+  (0.1ms) SAVEPOINT active_record_1
900
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
902
+  (0.0ms) SAVEPOINT active_record_1
903
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
905
+  (0.0ms) SAVEPOINT active_record_1
906
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
908
+  (0.0ms) SAVEPOINT active_record_1
909
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
911
+ Processing by WitchDoctor::VirusScansController#index as JSON
912
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2
913
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
914
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1
915
+ Completed 200 OK in 2.5ms (Views: 1.6ms | ActiveRecord: 0.2ms)
916
+  (0.1ms) rollback transaction
917
+  (22.5ms) DELETE FROM "documents";
918
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
919
+  (20.5ms) DELETE FROM "virus_scans";
920
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
921
+  (0.1ms) begin transaction
922
+  (0.1ms) SAVEPOINT active_record_1
923
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
924
+  (0.1ms) RELEASE SAVEPOINT active_record_1
925
+  (0.1ms) SAVEPOINT active_record_1
926
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
927
+  (0.0ms) RELEASE SAVEPOINT active_record_1
928
+  (0.0ms) SAVEPOINT active_record_1
929
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
930
+  (0.0ms) RELEASE SAVEPOINT active_record_1
931
+  (0.0ms) SAVEPOINT active_record_1
932
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
934
+ Processing by WitchDoctor::VirusScansController#index as JSON
935
+ Parameters: {"token"=>999}
936
+ Completed 403 Forbidden in 0.3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
937
+  (0.1ms) rollback transaction
938
+  (12.9ms) DELETE FROM "documents";
939
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
940
+  (15.3ms) DELETE FROM "virus_scans";
941
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
942
+  (0.1ms) begin transaction
943
+  (0.0ms) SAVEPOINT active_record_1
944
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
946
+  (0.0ms) SAVEPOINT active_record_1
947
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
948
+  (0.0ms) RELEASE SAVEPOINT active_record_1
949
+  (0.0ms) SAVEPOINT active_record_1
950
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
952
+  (0.0ms) SAVEPOINT active_record_1
953
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:18:03 UTC +00:00]]
954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
955
+ Processing by WitchDoctor::VirusScansController#index as JSON
956
+ Completed 401 Unauthorized in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
957
+  (0.1ms) rollback transaction
958
+  (14.1ms) DELETE FROM "documents";
959
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
960
+  (13.8ms) DELETE FROM "virus_scans";
961
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
962
+ Connecting to database specified by database.yml
963
+  (0.3ms) begin transaction
964
+  (0.1ms) rollback transaction
965
+  (17.6ms) DELETE FROM "documents";
966
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
967
+  (29.5ms) DELETE FROM "virus_scans";
968
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
969
+  (0.0ms) begin transaction
970
+  (0.0ms) rollback transaction
971
+  (23.0ms) DELETE FROM "documents";
972
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
973
+  (27.4ms) DELETE FROM "virus_scans";
974
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
975
+  (0.0ms) begin transaction
976
+  (0.0ms) rollback transaction
977
+  (26.0ms) DELETE FROM "documents";
978
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
979
+  (31.4ms) DELETE FROM "virus_scans";
980
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
981
+  (0.2ms) begin transaction
982
+  (0.1ms) rollback transaction
983
+  (24.0ms) DELETE FROM "documents";
984
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
985
+  (12.9ms) DELETE FROM "virus_scans";
986
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
987
+  (0.1ms) begin transaction
988
+  (0.1ms) rollback transaction
989
+  (13.4ms) DELETE FROM "documents";
990
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
991
+  (13.3ms) DELETE FROM "virus_scans";
992
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
993
+  (0.0ms) begin transaction
994
+  (0.0ms) rollback transaction
995
+  (12.8ms) DELETE FROM "documents";
996
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
997
+  (13.3ms) DELETE FROM "virus_scans";
998
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
999
+  (0.1ms) begin transaction
1000
+  (0.1ms) rollback transaction
1001
+  (26.3ms) DELETE FROM "documents";
1002
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1003
+  (23.0ms) DELETE FROM "virus_scans";
1004
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1005
+  (0.1ms) begin transaction
1006
+  (0.1ms) rollback transaction
1007
+  (23.1ms) DELETE FROM "documents";
1008
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1009
+  (29.6ms) DELETE FROM "virus_scans";
1010
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1011
+  (0.1ms) begin transaction
1012
+  (0.1ms) rollback transaction
1013
+  (22.8ms) DELETE FROM "documents";
1014
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1015
+  (14.2ms) DELETE FROM "virus_scans";
1016
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1017
+  (0.1ms) begin transaction
1018
+  (0.1ms) rollback transaction
1019
+  (14.1ms) DELETE FROM "documents";
1020
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1021
+  (13.4ms) DELETE FROM "virus_scans";
1022
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1023
+  (0.1ms) begin transaction
1024
+  (0.0ms) rollback transaction
1025
+  (12.9ms) DELETE FROM "documents";
1026
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1027
+  (14.4ms) DELETE FROM "virus_scans";
1028
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1029
+  (0.1ms) begin transaction
1030
+  (0.1ms) rollback transaction
1031
+  (13.6ms) DELETE FROM "documents";
1032
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1033
+  (17.6ms) DELETE FROM "virus_scans";
1034
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1035
+  (0.1ms) begin transaction
1036
+  (0.0ms) rollback transaction
1037
+  (16.6ms) DELETE FROM "documents";
1038
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
1039
+  (15.4ms) DELETE FROM "virus_scans";
1040
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1041
+  (0.1ms) begin transaction
1042
+  (0.2ms) rollback transaction
1043
+  (19.1ms) DELETE FROM "documents";
1044
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1045
+  (24.1ms) DELETE FROM "virus_scans";
1046
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1047
+  (0.1ms) begin transaction
1048
+  (0.2ms) rollback transaction
1049
+  (29.1ms) DELETE FROM "documents";
1050
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1051
+  (28.7ms) DELETE FROM "virus_scans";
1052
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1053
+  (0.1ms) begin transaction
1054
+  (0.1ms) rollback transaction
1055
+  (28.5ms) DELETE FROM "documents";
1056
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1057
+  (24.9ms) DELETE FROM "virus_scans";
1058
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1059
+  (0.0ms) begin transaction
1060
+  (0.0ms) rollback transaction
1061
+  (25.0ms) DELETE FROM "documents";
1062
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1063
+  (16.6ms) DELETE FROM "virus_scans";
1064
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1065
+  (0.1ms) begin transaction
1066
+  (0.1ms) rollback transaction
1067
+  (13.2ms) DELETE FROM "documents";
1068
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1069
+  (13.2ms) DELETE FROM "virus_scans";
1070
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1071
+  (0.2ms) begin transaction
1072
+  (0.1ms) rollback transaction
1073
+  (13.3ms) DELETE FROM "documents";
1074
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1075
+  (12.8ms) DELETE FROM "virus_scans";
1076
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1077
+  (0.1ms) begin transaction
1078
+  (0.1ms) rollback transaction
1079
+  (12.6ms) DELETE FROM "documents";
1080
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
1081
+  (13.2ms) DELETE FROM "virus_scans";
1082
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1083
+  (0.1ms) begin transaction
1084
+  (0.1ms) rollback transaction
1085
+  (12.7ms) DELETE FROM "documents";
1086
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
1087
+  (13.0ms) DELETE FROM "virus_scans";
1088
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1089
+  (0.1ms) begin transaction
1090
+  (0.1ms) rollback transaction
1091
+  (26.6ms) DELETE FROM "documents";
1092
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1093
+  (29.9ms) DELETE FROM "virus_scans";
1094
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1095
+  (0.1ms) begin transaction
1096
+  (0.1ms) rollback transaction
1097
+  (27.7ms) DELETE FROM "documents";
1098
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'documents';
1099
+  (27.0ms) DELETE FROM "virus_scans";
1100
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1101
+  (0.1ms) begin transaction
1102
+  (0.3ms) rollback transaction
1103
+  (14.3ms) DELETE FROM "documents";
1104
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1105
+  (22.3ms) DELETE FROM "virus_scans";
1106
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1107
+  (0.1ms) begin transaction
1108
+  (0.1ms) SAVEPOINT active_record_1
1109
+ SQL (3.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1110
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1112
+  (0.0ms) SAVEPOINT active_record_1
1113
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1115
+  (0.0ms) SAVEPOINT active_record_1
1116
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1117
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1119
+  (0.0ms) SAVEPOINT active_record_1
1120
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1122
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
1123
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
1124
+  (0.1ms) rollback transaction
1125
+  (13.6ms) DELETE FROM "documents";
1126
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
1127
+  (14.7ms) DELETE FROM "virus_scans";
1128
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1129
+  (0.1ms) begin transaction
1130
+  (0.1ms) SAVEPOINT active_record_1
1131
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1132
+ SQL (0.4ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1133
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1134
+  (0.1ms) rollback transaction
1135
+  (12.5ms) DELETE FROM "documents";
1136
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1137
+  (12.9ms) DELETE FROM "virus_scans";
1138
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1139
+  (0.1ms) begin transaction
1140
+  (0.2ms) SAVEPOINT active_record_1
1141
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1142
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1144
+  (0.1ms) SAVEPOINT active_record_1
1145
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1147
+  (0.0ms) SAVEPOINT active_record_1
1148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1149
+  (0.1ms) rollback transaction
1150
+  (15.2ms) DELETE FROM "documents";
1151
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1152
+  (13.8ms) DELETE FROM "virus_scans";
1153
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1154
+  (0.1ms) begin transaction
1155
+  (0.1ms) SAVEPOINT active_record_1
1156
+ SQL (0.5ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1157
+ SQL (0.3ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1159
+  (0.1ms) SAVEPOINT active_record_1
1160
+ SQL (0.5ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1162
+  (0.1ms) SAVEPOINT active_record_1
1163
+  (0.3ms) UPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:19:15.208350', "updated_at" = '2015-02-12 12:19:15.208713' WHERE "virus_scans"."id" = 2
1164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1165
+  (0.1ms) rollback transaction
1166
+  (13.5ms) DELETE FROM "documents";
1167
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
1168
+  (12.9ms) DELETE FROM "virus_scans";
1169
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1170
+  (0.0ms) begin transaction
1171
+  (0.1ms) SAVEPOINT active_record_1
1172
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1174
+  (0.0ms) SAVEPOINT active_record_1
1175
+ SQL (0.6ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1177
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1178
+ Processing by WitchDoctor::VirusScansController#update as JSON
1179
+ Parameters: {"token"=>"999", "id"=>"1"}
1180
+ Completed 403 Forbidden in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1181
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1182
+  (0.1ms) rollback transaction
1183
+  (14.8ms) DELETE FROM "documents";
1184
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1185
+  (14.6ms) DELETE FROM "virus_scans";
1186
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1187
+  (0.1ms) begin transaction
1188
+  (0.1ms) SAVEPOINT active_record_1
1189
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1191
+  (0.0ms) SAVEPOINT active_record_1
1192
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1194
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1195
+ Processing by WitchDoctor::VirusScansController#update as JSON
1196
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
1197
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
1198
+  (0.0ms) SAVEPOINT active_record_1
1199
+  (0.1ms) UPDATE "virus_scans" SET "scan_result" = 'Clean', "scanned_at" = '2015-02-12 12:19:15.312596', "updated_at" = '2015-02-12 12:19:15.312731' WHERE "virus_scans"."id" = 1
1200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1201
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1202
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
1203
+ Completed 200 OK in 3.5ms (Views: 1.1ms | ActiveRecord: 0.3ms)
1204
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1205
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
1206
+  (0.1ms) rollback transaction
1207
+  (24.1ms) DELETE FROM "documents";
1208
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1209
+  (23.3ms) DELETE FROM "virus_scans";
1210
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1211
+  (0.0ms) begin transaction
1212
+  (0.1ms) SAVEPOINT active_record_1
1213
+ SQL (0.6ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1214
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1215
+  (0.1ms) SAVEPOINT active_record_1
1216
+ SQL (0.5ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1218
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1219
+ Processing by WitchDoctor::VirusScansController#update as JSON
1220
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Wazaaap"}, "id"=>"1"}
1221
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
1222
+  (0.0ms) SAVEPOINT active_record_1
1223
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1224
+ Completed 400 Bad Request in 5.1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1225
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1226
+  (0.1ms) rollback transaction
1227
+  (29.7ms) DELETE FROM "documents";
1228
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1229
+  (26.0ms) DELETE FROM "virus_scans";
1230
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1231
+  (0.1ms) begin transaction
1232
+  (0.2ms) SAVEPOINT active_record_1
1233
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1235
+  (0.0ms) SAVEPOINT active_record_1
1236
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1238
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1239
+ Processing by WitchDoctor::VirusScansController#update as HTML
1240
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
1241
+ Completed 406 Not Acceptable in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1242
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1243
+  (0.1ms) rollback transaction
1244
+  (25.7ms) DELETE FROM "documents";
1245
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
1246
+  (15.6ms) DELETE FROM "virus_scans";
1247
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1248
+  (0.0ms) begin transaction
1249
+  (0.1ms) SAVEPOINT active_record_1
1250
+ SQL (0.4ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1252
+  (0.0ms) SAVEPOINT active_record_1
1253
+ SQL (0.4ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1254
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1255
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1256
+ Processing by WitchDoctor::VirusScansController#update as JSON
1257
+ Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean", "mount_point"=>"abc"}, "id"=>"1"}
1258
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
1259
+  (0.0ms) SAVEPOINT active_record_1
1260
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1261
+ Completed 406 Not Acceptable in 1.2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1262
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1263
+  (0.1ms) rollback transaction
1264
+  (13.1ms) DELETE FROM "documents";
1265
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'documents';
1266
+  (22.6ms) DELETE FROM "virus_scans";
1267
+  (0.3ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1268
+  (0.1ms) begin transaction
1269
+  (0.1ms) SAVEPOINT active_record_1
1270
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1272
+  (0.0ms) SAVEPOINT active_record_1
1273
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1275
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1276
+ Processing by WitchDoctor::VirusScansController#update as JSON
1277
+ Parameters: {"id"=>"1"}
1278
+ Completed 401 Unauthorized in 0.3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1279
+ VirusScan Load (0.0ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
1280
+  (0.1ms) rollback transaction
1281
+  (27.9ms) DELETE FROM "documents";
1282
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
1283
+  (24.5ms) DELETE FROM "virus_scans";
1284
+  (0.4ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1285
+  (0.1ms) begin transaction
1286
+  (0.1ms) SAVEPOINT active_record_1
1287
+ SQL (0.7ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1289
+  (0.1ms) SAVEPOINT active_record_1
1290
+ SQL (0.4ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1292
+  (0.0ms) SAVEPOINT active_record_1
1293
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1295
+  (0.0ms) SAVEPOINT active_record_1
1296
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1298
+ Processing by WitchDoctor::VirusScansController#index as JSON
1299
+ Parameters: {"token"=>999}
1300
+ Completed 403 Forbidden in 0.4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1301
+  (0.1ms) rollback transaction
1302
+  (21.3ms) DELETE FROM "documents";
1303
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1304
+  (24.1ms) DELETE FROM "virus_scans";
1305
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1306
+  (0.0ms) begin transaction
1307
+  (0.1ms) SAVEPOINT active_record_1
1308
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1310
+  (0.0ms) SAVEPOINT active_record_1
1311
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1313
+  (0.0ms) SAVEPOINT active_record_1
1314
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1316
+  (0.0ms) SAVEPOINT active_record_1
1317
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1319
+  (0.0ms) SAVEPOINT active_record_1
1320
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1322
+  (0.0ms) SAVEPOINT active_record_1
1323
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1325
+ Processing by WitchDoctor::VirusScansController#index as JSON
1326
+ Parameters: {"token"=>"1234"}
1327
+ VirusScan Load (0.1ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2
1328
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
1329
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1
1330
+ Completed 200 OK in 7.5ms (Views: 2.3ms | ActiveRecord: 0.3ms)
1331
+  (0.1ms) rollback transaction
1332
+  (12.6ms) DELETE FROM "documents";
1333
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1334
+  (14.2ms) DELETE FROM "virus_scans";
1335
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1336
+  (0.0ms) begin transaction
1337
+  (0.1ms) SAVEPOINT active_record_1
1338
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1340
+  (0.0ms) SAVEPOINT active_record_1
1341
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1343
+  (0.0ms) SAVEPOINT active_record_1
1344
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1346
+  (0.0ms) SAVEPOINT active_record_1
1347
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1349
+  (0.0ms) SAVEPOINT active_record_1
1350
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1352
+  (0.1ms) SAVEPOINT active_record_1
1353
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1355
+ Processing by WitchDoctor::VirusScansController#index as HTML
1356
+ Parameters: {"token"=>"1234"}
1357
+ Completed 406 Not Acceptable in 0.6ms (ActiveRecord: 0.0ms)
1358
+  (0.2ms) rollback transaction
1359
+  (15.3ms) DELETE FROM "documents";
1360
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1361
+  (14.3ms) DELETE FROM "virus_scans";
1362
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1363
+  (0.0ms) begin transaction
1364
+  (0.1ms) SAVEPOINT active_record_1
1365
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1367
+  (0.0ms) SAVEPOINT active_record_1
1368
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1370
+  (0.0ms) SAVEPOINT active_record_1
1371
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1373
+  (0.0ms) SAVEPOINT active_record_1
1374
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1376
+  (0.0ms) SAVEPOINT active_record_1
1377
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1379
+  (0.0ms) SAVEPOINT active_record_1
1380
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1382
+ Processing by WitchDoctor::VirusScansController#index as HTML
1383
+ Parameters: {"token"=>"1234"}
1384
+ Completed 406 Not Acceptable in 0.4ms (ActiveRecord: 0.0ms)
1385
+  (0.1ms) rollback transaction
1386
+  (12.0ms) DELETE FROM "documents";
1387
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1388
+  (12.3ms) DELETE FROM "virus_scans";
1389
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1390
+  (0.0ms) begin transaction
1391
+  (0.1ms) SAVEPOINT active_record_1
1392
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1394
+  (0.0ms) SAVEPOINT active_record_1
1395
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1396
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1397
+  (0.0ms) SAVEPOINT active_record_1
1398
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1400
+  (0.0ms) SAVEPOINT active_record_1
1401
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1403
+  (0.0ms) SAVEPOINT active_record_1
1404
+ SQL (0.1ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1406
+  (0.0ms) SAVEPOINT active_record_1
1407
+ SQL (0.1ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1409
+ Processing by WitchDoctor::VirusScansController#index as JSON
1410
+ VirusScan Load (0.2ms) SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 2
1411
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 1 LIMIT 1
1412
+ Document Load (0.1ms) SELECT "documents".* FROM "documents" WHERE "documents"."id" = 3 LIMIT 1
1413
+ Completed 200 OK in 3.4ms (Views: 2.4ms | ActiveRecord: 0.3ms)
1414
+  (0.1ms) rollback transaction
1415
+  (17.1ms) DELETE FROM "documents";
1416
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'documents';
1417
+  (27.1ms) DELETE FROM "virus_scans";
1418
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';
1419
+  (0.1ms) begin transaction
1420
+  (0.1ms) SAVEPOINT active_record_1
1421
+ SQL (0.3ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1422
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1423
+  (0.1ms) SAVEPOINT active_record_1
1424
+ SQL (0.6ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", nil], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1425
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1426
+  (0.1ms) SAVEPOINT active_record_1
1427
+ SQL (0.2ms) INSERT INTO "documents" ("attachment", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["attachment", nil], ["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["title", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1429
+  (0.0ms) SAVEPOINT active_record_1
1430
+ SQL (0.2ms) INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "scanned_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["scanned_at", nil], ["updated_at", Thu, 12 Feb 2015 12:19:15 UTC +00:00]]
1431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1432
+ Processing by WitchDoctor::VirusScansController#index as JSON
1433
+ Completed 401 Unauthorized in 0.4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1434
+  (0.2ms) rollback transaction
1435
+  (26.5ms) DELETE FROM "documents";
1436
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'documents';
1437
+  (26.8ms) DELETE FROM "virus_scans";
1438
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'virus_scans';