csv_import_magic 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -88144,3 +88144,3149 @@ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465
88144
88144
   (0.1ms) commit transaction
88145
88145
   (0.1ms) begin transaction
88146
88146
   (0.1ms) rollback transaction
88147
+  (2.3ms) DELETE FROM "companies";
88148
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
88149
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';
88150
+  (1.0ms) DELETE FROM "importers";
88151
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
88152
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';
88153
+  (0.8ms) DELETE FROM "users";
88154
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
88155
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
88156
+  (0.0ms) begin transaction
88157
+  (0.0ms) commit transaction
88158
+  (0.0ms) begin transaction
88159
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-fc5ffv'
88160
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-37ry8.csv'
88161
+  (0.1ms) SAVEPOINT active_record_1
88162
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-813v91.csv'
88163
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88164
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:50.610804"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:50.670623"], ["updated_at", "2017-04-06 21:09:50.670623"]]
88165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88166
+  (0.0ms) SAVEPOINT active_record_1
88167
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88169
+  (0.4ms) rollback transaction
88170
+  (0.1ms) begin transaction
88171
+  (0.0ms) commit transaction
88172
+  (0.0ms) begin transaction
88173
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88174
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-j9rlwf'
88175
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-cp1hy0.csv'
88176
+  (0.1ms) SAVEPOINT active_record_1
88177
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-iyvvi.csv'
88178
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88179
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:50.702593"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:50.735485"], ["updated_at", "2017-04-06 21:09:50.735485"]]
88180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88181
+ Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88182
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
88183
+  (0.5ms) rollback transaction
88184
+  (0.1ms) begin transaction
88185
+  (0.0ms) commit transaction
88186
+  (0.0ms) begin transaction
88187
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88188
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-tzgyaj'
88189
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-7kqzcv.csv'
88190
+  (0.1ms) rollback transaction
88191
+  (0.1ms) begin transaction
88192
+  (0.0ms) commit transaction
88193
+  (0.0ms) begin transaction
88194
+  (0.0ms) SAVEPOINT active_record_1
88195
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88197
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88198
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1vsfss7'
88199
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-x7cti4.csv'
88200
+  (0.1ms) SAVEPOINT active_record_1
88201
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-7bicbi.csv'
88202
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88203
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:50.938217"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-04-06 21:09:50.967550"], ["updated_at", "2017-04-06 21:09:50.967550"]]
88204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88205
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88206
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
88207
+ Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]
88208
+  (0.5ms) rollback transaction
88209
+  (0.1ms) begin transaction
88210
+  (0.0ms) commit transaction
88211
+  (0.0ms) begin transaction
88212
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88213
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1a36hqy'
88214
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-a6eg2h.csv'
88215
+  (0.1ms) SAVEPOINT active_record_1
88216
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-fg3i79.csv'
88217
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88218
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.032560"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.065971"], ["updated_at", "2017-04-06 21:09:51.065971"]]
88219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88220
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88221
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
88222
+  (0.4ms) rollback transaction
88223
+  (0.1ms) begin transaction
88224
+  (0.0ms) commit transaction
88225
+  (0.0ms) begin transaction
88226
+  (0.0ms) rollback transaction
88227
+  (0.0ms) begin transaction
88228
+  (0.0ms) commit transaction
88229
+  (0.0ms) begin transaction
88230
+  (0.0ms) rollback transaction
88231
+  (0.0ms) begin transaction
88232
+  (0.0ms) commit transaction
88233
+  (0.0ms) begin transaction
88234
+  (0.0ms) rollback transaction
88235
+  (0.0ms) begin transaction
88236
+  (0.1ms) commit transaction
88237
+  (0.0ms) begin transaction
88238
+  (0.0ms) rollback transaction
88239
+  (0.1ms) begin transaction
88240
+  (0.0ms) commit transaction
88241
+  (0.0ms) begin transaction
88242
+  (0.0ms) rollback transaction
88243
+  (0.0ms) begin transaction
88244
+  (0.0ms) commit transaction
88245
+  (0.0ms) begin transaction
88246
+  (0.0ms) rollback transaction
88247
+  (0.0ms) begin transaction
88248
+  (0.0ms) commit transaction
88249
+  (0.0ms) begin transaction
88250
+  (0.0ms) rollback transaction
88251
+  (0.0ms) begin transaction
88252
+  (0.0ms) commit transaction
88253
+  (0.0ms) begin transaction
88254
+  (0.1ms) rollback transaction
88255
+  (0.0ms) begin transaction
88256
+  (0.0ms) commit transaction
88257
+  (0.0ms) begin transaction
88258
+  (0.0ms) rollback transaction
88259
+  (0.0ms) begin transaction
88260
+  (0.0ms) commit transaction
88261
+  (0.0ms) begin transaction
88262
+  (0.1ms) rollback transaction
88263
+  (0.0ms) begin transaction
88264
+  (0.0ms) commit transaction
88265
+  (0.1ms) begin transaction
88266
+  (0.1ms) rollback transaction
88267
+  (0.0ms) begin transaction
88268
+  (0.0ms) commit transaction
88269
+  (0.0ms) begin transaction
88270
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1ct66rs'
88271
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1fh2na6.csv'
88272
+  (0.1ms) SAVEPOINT active_record_1
88273
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-z5io7d.csv'
88274
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88275
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.154000"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.181603"], ["updated_at", "2017-04-06 21:09:51.181603"]]
88276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88277
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88278
+  (0.1ms) SAVEPOINT active_record_1
88279
+ SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-04-06 21:09:51.215094"], ["id", 1]]
88280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88281
+  (0.5ms) rollback transaction
88282
+  (0.0ms) begin transaction
88283
+  (0.0ms) commit transaction
88284
+  (0.0ms) begin transaction
88285
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-10n94va'
88286
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1rgaek5.csv'
88287
+  (0.1ms) SAVEPOINT active_record_1
88288
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-12kfqan.csv'
88289
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88290
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.235398"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.263273"], ["updated_at", "2017-04-06 21:09:51.263273"]]
88291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88292
+  (0.4ms) rollback transaction
88293
+  (0.1ms) begin transaction
88294
+  (0.0ms) commit transaction
88295
+  (0.0ms) begin transaction
88296
+  (0.2ms) SELECT COUNT(*) FROM "importers"
88297
+  (0.1ms) SAVEPOINT active_record_1
88298
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88300
+ Processing by CsvImportMagic::ImportersController#create as HTML
88301
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007f9a34fc0cf8 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1e0xa3q>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
88302
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1e0xa3q'
88303
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1aezs4f.csv'
88304
+  (0.1ms) SAVEPOINT active_record_1
88305
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1ui4ot8.csv'
88306
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.302028"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:09:51.329218"], ["updated_at", "2017-04-06 21:09:51.329218"]]
88307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88308
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88309
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
88310
+ Completed 302 Found in 54ms (ActiveRecord: 0.5ms)
88311
+  (0.1ms) SELECT COUNT(*) FROM "importers"
88312
+  (0.4ms) rollback transaction
88313
+  (0.1ms) begin transaction
88314
+  (0.1ms) commit transaction
88315
+  (0.0ms) begin transaction
88316
+  (0.0ms) SAVEPOINT active_record_1
88317
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88319
+ Processing by CsvImportMagic::ImportersController#create as HTML
88320
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007f9a34ec3a80 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1sftryk>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
88321
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1sftryk'
88322
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1vxkz6m.csv'
88323
+  (0.1ms) SAVEPOINT active_record_1
88324
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-14bxdmb.csv'
88325
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.364222"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:09:51.392402"], ["updated_at", "2017-04-06 21:09:51.392402"]]
88326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88327
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88328
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
88329
+ Completed 302 Found in 52ms (ActiveRecord: 0.4ms)
88330
+ Importer Load (0.5ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1
88331
+  (0.4ms) rollback transaction
88332
+  (0.1ms) begin transaction
88333
+  (0.0ms) commit transaction
88334
+  (0.0ms) begin transaction
88335
+  (0.1ms) SAVEPOINT active_record_1
88336
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88338
+ Processing by CsvImportMagic::ImportersController#create as HTML
88339
+ Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
88340
+  (0.0ms) SAVEPOINT active_record_1
88341
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88342
+ Redirected to http://example.com
88343
+ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)
88344
+  (0.4ms) rollback transaction
88345
+  (0.0ms) begin transaction
88346
+  (0.0ms) commit transaction
88347
+  (0.0ms) begin transaction
88348
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-rriz7f'
88349
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-ec8nwn.csv'
88350
+  (0.1ms) SAVEPOINT active_record_1
88351
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-180d5t8.csv'
88352
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88353
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.439018"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.470590"], ["updated_at", "2017-04-06 21:09:51.470590"]]
88354
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88355
+ Processing by CsvImportMagic::ImportersController#edit as HTML
88356
+ Parameters: {"id"=>"1"}
88357
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88358
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms)
88359
+ Completed 200 OK in 18ms (Views: 17.7ms | ActiveRecord: 0.1ms)
88360
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88361
+  (0.4ms) rollback transaction
88362
+  (0.0ms) begin transaction
88363
+  (0.0ms) commit transaction
88364
+  (0.0ms) begin transaction
88365
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1d9xxwj'
88366
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-e76cux.csv'
88367
+  (0.1ms) SAVEPOINT active_record_1
88368
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-xgn5vi.csv'
88369
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88370
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.520398"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.548041"], ["updated_at", "2017-04-06 21:09:51.548041"]]
88371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88372
+ Processing by CsvImportMagic::ImportersController#update as HTML
88373
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
88374
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88375
+  (0.1ms) SAVEPOINT active_record_1
88376
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:09:51.559103"], ["id", 1]]
88377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88378
+ Redirected to http://test.host/csv_import_magic/importers/1
88379
+ Completed 302 Found in 11ms (ActiveRecord: 0.3ms)
88380
+  (0.5ms) rollback transaction
88381
+  (0.1ms) begin transaction
88382
+  (0.0ms) commit transaction
88383
+  (0.0ms) begin transaction
88384
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-16vss43'
88385
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1p62s7v.csv'
88386
+  (0.1ms) SAVEPOINT active_record_1
88387
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-19kh9fy.csv'
88388
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88389
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.589206"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.621032"], ["updated_at", "2017-04-06 21:09:51.621032"]]
88390
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88391
+ Processing by CsvImportMagic::ImportersController#update as HTML
88392
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
88393
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88394
+  (0.0ms) SAVEPOINT active_record_1
88395
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:09:51.633386"], ["id", 1]]
88396
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88397
+ Redirected to http://test.host/csv_import_magic/importers/1
88398
+ Completed 302 Found in 17ms (ActiveRecord: 0.3ms)
88399
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88400
+  (0.5ms) rollback transaction
88401
+  (0.1ms) begin transaction
88402
+  (0.0ms) commit transaction
88403
+  (0.0ms) begin transaction
88404
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1fz1cxm'
88405
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-612ywf.csv'
88406
+  (0.1ms) SAVEPOINT active_record_1
88407
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-d79ugv.csv'
88408
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88409
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.668029"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.697347"], ["updated_at", "2017-04-06 21:09:51.697347"]]
88410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88411
+ Processing by CsvImportMagic::ImportersController#update as HTML
88412
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
88413
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88414
+  (0.1ms) SAVEPOINT active_record_1
88415
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:09:51.709866"], ["id", 1]]
88416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88417
+ Redirected to http://test.host/csv_import_magic/importers/1
88418
+ Completed 302 Found in 10ms (ActiveRecord: 0.3ms)
88419
+  (0.5ms) rollback transaction
88420
+  (0.1ms) begin transaction
88421
+  (0.1ms) commit transaction
88422
+  (0.0ms) begin transaction
88423
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-t3zgds'
88424
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-3yggla.csv'
88425
+  (0.1ms) SAVEPOINT active_record_1
88426
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-itac29.csv'
88427
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88428
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.735565"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.765205"], ["updated_at", "2017-04-06 21:09:51.765205"]]
88429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88430
+ Processing by CsvImportMagic::ImportersController#update as HTML
88431
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"}
88432
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88433
+  (0.0ms) SAVEPOINT active_record_1
88434
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
88435
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms)
88436
+ Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms)
88437
+  (0.6ms) rollback transaction
88438
+  (0.1ms) begin transaction
88439
+  (0.1ms) commit transaction
88440
+  (0.1ms) begin transaction
88441
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-689491'
88442
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-14fla3k.csv'
88443
+  (0.1ms) SAVEPOINT active_record_1
88444
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-ajhjq2.csv'
88445
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88446
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.800070"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.832034"], ["updated_at", "2017-04-06 21:09:51.832034"]]
88447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88448
+ Processing by CsvImportMagic::ImportersController#show as HTML
88449
+ Parameters: {"id"=>"1"}
88450
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88451
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms)
88452
+ Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.1ms)
88453
+  (0.6ms) rollback transaction
88454
+  (0.1ms) begin transaction
88455
+  (0.0ms) commit transaction
88456
+  (0.2ms) begin transaction
88457
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170406-94054-i2x3ei'
88458
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94054-vz86fy.csv'
88459
+  (0.1ms) SAVEPOINT active_record_1
88460
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94054-15d8mgk.csv'
88461
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88462
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-04-06 21:09:51.866542"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.896519"], ["updated_at", "2017-04-06 21:09:51.896519"]]
88463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88464
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88465
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
88466
+  (0.4ms) rollback transaction
88467
+  (0.1ms) begin transaction
88468
+  (0.1ms) commit transaction
88469
+  (0.0ms) begin transaction
88470
+  (0.0ms) rollback transaction
88471
+  (0.0ms) begin transaction
88472
+  (0.0ms) commit transaction
88473
+  (0.0ms) begin transaction
88474
+  (0.1ms) rollback transaction
88475
+  (0.1ms) begin transaction
88476
+  (0.3ms) commit transaction
88477
+  (0.0ms) begin transaction
88478
+  (0.1ms) rollback transaction
88479
+  (0.0ms) begin transaction
88480
+  (0.1ms) commit transaction
88481
+  (0.0ms) begin transaction
88482
+  (0.1ms) rollback transaction
88483
+  (0.1ms) begin transaction
88484
+  (0.0ms) commit transaction
88485
+  (0.0ms) begin transaction
88486
+  (0.0ms) rollback transaction
88487
+  (0.0ms) begin transaction
88488
+  (0.0ms) commit transaction
88489
+  (0.0ms) begin transaction
88490
+  (0.1ms) rollback transaction
88491
+  (0.0ms) begin transaction
88492
+  (0.0ms) commit transaction
88493
+  (0.0ms) begin transaction
88494
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1n955px'
88495
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1euxcms.csv'
88496
+  (0.1ms) SAVEPOINT active_record_1
88497
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1lpxj9x.csv'
88498
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88499
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.978740"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.007519"], ["updated_at", "2017-04-06 21:09:52.007519"]]
88500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88501
+  (0.3ms) rollback transaction
88502
+  (0.1ms) begin transaction
88503
+  (0.0ms) commit transaction
88504
+  (0.0ms) begin transaction
88505
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-9iwv5g'
88506
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1koeo3o.csv'
88507
+  (0.1ms) SAVEPOINT active_record_1
88508
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-yl7ymi.csv'
88509
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88510
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:52.029325"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.059214"], ["updated_at", "2017-04-06 21:09:52.059214"]]
88511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88512
+  (0.4ms) rollback transaction
88513
+  (0.1ms) begin transaction
88514
+  (0.0ms) commit transaction
88515
+  (0.1ms) begin transaction
88516
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-197pp6u'
88517
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-b112qf.csv'
88518
+  (0.1ms) SAVEPOINT active_record_1
88519
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-189zr8j.csv'
88520
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88521
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:52.084342"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.115669"], ["updated_at", "2017-04-06 21:09:52.115669"]]
88522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88523
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88524
+  (0.4ms) rollback transaction
88525
+  (0.1ms) begin transaction
88526
+  (0.1ms) commit transaction
88527
+  (0.0ms) begin transaction
88528
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-12z9zx7'
88529
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-phhqqm.csv'
88530
+  (0.1ms) SAVEPOINT active_record_1
88531
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-19qpgnq.csv'
88532
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88533
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:52.141097"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.174550"], ["updated_at", "2017-04-06 21:09:52.174550"]]
88534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88535
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88536
+  (0.5ms) rollback transaction
88537
+  (0.1ms) begin transaction
88538
+  (0.1ms) commit transaction
88539
+  (0.0ms) begin transaction
88540
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1xr0a59'
88541
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-s7n6vy.csv'
88542
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170406-94054-1nbi8z5'
88543
+  (0.1ms) rollback transaction
88544
+  (0.1ms) begin transaction
88545
+  (0.0ms) commit transaction
88546
+  (0.0ms) begin transaction
88547
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-rdot73'
88548
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-12u0h0y.csv'
88549
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-bli3mf.csv'
88550
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1g3eqmr.csv'
88551
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1qtyq2p.csv'
88552
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-deji3z.csv'
88553
+  (0.1ms) rollback transaction
88554
+  (0.1ms) begin transaction
88555
+  (0.0ms) commit transaction
88556
+  (0.0ms) begin transaction
88557
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-k4btzm'
88558
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-12hsow9.csv'
88559
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-jk36hl.csv'
88560
+  (0.1ms) rollback transaction
88561
+  (0.1ms) begin transaction
88562
+  (0.0ms) commit transaction
88563
+  (0.0ms) begin transaction
88564
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-ki9v1d'
88565
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1z04ob7.csv'
88566
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-cvzbq4.csv'
88567
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-rzng7b.csv'
88568
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1m8c7wy.csv'
88569
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-rszrfu.csv'
88570
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-i67swv.csv'
88571
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-16pvpbz.csv'
88572
+  (0.1ms) rollback transaction
88573
+  (0.1ms) begin transaction
88574
+  (0.2ms) commit transaction
88575
+  (0.0ms) begin transaction
88576
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1vq5mvl'
88577
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-16fibjb.csv'
88578
+  (0.1ms) rollback transaction
88579
+  (0.1ms) begin transaction
88580
+  (0.0ms) commit transaction
88581
+  (0.0ms) begin transaction
88582
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-aw2evz'
88583
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-rwwlpl.csv'
88584
+  (0.1ms) rollback transaction
88585
+  (0.1ms) begin transaction
88586
+  (0.0ms) commit transaction
88587
+  (0.0ms) begin transaction
88588
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-125a7e9'
88589
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1fywvqb.csv'
88590
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-ae09oq.csv'
88591
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1ndwlbf.csv'
88592
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-jimye0.csv'
88593
+ [paperclip] Content Type Spoof: Filename companies.csv (application/vnd.ms-excel from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
88594
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-87n36k.csv'
88595
+ [paperclip] Content Type Spoof: Filename companies.csv (image/png from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
88596
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1raaetb.csv'
88597
+ [paperclip] Content Type Spoof: Filename companies.csv (image/gif from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
88598
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1apimnt.csv'
88599
+  (0.1ms) rollback transaction
88600
+  (0.1ms) begin transaction
88601
+  (0.0ms) commit transaction
88602
+  (0.0ms) begin transaction
88603
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1jf0u9k'
88604
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-13eciyu.csv'
88605
+  (0.1ms) SAVEPOINT active_record_1
88606
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-pr0mf2.csv'
88607
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88608
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:52.707659"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.740461"], ["updated_at", "2017-04-06 21:09:52.740461"]]
88609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88610
+  (0.4ms) rollback transaction
88611
+  (0.1ms) begin transaction
88612
+  (0.1ms) commit transaction
88613
+  (0.0ms) begin transaction
88614
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-wfmwfo'
88615
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-db4m8z.csv'
88616
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1w0ik8v.csv'
88617
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-c1bpuz'
88618
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-nh9s4p.csv'
88619
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1fa1pdf.csv'
88620
+  (0.1ms) rollback transaction
88621
+  (0.1ms) begin transaction
88622
+  (0.0ms) commit transaction
88623
+  (0.0ms) begin transaction
88624
+  (0.0ms) rollback transaction
88625
+  (0.0ms) begin transaction
88626
+  (0.0ms) commit transaction
88627
+  (0.0ms) begin transaction
88628
+  (0.1ms) rollback transaction
88629
+  (0.0ms) begin transaction
88630
+  (0.0ms) commit transaction
88631
+  (0.0ms) begin transaction
88632
+  (0.1ms) rollback transaction
88633
+  (1.9ms) DELETE FROM "companies";
88634
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
88635
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';
88636
+  (0.9ms) DELETE FROM "importers";
88637
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
88638
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';
88639
+  (0.8ms) DELETE FROM "users";
88640
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
88641
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
88642
+  (0.0ms) begin transaction
88643
+  (0.0ms) commit transaction
88644
+  (0.0ms) begin transaction
88645
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1yrkpfy'
88646
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1iqv9t.csv'
88647
+  (0.1ms) SAVEPOINT active_record_1
88648
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1c8x1f5.csv'
88649
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88650
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.041279"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.096445"], ["updated_at", "2017-04-06 21:10:06.096445"]]
88651
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88652
+  (0.0ms) SAVEPOINT active_record_1
88653
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88654
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88655
+  (0.4ms) rollback transaction
88656
+  (0.0ms) begin transaction
88657
+  (0.0ms) commit transaction
88658
+  (0.0ms) begin transaction
88659
+  (0.1ms) rollback transaction
88660
+  (0.0ms) begin transaction
88661
+  (0.0ms) commit transaction
88662
+  (0.0ms) begin transaction
88663
+  (0.1ms) rollback transaction
88664
+  (0.0ms) begin transaction
88665
+  (0.1ms) commit transaction
88666
+  (0.0ms) begin transaction
88667
+  (0.1ms) rollback transaction
88668
+  (0.0ms) begin transaction
88669
+  (0.0ms) commit transaction
88670
+  (0.0ms) begin transaction
88671
+  (0.0ms) rollback transaction
88672
+  (0.0ms) begin transaction
88673
+  (0.0ms) commit transaction
88674
+  (0.0ms) begin transaction
88675
+  (0.1ms) rollback transaction
88676
+  (0.1ms) begin transaction
88677
+  (0.0ms) commit transaction
88678
+  (0.2ms) begin transaction
88679
+  (0.1ms) rollback transaction
88680
+  (0.1ms) begin transaction
88681
+  (0.0ms) commit transaction
88682
+  (0.0ms) begin transaction
88683
+  (0.1ms) rollback transaction
88684
+  (0.0ms) begin transaction
88685
+  (0.0ms) commit transaction
88686
+  (0.0ms) begin transaction
88687
+  (0.1ms) rollback transaction
88688
+  (0.1ms) begin transaction
88689
+  (0.0ms) commit transaction
88690
+  (0.0ms) begin transaction
88691
+  (0.1ms) rollback transaction
88692
+  (0.1ms) begin transaction
88693
+  (0.0ms) commit transaction
88694
+  (0.0ms) begin transaction
88695
+  (0.0ms) rollback transaction
88696
+  (0.1ms) begin transaction
88697
+  (0.0ms) commit transaction
88698
+  (0.0ms) begin transaction
88699
+  (0.0ms) rollback transaction
88700
+  (0.0ms) begin transaction
88701
+  (0.0ms) commit transaction
88702
+  (0.0ms) begin transaction
88703
+  (0.0ms) rollback transaction
88704
+  (0.0ms) begin transaction
88705
+  (0.0ms) commit transaction
88706
+  (0.0ms) begin transaction
88707
+  (0.0ms) rollback transaction
88708
+  (0.0ms) begin transaction
88709
+  (0.0ms) commit transaction
88710
+  (0.0ms) begin transaction
88711
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-15vzd41'
88712
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1siwdpa.csv'
88713
+  (0.1ms) SAVEPOINT active_record_1
88714
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-19p1d77.csv'
88715
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88716
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.196357"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.223386"], ["updated_at", "2017-04-06 21:10:06.223386"]]
88717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88718
+  (0.6ms) rollback transaction
88719
+  (0.1ms) begin transaction
88720
+  (0.0ms) commit transaction
88721
+  (0.3ms) begin transaction
88722
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-19v02xd'
88723
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1s2rdj0.csv'
88724
+  (0.1ms) SAVEPOINT active_record_1
88725
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1woqi9y.csv'
88726
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88727
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.257522"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.289617"], ["updated_at", "2017-04-06 21:10:06.289617"]]
88728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88729
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88730
+  (0.1ms) SAVEPOINT active_record_1
88731
+ SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-04-06 21:10:06.315721"], ["id", 1]]
88732
+  (21.4ms) RELEASE SAVEPOINT active_record_1
88733
+  (0.4ms) rollback transaction
88734
+  (0.1ms) begin transaction
88735
+  (0.0ms) commit transaction
88736
+  (0.0ms) begin transaction
88737
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170406-94183-v5vntj'
88738
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94183-11kwtgl.csv'
88739
+  (0.1ms) SAVEPOINT active_record_1
88740
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94183-1licqm7.csv'
88741
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88742
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-04-06 21:10:06.357933"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.387739"], ["updated_at", "2017-04-06 21:10:06.387739"]]
88743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88744
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88745
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
88746
+  (0.5ms) rollback transaction
88747
+  (0.1ms) begin transaction
88748
+  (0.0ms) commit transaction
88749
+  (0.0ms) begin transaction
88750
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88751
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1t5lyoq'
88752
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1epbfqi.csv'
88753
+  (0.1ms) SAVEPOINT active_record_1
88754
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1kgs0v6.csv'
88755
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88756
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.467814"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.497647"], ["updated_at", "2017-04-06 21:10:06.497647"]]
88757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88758
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88759
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
88760
+  (0.4ms) rollback transaction
88761
+  (0.1ms) begin transaction
88762
+  (0.0ms) commit transaction
88763
+  (0.0ms) begin transaction
88764
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88765
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-bvk6nu'
88766
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-13jgcz8.csv'
88767
+  (0.1ms) rollback transaction
88768
+  (0.1ms) begin transaction
88769
+  (0.0ms) commit transaction
88770
+  (0.0ms) begin transaction
88771
+  (0.0ms) SAVEPOINT active_record_1
88772
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88774
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88775
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-cxebxs'
88776
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-15qsmj3.csv'
88777
+  (0.1ms) SAVEPOINT active_record_1
88778
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1xd9xg4.csv'
88779
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88780
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.612633"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-04-06 21:10:06.641046"], ["updated_at", "2017-04-06 21:10:06.641046"]]
88781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88782
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88783
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
88784
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]
88785
+  (0.4ms) rollback transaction
88786
+  (0.1ms) begin transaction
88787
+  (0.0ms) commit transaction
88788
+  (0.0ms) begin transaction
88789
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88790
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-b0nd1x'
88791
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1mi6epd.csv'
88792
+  (0.1ms) SAVEPOINT active_record_1
88793
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1llzrwr.csv'
88794
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88795
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.700362"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.733261"], ["updated_at", "2017-04-06 21:10:06.733261"]]
88796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88797
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88798
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
88799
+  (0.5ms) rollback transaction
88800
+  (0.1ms) begin transaction
88801
+  (0.0ms) commit transaction
88802
+  (0.0ms) begin transaction
88803
+  (0.0ms) rollback transaction
88804
+  (0.0ms) begin transaction
88805
+  (0.0ms) commit transaction
88806
+  (0.0ms) begin transaction
88807
+  (0.0ms) rollback transaction
88808
+  (0.0ms) begin transaction
88809
+  (0.0ms) commit transaction
88810
+  (0.0ms) begin transaction
88811
+  (0.0ms) rollback transaction
88812
+  (0.0ms) begin transaction
88813
+  (0.0ms) commit transaction
88814
+  (0.0ms) begin transaction
88815
+  (0.1ms) rollback transaction
88816
+  (0.1ms) begin transaction
88817
+  (0.0ms) commit transaction
88818
+  (0.0ms) begin transaction
88819
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-969wba'
88820
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ofd78l.csv'
88821
+  (0.2ms) SAVEPOINT active_record_1
88822
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-71qi0k.csv'
88823
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88824
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.805621"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.838662"], ["updated_at", "2017-04-06 21:10:06.838662"]]
88825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88826
+ Processing by CsvImportMagic::ImportersController#update as HTML
88827
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"}
88828
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88829
+  (0.2ms) SAVEPOINT active_record_1
88830
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
88831
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms)
88832
+ Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.3ms)
88833
+  (0.5ms) rollback transaction
88834
+  (0.1ms) begin transaction
88835
+  (0.0ms) commit transaction
88836
+  (0.0ms) begin transaction
88837
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1v2edqk'
88838
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-wsqva1.csv'
88839
+  (0.1ms) SAVEPOINT active_record_1
88840
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1iazs62.csv'
88841
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88842
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.886019"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.920949"], ["updated_at", "2017-04-06 21:10:06.920949"]]
88843
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88844
+ Processing by CsvImportMagic::ImportersController#update as HTML
88845
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
88846
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88847
+  (0.0ms) SAVEPOINT active_record_1
88848
+ SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:06.930639"], ["id", 1]]
88849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88850
+ Redirected to http://test.host/csv_import_magic/importers/1
88851
+ Completed 302 Found in 19ms (ActiveRecord: 0.4ms)
88852
+  (0.4ms) rollback transaction
88853
+  (0.1ms) begin transaction
88854
+  (0.0ms) commit transaction
88855
+  (0.0ms) begin transaction
88856
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1dx3uyh'
88857
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-i3yxok.csv'
88858
+  (0.1ms) SAVEPOINT active_record_1
88859
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-usbsqc.csv'
88860
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88861
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.967223"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.996527"], ["updated_at", "2017-04-06 21:10:06.996527"]]
88862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88863
+ Processing by CsvImportMagic::ImportersController#update as HTML
88864
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
88865
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88866
+  (0.0ms) SAVEPOINT active_record_1
88867
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:07.008017"], ["id", 1]]
88868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88869
+ Redirected to http://test.host/csv_import_magic/importers/1
88870
+ Completed 302 Found in 11ms (ActiveRecord: 0.3ms)
88871
+  (0.5ms) rollback transaction
88872
+  (0.1ms) begin transaction
88873
+  (0.0ms) commit transaction
88874
+  (0.0ms) begin transaction
88875
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-4ns6yp'
88876
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-9gvpdi.csv'
88877
+  (0.1ms) SAVEPOINT active_record_1
88878
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-13erv8z.csv'
88879
+ SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88880
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.033934"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.063486"], ["updated_at", "2017-04-06 21:10:07.063486"]]
88881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88882
+ Processing by CsvImportMagic::ImportersController#update as HTML
88883
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
88884
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88885
+  (0.1ms) SAVEPOINT active_record_1
88886
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:07.077041"], ["id", 1]]
88887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88888
+ Redirected to http://test.host/csv_import_magic/importers/1
88889
+ Completed 302 Found in 11ms (ActiveRecord: 0.2ms)
88890
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88891
+  (0.5ms) rollback transaction
88892
+  (0.1ms) begin transaction
88893
+  (0.0ms) commit transaction
88894
+  (0.0ms) begin transaction
88895
+  (0.0ms) SAVEPOINT active_record_1
88896
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88898
+ Processing by CsvImportMagic::ImportersController#create as HTML
88899
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fb956ec93e0 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-x9c4uk>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
88900
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-x9c4uk'
88901
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-18bzxnd.csv'
88902
+  (0.1ms) SAVEPOINT active_record_1
88903
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-rnvddj.csv'
88904
+ SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.110335"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:10:07.139475"], ["updated_at", "2017-04-06 21:10:07.139475"]]
88905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88906
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88907
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
88908
+ Completed 302 Found in 57ms (ActiveRecord: 0.5ms)
88909
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1
88910
+  (0.5ms) rollback transaction
88911
+  (0.1ms) begin transaction
88912
+  (0.1ms) commit transaction
88913
+  (0.0ms) begin transaction
88914
+  (0.1ms) SELECT COUNT(*) FROM "importers"
88915
+  (0.0ms) SAVEPOINT active_record_1
88916
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88917
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88918
+ Processing by CsvImportMagic::ImportersController#create as HTML
88919
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fb956d69ce8 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1f19hle>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
88920
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1f19hle'
88921
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-521l1m.csv'
88922
+  (0.1ms) SAVEPOINT active_record_1
88923
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-xfw110.csv'
88924
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.182102"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:10:07.211090"], ["updated_at", "2017-04-06 21:10:07.211090"]]
88925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88926
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88927
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
88928
+ Completed 302 Found in 55ms (ActiveRecord: 0.4ms)
88929
+  (0.1ms) SELECT COUNT(*) FROM "importers"
88930
+  (0.4ms) rollback transaction
88931
+  (0.1ms) begin transaction
88932
+  (0.0ms) commit transaction
88933
+  (0.0ms) begin transaction
88934
+  (0.0ms) SAVEPOINT active_record_1
88935
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88937
+ Processing by CsvImportMagic::ImportersController#create as HTML
88938
+ Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
88939
+  (0.0ms) SAVEPOINT active_record_1
88940
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
88941
+ Redirected to http://example.com
88942
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
88943
+  (0.4ms) rollback transaction
88944
+  (0.0ms) begin transaction
88945
+  (0.0ms) commit transaction
88946
+  (0.0ms) begin transaction
88947
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1vygulf'
88948
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-18f2zjm.csv'
88949
+  (0.1ms) SAVEPOINT active_record_1
88950
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-bfnbk4.csv'
88951
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88952
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.249210"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.283160"], ["updated_at", "2017-04-06 21:10:07.283160"]]
88953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88954
+ Processing by CsvImportMagic::ImportersController#show as HTML
88955
+ Parameters: {"id"=>"1"}
88956
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88957
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms)
88958
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
88959
+  (0.4ms) rollback transaction
88960
+  (0.0ms) begin transaction
88961
+  (0.0ms) commit transaction
88962
+  (0.0ms) begin transaction
88963
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1rvm65i'
88964
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-a5jif8.csv'
88965
+  (0.1ms) SAVEPOINT active_record_1
88966
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-113o1ym.csv'
88967
+ SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88968
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.316225"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.347304"], ["updated_at", "2017-04-06 21:10:07.347304"]]
88969
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88970
+ Processing by CsvImportMagic::ImportersController#edit as HTML
88971
+ Parameters: {"id"=>"1"}
88972
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88973
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms)
88974
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms)
88975
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88976
+  (0.6ms) rollback transaction
88977
+  (0.1ms) begin transaction
88978
+  (0.0ms) commit transaction
88979
+  (0.0ms) begin transaction
88980
+  (0.1ms) rollback transaction
88981
+  (0.0ms) begin transaction
88982
+  (0.0ms) commit transaction
88983
+  (0.0ms) begin transaction
88984
+  (0.0ms) rollback transaction
88985
+  (0.0ms) begin transaction
88986
+  (0.0ms) commit transaction
88987
+  (0.0ms) begin transaction
88988
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-cgz1s4'
88989
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ema7k5.csv'
88990
+  (0.1ms) SAVEPOINT active_record_1
88991
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-ickz30.csv'
88992
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88993
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.404544"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.437228"], ["updated_at", "2017-04-06 21:10:07.437228"]]
88994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88995
+  (0.4ms) rollback transaction
88996
+  (0.1ms) begin transaction
88997
+  (0.0ms) commit transaction
88998
+  (0.0ms) begin transaction
88999
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-3jco1i'
89000
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-whfijq.csv'
89001
+  (0.1ms) SAVEPOINT active_record_1
89002
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ljxxmf.csv'
89003
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89004
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.464483"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.491922"], ["updated_at", "2017-04-06 21:10:07.491922"]]
89005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89006
+  (0.4ms) rollback transaction
89007
+  (0.0ms) begin transaction
89008
+  (0.1ms) commit transaction
89009
+  (0.1ms) begin transaction
89010
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-10vbh5e'
89011
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-15x2xma.csv'
89012
+  (0.1ms) SAVEPOINT active_record_1
89013
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-ae4xkr.csv'
89014
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89015
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.514588"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.547365"], ["updated_at", "2017-04-06 21:10:07.547365"]]
89016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89017
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89018
+  (0.3ms) rollback transaction
89019
+  (0.1ms) begin transaction
89020
+  (0.1ms) commit transaction
89021
+  (0.0ms) begin transaction
89022
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1diabab'
89023
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-2agf65.csv'
89024
+  (0.1ms) SAVEPOINT active_record_1
89025
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-19t4a4d.csv'
89026
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89027
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.569306"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.600028"], ["updated_at", "2017-04-06 21:10:07.600028"]]
89028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89029
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89030
+  (0.5ms) rollback transaction
89031
+  (0.1ms) begin transaction
89032
+  (0.0ms) commit transaction
89033
+  (0.0ms) begin transaction
89034
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1nv519z'
89035
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-htgfpg.csv'
89036
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-16przre.csv'
89037
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ue8pst.csv'
89038
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ju5ydf.csv'
89039
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-qcj95k.csv'
89040
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1m32vgb.csv'
89041
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-p2pt1n.csv'
89042
+  (0.1ms) rollback transaction
89043
+  (0.1ms) begin transaction
89044
+  (0.0ms) commit transaction
89045
+  (0.1ms) begin transaction
89046
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-gdcud3'
89047
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1dthstp.csv'
89048
+  (0.1ms) rollback transaction
89049
+  (0.0ms) begin transaction
89050
+  (0.1ms) commit transaction
89051
+  (0.1ms) begin transaction
89052
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1af9yrt'
89053
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-se5kmw.csv'
89054
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170406-94183-8lj9te'
89055
+  (0.1ms) rollback transaction
89056
+  (0.1ms) begin transaction
89057
+  (0.0ms) commit transaction
89058
+  (0.0ms) begin transaction
89059
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-j2tynj'
89060
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1191fva.csv'
89061
+  (0.2ms) rollback transaction
89062
+  (0.1ms) begin transaction
89063
+  (0.0ms) commit transaction
89064
+  (0.0ms) begin transaction
89065
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-riq2p6'
89066
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1wht370.csv'
89067
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-3nosjt.csv'
89068
+  (0.1ms) rollback transaction
89069
+  (0.2ms) begin transaction
89070
+  (0.0ms) commit transaction
89071
+  (0.0ms) begin transaction
89072
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-ahuyhb'
89073
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-z20zx8.csv'
89074
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1yonfq0.csv'
89075
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-rtnc79.csv'
89076
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-l2th65.csv'
89077
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-impp9r.csv'
89078
+  (0.1ms) rollback transaction
89079
+  (0.1ms) begin transaction
89080
+  (0.1ms) commit transaction
89081
+  (0.0ms) begin transaction
89082
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-19h97e'
89083
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-nfyya.csv'
89084
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-9x81pf.csv'
89085
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-2qgzy4.csv'
89086
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ol2ebe.csv'
89087
+ [paperclip] Content Type Spoof: Filename companies.csv (application/vnd.ms-excel from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
89088
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1j2yqtc.csv'
89089
+ [paperclip] Content Type Spoof: Filename companies.csv (image/png from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
89090
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1alk5tu.csv'
89091
+ [paperclip] Content Type Spoof: Filename companies.csv (image/gif from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
89092
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1czushh.csv'
89093
+  (0.1ms) rollback transaction
89094
+  (0.1ms) begin transaction
89095
+  (0.0ms) commit transaction
89096
+  (0.1ms) begin transaction
89097
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1qhqxn'
89098
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1y856sk.csv'
89099
+  (0.1ms) SAVEPOINT active_record_1
89100
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1nb97w.csv'
89101
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89102
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:08.142818"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:08.178256"], ["updated_at", "2017-04-06 21:10:08.178256"]]
89103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89104
+  (0.5ms) rollback transaction
89105
+  (0.1ms) begin transaction
89106
+  (0.0ms) commit transaction
89107
+  (0.0ms) begin transaction
89108
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-lx71g7'
89109
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-l9u02.csv'
89110
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-lsqji1.csv'
89111
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-qhtp6s'
89112
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-181f536.csv'
89113
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-15xzqrk.csv'
89114
+  (0.1ms) rollback transaction
89115
+  (0.0ms) begin transaction
89116
+  (0.0ms) commit transaction
89117
+  (0.0ms) begin transaction
89118
+  (0.0ms) rollback transaction
89119
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
89120
+ Migrating to AddsAdditionalDataToImporters (20170405100034)
89121
+  (0.0ms) begin transaction
89122
+  (0.4ms) ALTER TABLE "importers" ADD "additional_data" varchar
89123
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170405100034"]]
89124
+  (1.5ms) commit transaction
89125
+ Migrating to AddsAdditionalAttributesToCompany (20170505100034)
89126
+  (0.1ms) begin transaction
89127
+  (0.3ms) ALTER TABLE "companies" ADD "one_additional_attribute" varchar
89128
+  (0.2ms) ALTER TABLE "companies" ADD "other_additional_attribute" varchar
89129
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170505100034"]]
89130
+  (0.6ms) commit transaction
89131
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
89132
+  (1.6ms) DELETE FROM "companies";
89133
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
89134
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';
89135
+  (0.8ms) DELETE FROM "importers";
89136
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
89137
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';
89138
+  (0.8ms) DELETE FROM "users";
89139
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
89140
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
89141
+  (0.0ms) begin transaction
89142
+  (0.0ms) commit transaction
89143
+  (0.0ms) begin transaction
89144
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-5iemyf'
89145
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-buo6v1.csv'
89146
+  (0.0ms) SAVEPOINT active_record_1
89147
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-dysjmq.csv'
89148
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89149
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.341367"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.396467"], ["updated_at", "2017-04-06 21:10:32.396467"]]
89150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89151
+  (0.0ms) SAVEPOINT active_record_1
89152
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89154
+  (0.4ms) rollback transaction
89155
+  (0.1ms) begin transaction
89156
+  (0.0ms) commit transaction
89157
+  (0.0ms) begin transaction
89158
+  (0.1ms) rollback transaction
89159
+  (0.1ms) begin transaction
89160
+  (0.0ms) commit transaction
89161
+  (0.0ms) begin transaction
89162
+  (0.1ms) rollback transaction
89163
+  (0.1ms) begin transaction
89164
+  (0.0ms) commit transaction
89165
+  (0.0ms) begin transaction
89166
+  (0.1ms) rollback transaction
89167
+  (0.0ms) begin transaction
89168
+  (0.1ms) commit transaction
89169
+  (0.0ms) begin transaction
89170
+  (0.1ms) rollback transaction
89171
+  (0.0ms) begin transaction
89172
+  (0.0ms) commit transaction
89173
+  (0.0ms) begin transaction
89174
+  (0.9ms) rollback transaction
89175
+  (0.1ms) begin transaction
89176
+  (0.0ms) commit transaction
89177
+  (0.0ms) begin transaction
89178
+  (0.1ms) rollback transaction
89179
+  (0.0ms) begin transaction
89180
+  (0.0ms) commit transaction
89181
+  (0.0ms) begin transaction
89182
+  (0.0ms) rollback transaction
89183
+  (0.0ms) begin transaction
89184
+  (0.0ms) commit transaction
89185
+  (0.0ms) begin transaction
89186
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170406-94335-zo6dk7'
89187
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94335-x43pkq.csv'
89188
+  (0.1ms) SAVEPOINT active_record_1
89189
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94335-12wp5p7.csv'
89190
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89191
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-04-06 21:10:32.487182"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.524479"], ["updated_at", "2017-04-06 21:10:32.524479"]]
89192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89193
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89194
+ Company Load (0.4ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
89195
+  (0.1ms) SAVEPOINT active_record_1
89196
+ SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
89197
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
89198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89199
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89200
+  (0.0ms) SAVEPOINT active_record_1
89201
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170406-94335-1j4fnr0.csv'
89202
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67628934b218fc18f00c226e1de766020170406-94335-ji1kqx.csv'
89203
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67628934b218fc18f00c226e1de766020170406-94335-38ca15.csv'
89204
+ SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170406-94335-1j4fnr0.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-04-06 21:10:32.619639"], ["updated_at", "2017-04-06 21:10:32.646822"], ["id", 1]]
89205
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89206
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89207
+  (0.5ms) rollback transaction
89208
+  (0.0ms) begin transaction
89209
+  (0.0ms) commit transaction
89210
+  (0.0ms) begin transaction
89211
+  (0.1ms) rollback transaction
89212
+  (0.1ms) begin transaction
89213
+  (0.0ms) commit transaction
89214
+  (0.0ms) begin transaction
89215
+  (0.1ms) rollback transaction
89216
+  (0.0ms) begin transaction
89217
+  (0.0ms) commit transaction
89218
+  (0.0ms) begin transaction
89219
+  (0.0ms) rollback transaction
89220
+  (0.0ms) begin transaction
89221
+  (0.0ms) commit transaction
89222
+  (0.0ms) begin transaction
89223
+  (0.0ms) rollback transaction
89224
+  (0.0ms) begin transaction
89225
+  (0.0ms) commit transaction
89226
+  (0.0ms) begin transaction
89227
+  (0.0ms) rollback transaction
89228
+  (0.0ms) begin transaction
89229
+  (0.0ms) commit transaction
89230
+  (0.0ms) begin transaction
89231
+  (0.1ms) rollback transaction
89232
+  (0.1ms) begin transaction
89233
+  (0.1ms) commit transaction
89234
+  (0.0ms) begin transaction
89235
+  (0.2ms) SELECT COUNT(*) FROM "companies"
89236
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-zz4t51'
89237
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-qrggwu.csv'
89238
+  (0.1ms) SAVEPOINT active_record_1
89239
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1m0xvku.csv'
89240
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89241
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.732849"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.764463"], ["updated_at", "2017-04-06 21:10:32.764463"]]
89242
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89243
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89244
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
89245
+  (0.0ms) SAVEPOINT active_record_1
89246
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]
89247
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
89248
+ SQL (0.0ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]
89249
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89250
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89251
+  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"
89252
+  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"
89253
+  (0.5ms) rollback transaction
89254
+  (0.1ms) begin transaction
89255
+  (0.0ms) commit transaction
89256
+  (0.0ms) begin transaction
89257
+  (0.0ms) SAVEPOINT active_record_1
89258
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89260
+  (0.0ms) SELECT COUNT(*) FROM "companies"
89261
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-ezecx0'
89262
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1m2at58.csv'
89263
+  (0.1ms) SAVEPOINT active_record_1
89264
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-z6cjot.csv'
89265
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89266
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.800785"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-04-06 21:10:32.831683"], ["updated_at", "2017-04-06 21:10:32.831683"]]
89267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89268
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89269
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
89270
+ Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]
89271
+  (0.0ms) SAVEPOINT active_record_1
89272
+ SQL (0.1ms) INSERT INTO "companies" ("user_id", "name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["user_id", 1], ["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
89273
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]]
89274
+ SQL (0.0ms) INSERT INTO "companies" ("user_id", "name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["user_id", 1], ["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]
89275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89276
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89277
+  (0.1ms) SELECT "companies"."name" FROM "companies"
89278
+  (0.1ms) SELECT "companies"."street" FROM "companies"
89279
+  (0.1ms) SELECT "companies"."number" FROM "companies"
89280
+  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"
89281
+  (0.1ms) SELECT "companies"."city" FROM "companies"
89282
+  (0.1ms) SELECT "companies"."state" FROM "companies"
89283
+  (0.1ms) SELECT "companies"."user_id" FROM "companies"
89284
+  (0.5ms) rollback transaction
89285
+  (0.1ms) begin transaction
89286
+  (0.0ms) commit transaction
89287
+  (0.0ms) begin transaction
89288
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89289
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1ggrs4a'
89290
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1cass8b.csv'
89291
+  (0.1ms) SAVEPOINT active_record_1
89292
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1bnoo63.csv'
89293
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89294
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.881015"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.912060"], ["updated_at", "2017-04-06 21:10:32.912060"]]
89295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89296
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89297
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
89298
+  (0.0ms) SAVEPOINT active_record_1
89299
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
89300
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
89301
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]
89302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89303
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89304
+  (0.1ms) SELECT "companies"."name" FROM "companies"
89305
+  (0.0ms) SELECT "companies"."street" FROM "companies"
89306
+  (0.0ms) SELECT "companies"."number" FROM "companies"
89307
+  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"
89308
+  (0.0ms) SELECT "companies"."city" FROM "companies"
89309
+  (0.1ms) SELECT "companies"."state" FROM "companies"
89310
+  (0.0ms) SELECT "companies"."user_id" FROM "companies"
89311
+  (0.4ms) rollback transaction
89312
+  (0.1ms) begin transaction
89313
+  (0.0ms) commit transaction
89314
+  (0.0ms) begin transaction
89315
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89316
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-18dhz62'
89317
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1nn0wr5.csv'
89318
+  (0.1ms) SAVEPOINT active_record_1
89319
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1etw7vu.csv'
89320
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89321
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.945953"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.976275"], ["updated_at", "2017-04-06 21:10:32.976275"]]
89322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89323
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89324
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
89325
+  (0.0ms) SAVEPOINT active_record_1
89326
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
89327
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
89328
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]
89329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89330
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89331
+  (0.1ms) SELECT "companies"."name" FROM "companies"
89332
+  (0.1ms) SELECT "companies"."street" FROM "companies"
89333
+  (0.1ms) SELECT "companies"."number" FROM "companies"
89334
+  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"
89335
+  (0.1ms) SELECT "companies"."city" FROM "companies"
89336
+  (0.1ms) SELECT "companies"."state" FROM "companies"
89337
+  (0.1ms) SELECT "companies"."user_id" FROM "companies"
89338
+  (0.5ms) rollback transaction
89339
+  (0.1ms) begin transaction
89340
+  (0.0ms) commit transaction
89341
+  (0.1ms) begin transaction
89342
+  (0.0ms) rollback transaction
89343
+  (0.0ms) begin transaction
89344
+  (0.0ms) commit transaction
89345
+  (0.0ms) begin transaction
89346
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-11ndndf'
89347
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-197reje.csv'
89348
+  (0.1ms) SAVEPOINT active_record_1
89349
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-xioz76.csv'
89350
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89351
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.013180"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.043059"], ["updated_at", "2017-04-06 21:10:33.043059"]]
89352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89353
+  (0.4ms) rollback transaction
89354
+  (0.1ms) begin transaction
89355
+  (0.0ms) commit transaction
89356
+  (0.0ms) begin transaction
89357
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1pdqtzq'
89358
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-2e79gw.csv'
89359
+  (0.1ms) SAVEPOINT active_record_1
89360
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-174p5xb.csv'
89361
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89362
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.068759"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.098712"], ["updated_at", "2017-04-06 21:10:33.098712"]]
89363
+  (0.2ms) RELEASE SAVEPOINT active_record_1
89364
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89365
+  (0.3ms) rollback transaction
89366
+  (0.1ms) begin transaction
89367
+  (0.0ms) commit transaction
89368
+  (0.0ms) begin transaction
89369
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1bjk0a6'
89370
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-23j6nx.csv'
89371
+  (0.1ms) SAVEPOINT active_record_1
89372
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1t65jj0.csv'
89373
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89374
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.120960"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.150629"], ["updated_at", "2017-04-06 21:10:33.150629"]]
89375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89376
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89377
+  (0.3ms) rollback transaction
89378
+  (0.1ms) begin transaction
89379
+  (0.0ms) commit transaction
89380
+  (0.0ms) begin transaction
89381
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-c4y247'
89382
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1ouf5m3.csv'
89383
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-wtpx0d.csv'
89384
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1lk2io9.csv'
89385
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1xbvxbq.csv'
89386
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-17zb3x4.csv'
89387
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-irs9fh.csv'
89388
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1p18e0d.csv'
89389
+  (0.1ms) rollback transaction
89390
+  (0.0ms) begin transaction
89391
+  (0.0ms) commit transaction
89392
+  (0.0ms) begin transaction
89393
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-xouwr0'
89394
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-n82yu6.csv'
89395
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-kt40z9.csv'
89396
+  (0.1ms) rollback transaction
89397
+  (0.1ms) begin transaction
89398
+  (0.0ms) commit transaction
89399
+  (0.0ms) begin transaction
89400
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1526rit'
89401
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-krlyux.csv'
89402
+  (0.1ms) rollback transaction
89403
+  (0.1ms) begin transaction
89404
+  (0.0ms) commit transaction
89405
+  (0.0ms) begin transaction
89406
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-6yjojo'
89407
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1uub4yb.csv'
89408
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170406-94335-4x1dlh'
89409
+  (0.1ms) rollback transaction
89410
+  (0.1ms) begin transaction
89411
+  (0.0ms) commit transaction
89412
+  (0.0ms) begin transaction
89413
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-o048iq'
89414
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-ehfnxg.csv'
89415
+  (0.1ms) rollback transaction
89416
+  (0.1ms) begin transaction
89417
+  (0.1ms) commit transaction
89418
+  (0.0ms) begin transaction
89419
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-t71655'
89420
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-4hpgj6.csv'
89421
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-uvwqxi.csv'
89422
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1jvsfzm.csv'
89423
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-d2xqzt.csv'
89424
+ [paperclip] Content Type Spoof: Filename companies.csv (application/vnd.ms-excel from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
89425
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1glch99.csv'
89426
+ [paperclip] Content Type Spoof: Filename companies.csv (image/png from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
89427
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1sljfp7.csv'
89428
+ [paperclip] Content Type Spoof: Filename companies.csv (image/gif from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
89429
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1yh2ai9.csv'
89430
+  (0.1ms) rollback transaction
89431
+  (0.1ms) begin transaction
89432
+  (0.0ms) commit transaction
89433
+  (0.0ms) begin transaction
89434
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1496tyc'
89435
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1nil60z.csv'
89436
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1k8osrc.csv'
89437
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-n3ctmq.csv'
89438
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1w4j8w3.csv'
89439
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1c8wbc6.csv'
89440
+  (0.1ms) rollback transaction
89441
+  (0.1ms) begin transaction
89442
+  (0.0ms) commit transaction
89443
+  (0.0ms) begin transaction
89444
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-16hncac'
89445
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-v12n7p.csv'
89446
+  (0.1ms) SAVEPOINT active_record_1
89447
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1bvgk9.csv'
89448
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89449
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.667534"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.698267"], ["updated_at", "2017-04-06 21:10:33.698267"]]
89450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89451
+  (0.5ms) rollback transaction
89452
+  (0.1ms) begin transaction
89453
+  (0.0ms) commit transaction
89454
+  (0.0ms) begin transaction
89455
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1t7titu'
89456
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-auakko.csv'
89457
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-17pu9u7.csv'
89458
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1ymgdl1'
89459
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-esn3ia.csv'
89460
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1i0hgxt.csv'
89461
+  (0.1ms) rollback transaction
89462
+  (0.1ms) begin transaction
89463
+  (0.0ms) commit transaction
89464
+  (0.0ms) begin transaction
89465
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1p5iztc'
89466
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-a3wd0r.csv'
89467
+  (0.1ms) SAVEPOINT active_record_1
89468
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-132p6rv.csv'
89469
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89470
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.820664"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.852302"], ["updated_at", "2017-04-06 21:10:33.852302"]]
89471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89472
+  (0.4ms) rollback transaction
89473
+  (0.1ms) begin transaction
89474
+  (0.0ms) commit transaction
89475
+  (0.0ms) begin transaction
89476
+  (0.0ms) rollback transaction
89477
+  (0.0ms) begin transaction
89478
+  (0.0ms) commit transaction
89479
+  (0.0ms) begin transaction
89480
+  (0.0ms) rollback transaction
89481
+  (0.1ms) begin transaction
89482
+  (0.0ms) commit transaction
89483
+  (0.0ms) begin transaction
89484
+  (0.0ms) rollback transaction
89485
+  (0.0ms) begin transaction
89486
+  (0.0ms) commit transaction
89487
+  (0.0ms) begin transaction
89488
+  (0.1ms) rollback transaction
89489
+  (0.0ms) begin transaction
89490
+  (0.0ms) commit transaction
89491
+  (0.0ms) begin transaction
89492
+  (0.0ms) rollback transaction
89493
+  (0.0ms) begin transaction
89494
+  (0.0ms) commit transaction
89495
+  (0.1ms) begin transaction
89496
+  (0.0ms) rollback transaction
89497
+  (0.1ms) begin transaction
89498
+  (0.0ms) commit transaction
89499
+  (0.0ms) begin transaction
89500
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-aodz9x'
89501
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1qf6m5h.csv'
89502
+  (0.1ms) SAVEPOINT active_record_1
89503
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-10doagi.csv'
89504
+ SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89505
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.882908"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.915581"], ["updated_at", "2017-04-06 21:10:33.915581"]]
89506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89507
+  (0.4ms) rollback transaction
89508
+  (0.1ms) begin transaction
89509
+  (0.1ms) commit transaction
89510
+  (0.0ms) begin transaction
89511
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-10fwyos'
89512
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-157d091.csv'
89513
+  (0.3ms) SAVEPOINT active_record_1
89514
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1utzpq.csv'
89515
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89516
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.940285"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.971706"], ["updated_at", "2017-04-06 21:10:33.971706"]]
89517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89518
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89519
+  (0.0ms) SAVEPOINT active_record_1
89520
+ SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-04-06 21:10:33.979619"], ["id", 1]]
89521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89522
+  (0.5ms) rollback transaction
89523
+  (0.1ms) begin transaction
89524
+  (0.0ms) commit transaction
89525
+  (0.0ms) begin transaction
89526
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-aw7y4o'
89527
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-10inv1x.csv'
89528
+  (0.1ms) SAVEPOINT active_record_1
89529
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-467v28.csv'
89530
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89531
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.004243"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.034248"], ["updated_at", "2017-04-06 21:10:34.034248"]]
89532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89533
+ Processing by CsvImportMagic::ImportersController#update as HTML
89534
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
89535
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89536
+  (0.1ms) SAVEPOINT active_record_1
89537
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:34.051478"], ["id", 1]]
89538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89539
+ Redirected to http://test.host/csv_import_magic/importers/1
89540
+ Completed 302 Found in 11ms (ActiveRecord: 0.3ms)
89541
+  (0.5ms) rollback transaction
89542
+  (0.1ms) begin transaction
89543
+  (0.1ms) commit transaction
89544
+  (0.0ms) begin transaction
89545
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-15fskh'
89546
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1aazu8h.csv'
89547
+  (0.1ms) SAVEPOINT active_record_1
89548
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-tyjt4g.csv'
89549
+ SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89550
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.081544"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.114631"], ["updated_at", "2017-04-06 21:10:34.114631"]]
89551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89552
+ Processing by CsvImportMagic::ImportersController#update as HTML
89553
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
89554
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89555
+  (0.1ms) SAVEPOINT active_record_1
89556
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:34.129712"], ["id", 1]]
89557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89558
+ Redirected to http://test.host/csv_import_magic/importers/1
89559
+ Completed 302 Found in 14ms (ActiveRecord: 0.4ms)
89560
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89561
+  (0.5ms) rollback transaction
89562
+  (0.0ms) begin transaction
89563
+  (0.0ms) commit transaction
89564
+  (0.0ms) begin transaction
89565
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1lyy8qu'
89566
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-m4tiqa.csv'
89567
+  (0.1ms) SAVEPOINT active_record_1
89568
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-drds2f.csv'
89569
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89570
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.157464"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.188189"], ["updated_at", "2017-04-06 21:10:34.188189"]]
89571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89572
+ Processing by CsvImportMagic::ImportersController#update as HTML
89573
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
89574
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89575
+  (0.1ms) SAVEPOINT active_record_1
89576
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:34.200925"], ["id", 1]]
89577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89578
+ Redirected to http://test.host/csv_import_magic/importers/1
89579
+ Completed 302 Found in 10ms (ActiveRecord: 0.3ms)
89580
+  (0.5ms) rollback transaction
89581
+  (0.1ms) begin transaction
89582
+  (0.0ms) commit transaction
89583
+  (0.0ms) begin transaction
89584
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-9dl7op'
89585
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-gizpna.csv'
89586
+  (0.1ms) SAVEPOINT active_record_1
89587
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1bhgnta.csv'
89588
+ SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89589
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.228147"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.263201"], ["updated_at", "2017-04-06 21:10:34.263201"]]
89590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89591
+ Processing by CsvImportMagic::ImportersController#update as HTML
89592
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"}
89593
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89594
+  (0.0ms) SAVEPOINT active_record_1
89595
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
89596
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms)
89597
+ Completed 200 OK in 19ms (Views: 14.8ms | ActiveRecord: 0.1ms)
89598
+  (0.5ms) rollback transaction
89599
+  (0.0ms) begin transaction
89600
+  (0.0ms) commit transaction
89601
+  (0.0ms) begin transaction
89602
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-8ytp0n'
89603
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1ndpylr.csv'
89604
+  (0.1ms) SAVEPOINT active_record_1
89605
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1s44dn9.csv'
89606
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89607
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.311498"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.344197"], ["updated_at", "2017-04-06 21:10:34.344197"]]
89608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89609
+ Processing by CsvImportMagic::ImportersController#show as HTML
89610
+ Parameters: {"id"=>"1"}
89611
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89612
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms)
89613
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
89614
+  (0.6ms) rollback transaction
89615
+  (0.1ms) begin transaction
89616
+  (0.0ms) commit transaction
89617
+  (0.0ms) begin transaction
89618
+  (0.0ms) SAVEPOINT active_record_1
89619
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89621
+ Processing by CsvImportMagic::ImportersController#create as HTML
89622
+ Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
89623
+  (0.0ms) SAVEPOINT active_record_1
89624
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
89625
+ Redirected to http://example.com
89626
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
89627
+  (0.5ms) rollback transaction
89628
+  (0.1ms) begin transaction
89629
+  (0.1ms) commit transaction
89630
+  (0.1ms) begin transaction
89631
+  (0.0ms) SAVEPOINT active_record_1
89632
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89633
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89634
+ Processing by CsvImportMagic::ImportersController#create as HTML
89635
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fddfaae0c38 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-id4gko>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
89636
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-id4gko'
89637
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-17ofw9b.csv'
89638
+  (0.1ms) SAVEPOINT active_record_1
89639
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-12lirhh.csv'
89640
+ SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.395067"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:10:34.423319"], ["updated_at", "2017-04-06 21:10:34.423319"]]
89641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89642
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89643
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
89644
+ Completed 302 Found in 58ms (ActiveRecord: 0.6ms)
89645
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1
89646
+  (0.5ms) rollback transaction
89647
+  (0.1ms) begin transaction
89648
+  (0.1ms) commit transaction
89649
+  (0.1ms) begin transaction
89650
+  (0.1ms) SELECT COUNT(*) FROM "importers"
89651
+  (0.0ms) SAVEPOINT active_record_1
89652
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89654
+ Processing by CsvImportMagic::ImportersController#create as HTML
89655
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fddfa341fe0 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-11jzi30>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
89656
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-11jzi30'
89657
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1pl5rq4.csv'
89658
+  (0.1ms) SAVEPOINT active_record_1
89659
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1el7xps.csv'
89660
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.468931"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:10:34.500232"], ["updated_at", "2017-04-06 21:10:34.500232"]]
89661
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89662
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89663
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
89664
+ Completed 302 Found in 74ms (ActiveRecord: 0.5ms)
89665
+  (0.1ms) SELECT COUNT(*) FROM "importers"
89666
+  (0.4ms) rollback transaction
89667
+  (0.1ms) begin transaction
89668
+  (0.0ms) commit transaction
89669
+  (0.0ms) begin transaction
89670
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1f7j7en'
89671
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1cvbqas.csv'
89672
+  (0.1ms) SAVEPOINT active_record_1
89673
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1vrn3gr.csv'
89674
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89675
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.544195"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.576518"], ["updated_at", "2017-04-06 21:10:34.576518"]]
89676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89677
+ Processing by CsvImportMagic::ImportersController#edit as HTML
89678
+ Parameters: {"id"=>"1"}
89679
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89680
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms)
89681
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)
89682
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89683
+  (0.4ms) rollback transaction
89684
+  (0.9ms) DELETE FROM "companies";
89685
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
89686
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';
89687
+  (0.7ms) DELETE FROM "importers";
89688
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
89689
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';
89690
+  (0.7ms) DELETE FROM "users";
89691
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
89692
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
89693
+  (0.0ms) begin transaction
89694
+  (0.0ms) commit transaction
89695
+  (0.0ms) begin transaction
89696
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1gkt0ny'
89697
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-14lmszr.csv'
89698
+  (0.1ms) SAVEPOINT active_record_1
89699
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-w1ee6f.csv'
89700
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89701
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:47.735103"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:47.799793"], ["updated_at", "2017-06-02 23:16:47.799793"]]
89702
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89703
+  (0.0ms) SAVEPOINT active_record_1
89704
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89706
+  (0.4ms) rollback transaction
89707
+  (0.0ms) begin transaction
89708
+  (0.0ms) commit transaction
89709
+  (0.0ms) begin transaction
89710
+  (0.1ms) rollback transaction
89711
+  (0.0ms) begin transaction
89712
+  (0.0ms) commit transaction
89713
+  (0.0ms) begin transaction
89714
+  (0.1ms) rollback transaction
89715
+  (0.1ms) begin transaction
89716
+  (0.0ms) commit transaction
89717
+  (0.0ms) begin transaction
89718
+  (0.0ms) SAVEPOINT active_record_1
89719
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89721
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89722
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-aohpk'
89723
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1fbex16.csv'
89724
+  (0.1ms) SAVEPOINT active_record_1
89725
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-4xgnp1.csv'
89726
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89727
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:47.847915"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-06-02 23:16:47.882882"], ["updated_at", "2017-06-02 23:16:47.882882"]]
89728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89729
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89730
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
89731
+  (0.2ms) SELECT COUNT(*) FROM "companies"
89732
+  (0.5ms) rollback transaction
89733
+  (0.1ms) begin transaction
89734
+  (0.0ms) commit transaction
89735
+  (0.0ms) begin transaction
89736
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89737
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1ryd4t2'
89738
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1f11ne0.csv'
89739
+  (0.1ms) SAVEPOINT active_record_1
89740
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-17jpvog.csv'
89741
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89742
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.035680"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.067807"], ["updated_at", "2017-06-02 23:16:48.067807"]]
89743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89744
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89745
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89746
+  (0.4ms) rollback transaction
89747
+  (0.1ms) begin transaction
89748
+  (0.0ms) commit transaction
89749
+  (0.0ms) begin transaction
89750
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89751
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-cg6zvk'
89752
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1qupuyh.csv'
89753
+  (0.1ms) SAVEPOINT active_record_1
89754
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1sykpjr.csv'
89755
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89756
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.099437"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.133505"], ["updated_at", "2017-06-02 23:16:48.133505"]]
89757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89758
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89759
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89760
+  (0.4ms) rollback transaction
89761
+  (0.1ms) begin transaction
89762
+  (0.0ms) commit transaction
89763
+  (0.0ms) begin transaction
89764
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89765
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-zvua3f'
89766
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1c71b22.csv'
89767
+  (0.1ms) SAVEPOINT active_record_1
89768
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-5tl7zz.csv'
89769
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89770
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.164181"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.197836"], ["updated_at", "2017-06-02 23:16:48.197836"]]
89771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89772
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89773
+  (0.1ms) SELECT COUNT(*) FROM "companies"
89774
+  (0.5ms) rollback transaction
89775
+  (0.1ms) begin transaction
89776
+  (0.0ms) commit transaction
89777
+  (0.0ms) begin transaction
89778
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170602-53937-dtcipa'
89779
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-53937-56r4fu.csv'
89780
+  (0.1ms) SAVEPOINT active_record_1
89781
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-53937-q5a3r.csv'
89782
+ SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89783
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-06-02 23:16:48.230909"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.263831"], ["updated_at", "2017-06-02 23:16:48.263831"]]
89784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89785
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89786
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
89787
+  (0.0ms) SAVEPOINT active_record_1
89788
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
89789
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
89790
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89791
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89792
+  (0.0ms) SAVEPOINT active_record_1
89793
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170602-53937-1jv81f1.csv'
89794
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6c674803fdfc79e87f644bd03561862c20170602-53937-15ucexl.csv'
89795
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6c674803fdfc79e87f644bd03561862c20170602-53937-8sl7gk.csv'
89796
+ SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170602-53937-1jv81f1.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-06-02 23:16:48.319935"], ["updated_at", "2017-06-02 23:16:48.353289"], ["id", 1]]
89797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89798
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89799
+  (0.6ms) rollback transaction
89800
+  (0.1ms) begin transaction
89801
+  (0.2ms) commit transaction
89802
+  (0.0ms) begin transaction
89803
+  (0.0ms) rollback transaction
89804
+  (0.0ms) begin transaction
89805
+  (0.0ms) commit transaction
89806
+  (0.1ms) begin transaction
89807
+  (0.0ms) rollback transaction
89808
+  (0.1ms) begin transaction
89809
+  (0.0ms) commit transaction
89810
+  (0.0ms) begin transaction
89811
+  (0.0ms) rollback transaction
89812
+  (0.1ms) begin transaction
89813
+  (0.0ms) commit transaction
89814
+  (0.0ms) begin transaction
89815
+  (0.0ms) rollback transaction
89816
+  (0.0ms) begin transaction
89817
+  (0.1ms) commit transaction
89818
+  (0.0ms) begin transaction
89819
+  (0.0ms) rollback transaction
89820
+  (0.0ms) begin transaction
89821
+  (0.0ms) commit transaction
89822
+  (0.1ms) begin transaction
89823
+  (0.0ms) rollback transaction
89824
+  (0.0ms) begin transaction
89825
+  (0.0ms) commit transaction
89826
+  (0.0ms) begin transaction
89827
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1b16djs'
89828
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1s17sw7.csv'
89829
+  (0.1ms) SAVEPOINT active_record_1
89830
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1k1jgyl.csv'
89831
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89832
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.391571"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.425430"], ["updated_at", "2017-06-02 23:16:48.425430"]]
89833
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89834
+  (0.6ms) rollback transaction
89835
+  (0.1ms) begin transaction
89836
+  (0.0ms) commit transaction
89837
+  (0.0ms) begin transaction
89838
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1voxwtc'
89839
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-12gccoc.csv'
89840
+  (0.1ms) SAVEPOINT active_record_1
89841
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-pfqziv.csv'
89842
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89843
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.468976"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.503161"], ["updated_at", "2017-06-02 23:16:48.503161"]]
89844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89845
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89846
+  (0.0ms) SAVEPOINT active_record_1
89847
+ SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-06-02 23:16:48.509344"], ["id", 1]]
89848
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89849
+  (0.4ms) rollback transaction
89850
+  (0.1ms) begin transaction
89851
+  (0.0ms) commit transaction
89852
+  (0.0ms) begin transaction
89853
+  (0.1ms) rollback transaction
89854
+  (0.1ms) begin transaction
89855
+  (0.0ms) commit transaction
89856
+  (0.0ms) begin transaction
89857
+  (0.1ms) rollback transaction
89858
+  (0.1ms) begin transaction
89859
+  (0.0ms) commit transaction
89860
+  (0.0ms) begin transaction
89861
+  (0.1ms) rollback transaction
89862
+  (0.0ms) begin transaction
89863
+  (0.0ms) commit transaction
89864
+  (0.0ms) begin transaction
89865
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-9ga6z6'
89866
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1e95j83.csv'
89867
+  (0.1ms) SAVEPOINT active_record_1
89868
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-nw16tg.csv'
89869
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89870
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.565948"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.603087"], ["updated_at", "2017-06-02 23:16:48.603087"]]
89871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89872
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89873
+  (0.6ms) rollback transaction
89874
+  (0.1ms) begin transaction
89875
+  (0.0ms) commit transaction
89876
+  (0.0ms) begin transaction
89877
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-3yn7f0'
89878
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-6umc7p.csv'
89879
+  (0.2ms) SAVEPOINT active_record_1
89880
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-elj0kh.csv'
89881
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89882
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.630884"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.667848"], ["updated_at", "2017-06-02 23:16:48.667848"]]
89883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89884
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
89885
+  (0.3ms) rollback transaction
89886
+  (0.1ms) begin transaction
89887
+  (0.0ms) commit transaction
89888
+  (0.0ms) begin transaction
89889
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-fpgecf'
89890
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1r1xzyk.csv'
89891
+  (0.1ms) SAVEPOINT active_record_1
89892
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1hwony8.csv'
89893
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89894
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.691559"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.726727"], ["updated_at", "2017-06-02 23:16:48.726727"]]
89895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89896
+  (0.4ms) rollback transaction
89897
+  (0.1ms) begin transaction
89898
+  (0.0ms) commit transaction
89899
+  (0.0ms) begin transaction
89900
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-54r3nn'
89901
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1ba6341.csv'
89902
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1kf212h.csv'
89903
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-zdtvfo.csv'
89904
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-cxpg3m.csv'
89905
+ [paperclip] Content Type Spoof: Filename companies.csv (application/vnd.ms-excel from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
89906
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-14xnsum.csv'
89907
+ [paperclip] Content Type Spoof: Filename companies.csv (image/png from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
89908
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-mycw4i.csv'
89909
+ [paperclip] Content Type Spoof: Filename companies.csv (image/gif from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
89910
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ydn8ur.csv'
89911
+  (0.1ms) rollback transaction
89912
+  (0.0ms) begin transaction
89913
+  (0.0ms) commit transaction
89914
+  (0.0ms) begin transaction
89915
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-y0vwtk'
89916
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1hz0gdc.csv'
89917
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-yip222.csv'
89918
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-zgu5ik.csv'
89919
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1c1yn0e.csv'
89920
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1ozb3aa.csv'
89921
+  (0.1ms) rollback transaction
89922
+  (0.0ms) begin transaction
89923
+  (0.0ms) commit transaction
89924
+  (0.0ms) begin transaction
89925
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1os3osq'
89926
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-w247xp.csv'
89927
+  (0.1ms) rollback transaction
89928
+  (0.0ms) begin transaction
89929
+  (0.0ms) commit transaction
89930
+  (0.0ms) begin transaction
89931
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-134doei'
89932
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1kg74rg.csv'
89933
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-17hg28o.csv'
89934
+  (0.1ms) rollback transaction
89935
+  (0.1ms) begin transaction
89936
+  (0.0ms) commit transaction
89937
+  (0.0ms) begin transaction
89938
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-5i709r'
89939
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ccnkuy.csv'
89940
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170602-53937-rl1ola'
89941
+  (0.1ms) rollback transaction
89942
+  (0.0ms) begin transaction
89943
+  (0.1ms) commit transaction
89944
+  (0.0ms) begin transaction
89945
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-tte7wq'
89946
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-7p7tpc.csv'
89947
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1xdlecw.csv'
89948
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-zne8x2.csv'
89949
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-o1ca9k.csv'
89950
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-133p03e.csv'
89951
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ncrw56.csv'
89952
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ljsefp.csv'
89953
+  (0.1ms) rollback transaction
89954
+  (0.1ms) begin transaction
89955
+  (0.0ms) commit transaction
89956
+  (0.0ms) begin transaction
89957
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-kc4455'
89958
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-b5zqz4.csv'
89959
+  (0.1ms) rollback transaction
89960
+  (0.1ms) begin transaction
89961
+  (0.0ms) commit transaction
89962
+  (0.0ms) begin transaction
89963
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-hykku5'
89964
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-d04eok.csv'
89965
+  (0.1ms) SAVEPOINT active_record_1
89966
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-kxui0g.csv'
89967
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89968
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.280253"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.311643"], ["updated_at", "2017-06-02 23:16:49.311643"]]
89969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89970
+  (0.8ms) rollback transaction
89971
+  (0.1ms) begin transaction
89972
+  (0.1ms) commit transaction
89973
+  (0.0ms) begin transaction
89974
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-wbhfdj'
89975
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1ef3gs1.csv'
89976
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-t7t89u.csv'
89977
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1tc63ph'
89978
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-vdf4d7.csv'
89979
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-grjx8f.csv'
89980
+  (0.1ms) rollback transaction
89981
+  (0.0ms) begin transaction
89982
+  (0.0ms) commit transaction
89983
+  (0.0ms) begin transaction
89984
+  (0.0ms) rollback transaction
89985
+  (0.1ms) begin transaction
89986
+  (0.0ms) commit transaction
89987
+  (0.0ms) begin transaction
89988
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-tcfabp'
89989
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-7lf8zk.csv'
89990
+  (0.1ms) SAVEPOINT active_record_1
89991
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1tb1tt3.csv'
89992
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
89993
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.450144"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.480840"], ["updated_at", "2017-06-02 23:16:49.480840"]]
89994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
89995
+  (0.3ms) rollback transaction
89996
+  (0.1ms) begin transaction
89997
+  (0.0ms) commit transaction
89998
+  (0.0ms) begin transaction
89999
+  (0.1ms) rollback transaction
90000
+  (0.0ms) begin transaction
90001
+  (0.0ms) commit transaction
90002
+  (0.0ms) begin transaction
90003
+  (0.1ms) rollback transaction
90004
+  (0.0ms) begin transaction
90005
+  (0.0ms) commit transaction
90006
+  (0.0ms) begin transaction
90007
+  (0.0ms) rollback transaction
90008
+  (0.0ms) begin transaction
90009
+  (0.0ms) commit transaction
90010
+  (0.0ms) begin transaction
90011
+  (0.0ms) rollback transaction
90012
+  (0.0ms) begin transaction
90013
+  (0.1ms) commit transaction
90014
+  (0.0ms) begin transaction
90015
+  (0.1ms) rollback transaction
90016
+  (0.0ms) begin transaction
90017
+  (0.0ms) commit transaction
90018
+  (0.0ms) begin transaction
90019
+  (0.1ms) rollback transaction
90020
+  (0.0ms) begin transaction
90021
+  (0.0ms) commit transaction
90022
+  (0.0ms) begin transaction
90023
+  (0.1ms) rollback transaction
90024
+  (0.0ms) begin transaction
90025
+  (0.1ms) commit transaction
90026
+  (0.0ms) begin transaction
90027
+  (0.1ms) SAVEPOINT active_record_1
90028
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90030
+ Processing by CsvImportMagic::ImportersController#create as HTML
90031
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fe47a9b1020 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-2m2cce>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
90032
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-2m2cce'
90033
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1cf0oi.csv'
90034
+  (0.1ms) SAVEPOINT active_record_1
90035
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-hmkfpj.csv'
90036
+ SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.577275"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:16:49.607356"], ["updated_at", "2017-06-02 23:16:49.607356"]]
90037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90038
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90039
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
90040
+ Completed 302 Found in 59ms (ActiveRecord: 0.5ms)
90041
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1
90042
+  (0.5ms) rollback transaction
90043
+  (0.0ms) begin transaction
90044
+  (0.0ms) commit transaction
90045
+  (0.0ms) begin transaction
90046
+  (0.1ms) SELECT COUNT(*) FROM "importers"
90047
+  (0.3ms) SAVEPOINT active_record_1
90048
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90050
+ Processing by CsvImportMagic::ImportersController#create as HTML
90051
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fe47a221aa8 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-ifvjj1>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
90052
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-ifvjj1'
90053
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-vjsaxv.csv'
90054
+  (0.1ms) SAVEPOINT active_record_1
90055
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1iy2kpq.csv'
90056
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.649900"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:16:49.683281"], ["updated_at", "2017-06-02 23:16:49.683281"]]
90057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90058
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90059
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
90060
+ Completed 302 Found in 61ms (ActiveRecord: 0.4ms)
90061
+  (0.1ms) SELECT COUNT(*) FROM "importers"
90062
+  (0.5ms) rollback transaction
90063
+  (0.1ms) begin transaction
90064
+  (0.1ms) commit transaction
90065
+  (0.0ms) begin transaction
90066
+  (0.1ms) SAVEPOINT active_record_1
90067
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90069
+ Processing by CsvImportMagic::ImportersController#create as HTML
90070
+ Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
90071
+  (0.1ms) SAVEPOINT active_record_1
90072
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
90073
+ Redirected to http://example.com
90074
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
90075
+  (0.5ms) rollback transaction
90076
+  (0.1ms) begin transaction
90077
+  (0.0ms) commit transaction
90078
+  (0.0ms) begin transaction
90079
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-aeq1cz'
90080
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1gu48ki.csv'
90081
+  (0.1ms) SAVEPOINT active_record_1
90082
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-7oplxo.csv'
90083
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90084
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.724176"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.755458"], ["updated_at", "2017-06-02 23:16:49.755458"]]
90085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90086
+ Processing by CsvImportMagic::ImportersController#show as HTML
90087
+ Parameters: {"id"=>"1"}
90088
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90089
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms)
90090
+ Completed 200 OK in 22ms (Views: 21.4ms | ActiveRecord: 0.1ms)
90091
+  (0.5ms) rollback transaction
90092
+  (0.0ms) begin transaction
90093
+  (0.0ms) commit transaction
90094
+  (0.0ms) begin transaction
90095
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1fgo074'
90096
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ymqrzt.csv'
90097
+  (0.1ms) SAVEPOINT active_record_1
90098
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-10pgfee.csv'
90099
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90100
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.805920"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.837211"], ["updated_at", "2017-06-02 23:16:49.837211"]]
90101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90102
+ Processing by CsvImportMagic::ImportersController#update as HTML
90103
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"}
90104
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90105
+  (0.0ms) SAVEPOINT active_record_1
90106
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
90107
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms)
90108
+ Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.2ms)
90109
+  (0.5ms) rollback transaction
90110
+  (0.1ms) begin transaction
90111
+  (0.0ms) commit transaction
90112
+  (0.0ms) begin transaction
90113
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-btutwv'
90114
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1h6abox.csv'
90115
+  (0.1ms) SAVEPOINT active_record_1
90116
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1iymfij.csv'
90117
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90118
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.886710"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.918673"], ["updated_at", "2017-06-02 23:16:49.918673"]]
90119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90120
+ Processing by CsvImportMagic::ImportersController#update as HTML
90121
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
90122
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90123
+  (0.0ms) SAVEPOINT active_record_1
90124
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:16:49.930035"], ["id", 1]]
90125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90126
+ Redirected to http://test.host/csv_import_magic/importers/1
90127
+ Completed 302 Found in 41ms (ActiveRecord: 0.3ms)
90128
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90129
+  (0.5ms) rollback transaction
90130
+  (0.1ms) begin transaction
90131
+  (0.0ms) commit transaction
90132
+  (0.0ms) begin transaction
90133
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1icgeha'
90134
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-hidvsn.csv'
90135
+  (0.1ms) SAVEPOINT active_record_1
90136
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-18czwfm.csv'
90137
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90138
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.988903"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:50.023621"], ["updated_at", "2017-06-02 23:16:50.023621"]]
90139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90140
+ Processing by CsvImportMagic::ImportersController#update as HTML
90141
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
90142
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90143
+  (0.1ms) SAVEPOINT active_record_1
90144
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:16:50.037059"], ["id", 1]]
90145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90146
+ Redirected to http://test.host/csv_import_magic/importers/1
90147
+ Completed 302 Found in 19ms (ActiveRecord: 0.3ms)
90148
+  (0.5ms) rollback transaction
90149
+  (0.0ms) begin transaction
90150
+  (0.1ms) commit transaction
90151
+  (0.0ms) begin transaction
90152
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1y5cawv'
90153
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1lbva4.csv'
90154
+  (0.1ms) SAVEPOINT active_record_1
90155
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-18x79sz.csv'
90156
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90157
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:50.074276"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:50.106936"], ["updated_at", "2017-06-02 23:16:50.106936"]]
90158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90159
+ Processing by CsvImportMagic::ImportersController#update as HTML
90160
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
90161
+ Importer Load (0.5ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90162
+  (0.1ms) SAVEPOINT active_record_1
90163
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:16:50.119952"], ["id", 1]]
90164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90165
+ Redirected to http://test.host/csv_import_magic/importers/1
90166
+ Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
90167
+  (0.5ms) rollback transaction
90168
+  (0.1ms) begin transaction
90169
+  (0.0ms) commit transaction
90170
+  (0.0ms) begin transaction
90171
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-7sphoi'
90172
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-80j83b.csv'
90173
+  (0.1ms) SAVEPOINT active_record_1
90174
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-u2bduv.csv'
90175
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90176
+ SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:50.145742"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:50.176592"], ["updated_at", "2017-06-02 23:16:50.176592"]]
90177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90178
+ Processing by CsvImportMagic::ImportersController#edit as HTML
90179
+ Parameters: {"id"=>"1"}
90180
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90181
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms)
90182
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)
90183
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90184
+  (0.5ms) rollback transaction
90185
+  (0.1ms) begin transaction
90186
+  (0.0ms) commit transaction
90187
+  (0.0ms) begin transaction
90188
+  (0.1ms) rollback transaction
90189
+  (1.8ms) DELETE FROM "companies";
90190
+  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
90191
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';
90192
+  (1.0ms) DELETE FROM "importers";
90193
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
90194
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';
90195
+  (1.0ms) DELETE FROM "users";
90196
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
90197
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
90198
+  (0.0ms) begin transaction
90199
+  (0.0ms) commit transaction
90200
+  (0.0ms) begin transaction
90201
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-da3l1v'
90202
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1aic5uo.csv'
90203
+  (0.0ms) SAVEPOINT active_record_1
90204
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-8qwr5p.csv'
90205
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90206
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.319916"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.371365"], ["updated_at", "2017-06-02 23:19:01.371365"]]
90207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90208
+  (0.0ms) SAVEPOINT active_record_1
90209
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90211
+  (0.4ms) rollback transaction
90212
+  (0.1ms) begin transaction
90213
+  (0.0ms) commit transaction
90214
+  (0.0ms) begin transaction
90215
+  (0.1ms) rollback transaction
90216
+  (0.0ms) begin transaction
90217
+  (0.0ms) commit transaction
90218
+  (0.0ms) begin transaction
90219
+  (0.0ms) SAVEPOINT active_record_1
90220
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90222
+  (0.1ms) SELECT COUNT(*) FROM "companies"
90223
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-sjknkg'
90224
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1nhb79f.csv'
90225
+  (0.1ms) SAVEPOINT active_record_1
90226
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-bbtgo0.csv'
90227
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90228
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.424021"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-06-02 23:19:01.453397"], ["updated_at", "2017-06-02 23:19:01.453397"]]
90229
+  (0.7ms) RELEASE SAVEPOINT active_record_1
90230
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90231
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
90232
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]
90233
+  (0.0ms) SAVEPOINT active_record_1
90234
+ SQL (0.1ms) INSERT INTO "companies" ("user_id", "name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["user_id", 1], ["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
90235
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]]
90236
+ SQL (0.0ms) INSERT INTO "companies" ("user_id", "name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["user_id", 1], ["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]
90237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90238
+  (0.0ms) SELECT COUNT(*) FROM "companies"
90239
+  (0.0ms) SELECT "companies"."name" FROM "companies"
90240
+  (0.0ms) SELECT "companies"."street" FROM "companies"
90241
+  (0.0ms) SELECT "companies"."number" FROM "companies"
90242
+  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"
90243
+  (0.0ms) SELECT "companies"."city" FROM "companies"
90244
+  (0.0ms) SELECT "companies"."state" FROM "companies"
90245
+  (0.0ms) SELECT "companies"."user_id" FROM "companies"
90246
+  (0.5ms) rollback transaction
90247
+  (0.0ms) begin transaction
90248
+  (0.0ms) commit transaction
90249
+  (0.0ms) begin transaction
90250
+  (0.1ms) SELECT COUNT(*) FROM "companies"
90251
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1oekn8m'
90252
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-2j10sm.csv'
90253
+  (0.1ms) SAVEPOINT active_record_1
90254
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-vodyoe.csv'
90255
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90256
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.528056"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.559297"], ["updated_at", "2017-06-02 23:19:01.559297"]]
90257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90258
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90259
+ Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
90260
+  (0.0ms) SAVEPOINT active_record_1
90261
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
90262
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
90263
+ SQL (0.0ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]
90264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90265
+  (0.1ms) SELECT COUNT(*) FROM "companies"
90266
+  (0.1ms) SELECT "companies"."name" FROM "companies"
90267
+  (0.1ms) SELECT "companies"."street" FROM "companies"
90268
+  (0.1ms) SELECT "companies"."number" FROM "companies"
90269
+  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"
90270
+  (0.1ms) SELECT "companies"."city" FROM "companies"
90271
+  (0.1ms) SELECT "companies"."state" FROM "companies"
90272
+  (0.1ms) SELECT "companies"."user_id" FROM "companies"
90273
+  (0.4ms) rollback transaction
90274
+  (0.1ms) begin transaction
90275
+  (0.0ms) commit transaction
90276
+  (0.0ms) begin transaction
90277
+  (0.1ms) SELECT COUNT(*) FROM "companies"
90278
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-xoh1zq'
90279
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-sts0j7.csv'
90280
+  (0.1ms) SAVEPOINT active_record_1
90281
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-rd6uyz.csv'
90282
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90283
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.597177"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.631600"], ["updated_at", "2017-06-02 23:19:01.631600"]]
90284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90285
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90286
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
90287
+  (0.0ms) SAVEPOINT active_record_1
90288
+ SQL (0.3ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]
90289
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
90290
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]
90291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90292
+  (0.1ms) SELECT COUNT(*) FROM "companies"
90293
+  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"
90294
+  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"
90295
+  (0.5ms) rollback transaction
90296
+  (0.1ms) begin transaction
90297
+  (0.0ms) commit transaction
90298
+  (0.1ms) begin transaction
90299
+  (0.1ms) SELECT COUNT(*) FROM "companies"
90300
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-vmvb1o'
90301
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1smx1rr.csv'
90302
+  (0.1ms) SAVEPOINT active_record_1
90303
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-7vjjkg.csv'
90304
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90305
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.693842"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.726974"], ["updated_at", "2017-06-02 23:19:01.726974"]]
90306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90307
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90308
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
90309
+  (0.0ms) SAVEPOINT active_record_1
90310
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
90311
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
90312
+ SQL (0.0ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]
90313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90314
+  (0.1ms) SELECT COUNT(*) FROM "companies"
90315
+  (0.1ms) SELECT "companies"."name" FROM "companies"
90316
+  (0.1ms) SELECT "companies"."street" FROM "companies"
90317
+  (0.1ms) SELECT "companies"."number" FROM "companies"
90318
+  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"
90319
+  (0.1ms) SELECT "companies"."city" FROM "companies"
90320
+  (0.1ms) SELECT "companies"."state" FROM "companies"
90321
+  (0.1ms) SELECT "companies"."user_id" FROM "companies"
90322
+  (0.6ms) rollback transaction
90323
+  (0.1ms) begin transaction
90324
+  (0.0ms) commit transaction
90325
+  (0.0ms) begin transaction
90326
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1ae8g1p'
90327
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1v9dwku.csv'
90328
+  (0.1ms) SAVEPOINT active_record_1
90329
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-7phio8.csv'
90330
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90331
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.760952"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.791647"], ["updated_at", "2017-06-02 23:19:01.791647"]]
90332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90333
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90334
+  (0.1ms) SAVEPOINT active_record_1
90335
+ SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-06-02 23:19:01.810792"], ["id", 1]]
90336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90337
+  (0.5ms) rollback transaction
90338
+  (0.1ms) begin transaction
90339
+  (0.0ms) commit transaction
90340
+  (0.0ms) begin transaction
90341
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-djw2g8'
90342
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-ia9q7m.csv'
90343
+  (0.1ms) SAVEPOINT active_record_1
90344
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-w8c2hb.csv'
90345
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90346
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.833707"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.864765"], ["updated_at", "2017-06-02 23:19:01.864765"]]
90347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90348
+  (0.5ms) rollback transaction
90349
+  (0.1ms) begin transaction
90350
+  (0.0ms) commit transaction
90351
+  (0.1ms) begin transaction
90352
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170602-54115-qy9aok'
90353
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-54115-h83std.csv'
90354
+  (0.1ms) SAVEPOINT active_record_1
90355
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-54115-1737ub1.csv'
90356
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90357
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-06-02 23:19:01.890857"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.923369"], ["updated_at", "2017-06-02 23:19:01.923369"]]
90358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90359
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90360
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
90361
+  (0.0ms) SAVEPOINT active_record_1
90362
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
90363
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
90364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90365
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90366
+  (0.0ms) SAVEPOINT active_record_1
90367
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170602-54115-m6aill.csv'
90368
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9e6be1aa757f08ed72d42871057d395720170602-54115-1ep8yrz.csv'
90369
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9e6be1aa757f08ed72d42871057d395720170602-54115-7g5umk.csv'
90370
+ SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170602-54115-m6aill.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-06-02 23:19:01.957007"], ["updated_at", "2017-06-02 23:19:01.988369"], ["id", 1]]
90371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90372
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90373
+  (0.6ms) rollback transaction
90374
+  (0.1ms) begin transaction
90375
+  (0.1ms) commit transaction
90376
+  (0.1ms) begin transaction
90377
+  (0.1ms) rollback transaction
90378
+  (0.1ms) begin transaction
90379
+  (0.0ms) commit transaction
90380
+  (0.0ms) begin transaction
90381
+  (0.1ms) rollback transaction
90382
+  (0.0ms) begin transaction
90383
+  (0.1ms) commit transaction
90384
+  (0.0ms) begin transaction
90385
+  (0.1ms) rollback transaction
90386
+  (0.0ms) begin transaction
90387
+  (0.0ms) commit transaction
90388
+  (0.1ms) begin transaction
90389
+  (0.0ms) rollback transaction
90390
+  (0.0ms) begin transaction
90391
+  (0.0ms) commit transaction
90392
+  (0.0ms) begin transaction
90393
+  (0.0ms) rollback transaction
90394
+  (0.0ms) begin transaction
90395
+  (0.0ms) commit transaction
90396
+  (0.0ms) begin transaction
90397
+  (0.1ms) rollback transaction
90398
+  (0.0ms) begin transaction
90399
+  (0.1ms) commit transaction
90400
+  (0.0ms) begin transaction
90401
+  (0.1ms) rollback transaction
90402
+  (0.0ms) begin transaction
90403
+  (0.0ms) commit transaction
90404
+  (0.1ms) begin transaction
90405
+  (0.0ms) rollback transaction
90406
+  (0.0ms) begin transaction
90407
+  (0.0ms) commit transaction
90408
+  (0.0ms) begin transaction
90409
+  (0.1ms) rollback transaction
90410
+  (0.0ms) begin transaction
90411
+  (0.0ms) commit transaction
90412
+  (0.0ms) begin transaction
90413
+  (0.0ms) rollback transaction
90414
+  (0.0ms) begin transaction
90415
+  (0.0ms) commit transaction
90416
+  (0.0ms) begin transaction
90417
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-t8g7js'
90418
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ajxte2.csv'
90419
+  (0.1ms) SAVEPOINT active_record_1
90420
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-176i83k.csv'
90421
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90422
+ SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.082462"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.112634"], ["updated_at", "2017-06-02 23:19:02.112634"]]
90423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90424
+ Processing by CsvImportMagic::ImportersController#update as HTML
90425
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
90426
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90427
+  (0.1ms) SAVEPOINT active_record_1
90428
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:02.136082"], ["id", 1]]
90429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90430
+ Redirected to http://test.host/csv_import_magic/importers/1
90431
+ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)
90432
+  (0.4ms) rollback transaction
90433
+  (0.0ms) begin transaction
90434
+  (0.0ms) commit transaction
90435
+  (0.0ms) begin transaction
90436
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-3p3v3r'
90437
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ecegbs.csv'
90438
+  (0.1ms) SAVEPOINT active_record_1
90439
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1jumod1.csv'
90440
+ SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90441
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.161277"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.194024"], ["updated_at", "2017-06-02 23:19:02.194024"]]
90442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90443
+ Processing by CsvImportMagic::ImportersController#update as HTML
90444
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
90445
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90446
+  (0.0ms) SAVEPOINT active_record_1
90447
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:02.205218"], ["id", 1]]
90448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90449
+ Redirected to http://test.host/csv_import_magic/importers/1
90450
+ Completed 302 Found in 17ms (ActiveRecord: 0.2ms)
90451
+  (0.5ms) rollback transaction
90452
+  (0.1ms) begin transaction
90453
+  (0.0ms) commit transaction
90454
+  (0.0ms) begin transaction
90455
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-wdbf81'
90456
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-4kymij.csv'
90457
+  (0.1ms) SAVEPOINT active_record_1
90458
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-g5wo02.csv'
90459
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90460
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.242496"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.273859"], ["updated_at", "2017-06-02 23:19:02.273859"]]
90461
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90462
+ Processing by CsvImportMagic::ImportersController#update as HTML
90463
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
90464
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90465
+  (0.2ms) SAVEPOINT active_record_1
90466
+ SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:02.284876"], ["id", 1]]
90467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90468
+ Redirected to http://test.host/csv_import_magic/importers/1
90469
+ Completed 302 Found in 11ms (ActiveRecord: 0.5ms)
90470
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90471
+  (0.4ms) rollback transaction
90472
+  (0.0ms) begin transaction
90473
+  (0.0ms) commit transaction
90474
+  (0.0ms) begin transaction
90475
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-14d8y0z'
90476
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-b589wy.csv'
90477
+  (0.1ms) SAVEPOINT active_record_1
90478
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-hh8hak.csv'
90479
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90480
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.314229"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.344754"], ["updated_at", "2017-06-02 23:19:02.344754"]]
90481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90482
+ Processing by CsvImportMagic::ImportersController#update as HTML
90483
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"}
90484
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90485
+  (0.0ms) SAVEPOINT active_record_1
90486
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
90487
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms)
90488
+ Completed 200 OK in 18ms (Views: 12.8ms | ActiveRecord: 0.1ms)
90489
+  (0.5ms) rollback transaction
90490
+  (0.0ms) begin transaction
90491
+  (0.0ms) commit transaction
90492
+  (0.0ms) begin transaction
90493
+  (0.0ms) SAVEPOINT active_record_1
90494
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90496
+ Processing by CsvImportMagic::ImportersController#create as HTML
90497
+ Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
90498
+  (0.1ms) SAVEPOINT active_record_1
90499
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
90500
+ Redirected to http://example.com
90501
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
90502
+  (0.4ms) rollback transaction
90503
+  (0.0ms) begin transaction
90504
+  (0.0ms) commit transaction
90505
+  (0.0ms) begin transaction
90506
+  (0.0ms) SAVEPOINT active_record_1
90507
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90509
+ Processing by CsvImportMagic::ImportersController#create as HTML
90510
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fb7578438f0 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1q107ek>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
90511
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1q107ek'
90512
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ycyof3.csv'
90513
+  (0.1ms) SAVEPOINT active_record_1
90514
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1x39ugg.csv'
90515
+ SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.409989"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:19:02.438179"], ["updated_at", "2017-06-02 23:19:02.438179"]]
90516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90517
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90518
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
90519
+ Completed 302 Found in 61ms (ActiveRecord: 0.5ms)
90520
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1
90521
+  (0.5ms) rollback transaction
90522
+  (0.1ms) begin transaction
90523
+  (0.0ms) commit transaction
90524
+  (0.0ms) begin transaction
90525
+  (0.1ms) SELECT COUNT(*) FROM "importers"
90526
+  (0.0ms) SAVEPOINT active_record_1
90527
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90529
+ Processing by CsvImportMagic::ImportersController#create as HTML
90530
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fb757010f20 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-c3dmuq>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
90531
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-c3dmuq'
90532
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-kosw78.csv'
90533
+  (0.1ms) SAVEPOINT active_record_1
90534
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-10htr4h.csv'
90535
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.485201"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:19:02.515404"], ["updated_at", "2017-06-02 23:19:02.515404"]]
90536
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90537
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90538
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
90539
+ Completed 302 Found in 63ms (ActiveRecord: 0.4ms)
90540
+  (0.2ms) SELECT COUNT(*) FROM "importers"
90541
+  (0.5ms) rollback transaction
90542
+  (0.1ms) begin transaction
90543
+  (0.0ms) commit transaction
90544
+  (0.0ms) begin transaction
90545
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1td200y'
90546
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-nuavzk.csv'
90547
+  (0.1ms) SAVEPOINT active_record_1
90548
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1dem6ty.csv'
90549
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90550
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.549615"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.583739"], ["updated_at", "2017-06-02 23:19:02.583739"]]
90551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90552
+ Processing by CsvImportMagic::ImportersController#edit as HTML
90553
+ Parameters: {"id"=>"1"}
90554
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90555
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms)
90556
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)
90557
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90558
+  (0.4ms) rollback transaction
90559
+  (0.0ms) begin transaction
90560
+  (0.0ms) commit transaction
90561
+  (0.0ms) begin transaction
90562
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-83sd00'
90563
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1a1k89p.csv'
90564
+  (0.1ms) SAVEPOINT active_record_1
90565
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1doi772.csv'
90566
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90567
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.614480"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.644208"], ["updated_at", "2017-06-02 23:19:02.644208"]]
90568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90569
+ Processing by CsvImportMagic::ImportersController#show as HTML
90570
+ Parameters: {"id"=>"1"}
90571
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90572
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms)
90573
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.1ms)
90574
+  (0.4ms) rollback transaction
90575
+  (0.3ms) begin transaction
90576
+  (0.0ms) commit transaction
90577
+  (0.0ms) begin transaction
90578
+  (0.0ms) rollback transaction
90579
+  (0.1ms) begin transaction
90580
+  (0.0ms) commit transaction
90581
+  (0.1ms) begin transaction
90582
+  (0.0ms) rollback transaction
90583
+  (0.0ms) begin transaction
90584
+  (0.0ms) commit transaction
90585
+  (0.0ms) begin transaction
90586
+  (0.0ms) rollback transaction
90587
+  (0.0ms) begin transaction
90588
+  (0.0ms) commit transaction
90589
+  (0.1ms) begin transaction
90590
+  (0.0ms) rollback transaction
90591
+  (0.0ms) begin transaction
90592
+  (0.1ms) commit transaction
90593
+  (0.0ms) begin transaction
90594
+  (0.0ms) rollback transaction
90595
+  (0.1ms) begin transaction
90596
+  (0.1ms) commit transaction
90597
+  (0.1ms) begin transaction
90598
+  (0.1ms) rollback transaction
90599
+  (0.2ms) begin transaction
90600
+  (0.0ms) commit transaction
90601
+  (0.0ms) begin transaction
90602
+  (0.1ms) rollback transaction
90603
+  (0.0ms) begin transaction
90604
+  (0.0ms) commit transaction
90605
+  (0.1ms) begin transaction
90606
+  (0.2ms) rollback transaction
90607
+  (0.0ms) begin transaction
90608
+  (0.0ms) commit transaction
90609
+  (0.0ms) begin transaction
90610
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1n01hfi'
90611
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-extstc.csv'
90612
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1gptxao.csv'
90613
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-ypnwt.csv'
90614
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1usfdy2.csv'
90615
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-hod22u.csv'
90616
+  (0.1ms) rollback transaction
90617
+  (0.1ms) begin transaction
90618
+  (0.0ms) commit transaction
90619
+  (0.0ms) begin transaction
90620
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-12pu2ak'
90621
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1og6kee.csv'
90622
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-rkcyb3.csv'
90623
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-18t3wq7.csv'
90624
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-3n4wnl.csv'
90625
+ [paperclip] Content Type Spoof: Filename companies.csv (application/vnd.ms-excel from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
90626
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-zl9lv9.csv'
90627
+ [paperclip] Content Type Spoof: Filename companies.csv (image/png from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
90628
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-174a5mb.csv'
90629
+ [paperclip] Content Type Spoof: Filename companies.csv (image/gif from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
90630
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-153ob2.csv'
90631
+  (0.1ms) rollback transaction
90632
+  (0.1ms) begin transaction
90633
+  (0.0ms) commit transaction
90634
+  (0.0ms) begin transaction
90635
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-gmyjp4'
90636
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-2lztgu.csv'
90637
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-lfyvsy.csv'
90638
+  (0.1ms) rollback transaction
90639
+  (0.1ms) begin transaction
90640
+  (0.0ms) commit transaction
90641
+  (0.0ms) begin transaction
90642
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1uq3t62'
90643
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1q3g6eu.csv'
90644
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170602-54115-1ok1sjb'
90645
+  (0.4ms) rollback transaction
90646
+  (0.0ms) begin transaction
90647
+  (0.0ms) commit transaction
90648
+  (0.0ms) begin transaction
90649
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1pupei5'
90650
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ovkmei.csv'
90651
+  (0.1ms) rollback transaction
90652
+  (0.0ms) begin transaction
90653
+  (0.0ms) commit transaction
90654
+  (0.0ms) begin transaction
90655
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1li1032'
90656
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-x2rf2b.csv'
90657
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1vq4o1n.csv'
90658
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-18wzmiq.csv'
90659
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ywyje6.csv'
90660
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ti8pnn.csv'
90661
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ayz5fg.csv'
90662
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-ctiwt0.csv'
90663
+  (0.1ms) rollback transaction
90664
+  (0.0ms) begin transaction
90665
+  (0.0ms) commit transaction
90666
+  (0.0ms) begin transaction
90667
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-zm5apv'
90668
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1azj5u3.csv'
90669
+  (0.1ms) rollback transaction
90670
+  (0.1ms) begin transaction
90671
+  (0.0ms) commit transaction
90672
+  (0.0ms) begin transaction
90673
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-18b28u8'
90674
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-nyhhzz.csv'
90675
+  (0.1ms) SAVEPOINT active_record_1
90676
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1luam9n.csv'
90677
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90678
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.257557"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.293919"], ["updated_at", "2017-06-02 23:19:03.293919"]]
90679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90680
+  (0.4ms) rollback transaction
90681
+  (0.0ms) begin transaction
90682
+  (0.0ms) commit transaction
90683
+  (0.0ms) begin transaction
90684
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-zzsj4o'
90685
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-ob63j9.csv'
90686
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-10gog69.csv'
90687
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1evq8qy'
90688
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-td5opj.csv'
90689
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1qw4sn0.csv'
90690
+  (0.1ms) rollback transaction
90691
+  (0.1ms) begin transaction
90692
+  (0.1ms) commit transaction
90693
+  (0.0ms) begin transaction
90694
+  (0.0ms) rollback transaction
90695
+  (0.1ms) begin transaction
90696
+  (0.0ms) commit transaction
90697
+  (0.0ms) begin transaction
90698
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-goe61z'
90699
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1msg0y4.csv'
90700
+  (0.1ms) SAVEPOINT active_record_1
90701
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-woubjh.csv'
90702
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90703
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.423609"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.457446"], ["updated_at", "2017-06-02 23:19:03.457446"]]
90704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90705
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90706
+  (0.4ms) rollback transaction
90707
+  (0.1ms) begin transaction
90708
+  (0.0ms) commit transaction
90709
+  (0.0ms) begin transaction
90710
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-i2jep4'
90711
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1l0mmwq.csv'
90712
+  (0.1ms) SAVEPOINT active_record_1
90713
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-vwi6y6.csv'
90714
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90715
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.483453"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.518676"], ["updated_at", "2017-06-02 23:19:03.518676"]]
90716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90717
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90718
+  (0.4ms) rollback transaction
90719
+  (0.1ms) begin transaction
90720
+  (0.0ms) commit transaction
90721
+  (0.0ms) begin transaction
90722
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-8yerza'
90723
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-zhfs4h.csv'
90724
+  (0.1ms) SAVEPOINT active_record_1
90725
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-jl8b41.csv'
90726
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90727
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.546247"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.580483"], ["updated_at", "2017-06-02 23:19:03.580483"]]
90728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90729
+  (0.4ms) rollback transaction
90730
+  (0.1ms) begin transaction
90731
+  (0.0ms) commit transaction
90732
+  (0.0ms) begin transaction
90733
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-lxssnj'
90734
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-qiinw.csv'
90735
+  (0.1ms) SAVEPOINT active_record_1
90736
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1mrjsfo.csv'
90737
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90738
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.604723"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.635516"], ["updated_at", "2017-06-02 23:19:03.635516"]]
90739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90740
+  (0.3ms) rollback transaction
90741
+  (1.3ms) DELETE FROM "companies";
90742
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
90743
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';
90744
+  (0.7ms) DELETE FROM "importers";
90745
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
90746
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';
90747
+  (0.6ms) DELETE FROM "users";
90748
+  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
90749
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
90750
+  (0.0ms) begin transaction
90751
+  (0.0ms) commit transaction
90752
+  (0.0ms) begin transaction
90753
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1yvotqo'
90754
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1ck4ci6.csv'
90755
+  (0.1ms) SAVEPOINT active_record_1
90756
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1ju1hdn.csv'
90757
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90758
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.251721"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.306388"], ["updated_at", "2017-06-02 23:19:10.306388"]]
90759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90760
+  (0.0ms) SAVEPOINT active_record_1
90761
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90763
+  (0.4ms) rollback transaction
90764
+  (0.0ms) begin transaction
90765
+  (0.0ms) commit transaction
90766
+  (0.0ms) begin transaction
90767
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1r7lm5y'
90768
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-inq30i.csv'
90769
+  (0.4ms) SAVEPOINT active_record_1
90770
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-q9eb1r.csv'
90771
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90772
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.336459"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.368764"], ["updated_at", "2017-06-02 23:19:10.368764"]]
90773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90774
+ Processing by CsvImportMagic::ImportersController#show as HTML
90775
+ Parameters: {"id"=>"1"}
90776
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90777
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms)
90778
+ Completed 200 OK in 21ms (Views: 13.9ms | ActiveRecord: 0.2ms)
90779
+  (0.5ms) rollback transaction
90780
+  (0.0ms) begin transaction
90781
+  (0.0ms) commit transaction
90782
+  (0.0ms) begin transaction
90783
+  (0.0ms) SAVEPOINT active_record_1
90784
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90786
+ Processing by CsvImportMagic::ImportersController#create as HTML
90787
+ Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
90788
+  (0.1ms) SAVEPOINT active_record_1
90789
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
90790
+ Redirected to http://example.com
90791
+ Completed 302 Found in 16ms (ActiveRecord: 0.1ms)
90792
+  (0.4ms) rollback transaction
90793
+  (0.1ms) begin transaction
90794
+  (0.0ms) commit transaction
90795
+  (0.0ms) begin transaction
90796
+  (0.1ms) SELECT COUNT(*) FROM "importers"
90797
+  (0.0ms) SAVEPOINT active_record_1
90798
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90800
+ Processing by CsvImportMagic::ImportersController#create as HTML
90801
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fa166dee2c0 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-ned24j>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
90802
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-ned24j'
90803
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-18npkla.csv'
90804
+  (0.1ms) SAVEPOINT active_record_1
90805
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1imr9u8.csv'
90806
+ SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.456606"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:19:10.486572"], ["updated_at", "2017-06-02 23:19:10.486572"]]
90807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90808
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90809
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
90810
+ Completed 302 Found in 62ms (ActiveRecord: 0.5ms)
90811
+  (0.1ms) SELECT COUNT(*) FROM "importers"
90812
+  (0.5ms) rollback transaction
90813
+  (0.1ms) begin transaction
90814
+  (0.0ms) commit transaction
90815
+  (0.0ms) begin transaction
90816
+  (0.0ms) SAVEPOINT active_record_1
90817
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90819
+ Processing by CsvImportMagic::ImportersController#create as HTML
90820
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fa16805a468 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1gd2ivg>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
90821
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1gd2ivg'
90822
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1a11u98.csv'
90823
+  (0.1ms) SAVEPOINT active_record_1
90824
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1cssqqj.csv'
90825
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.528148"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:19:10.556845"], ["updated_at", "2017-06-02 23:19:10.556845"]]
90826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90827
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90828
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
90829
+ Completed 302 Found in 57ms (ActiveRecord: 0.4ms)
90830
+ Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1
90831
+  (0.5ms) rollback transaction
90832
+  (0.1ms) begin transaction
90833
+  (0.0ms) commit transaction
90834
+  (0.0ms) begin transaction
90835
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1t95mo0'
90836
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1k8x3zu.csv'
90837
+  (0.1ms) SAVEPOINT active_record_1
90838
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-mxn7sg.csv'
90839
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90840
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.593624"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.623957"], ["updated_at", "2017-06-02 23:19:10.623957"]]
90841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90842
+ Processing by CsvImportMagic::ImportersController#update as HTML
90843
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
90844
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90845
+  (0.0ms) SAVEPOINT active_record_1
90846
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:10.656354"], ["id", 1]]
90847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90848
+ Redirected to http://test.host/csv_import_magic/importers/1
90849
+ Completed 302 Found in 14ms (ActiveRecord: 0.4ms)
90850
+  (0.5ms) rollback transaction
90851
+  (0.1ms) begin transaction
90852
+  (0.1ms) commit transaction
90853
+  (0.0ms) begin transaction
90854
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-821iq6'
90855
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-rxuq8l.csv'
90856
+  (0.1ms) SAVEPOINT active_record_1
90857
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1a6rb54.csv'
90858
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90859
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.692684"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.725357"], ["updated_at", "2017-06-02 23:19:10.725357"]]
90860
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90861
+ Processing by CsvImportMagic::ImportersController#update as HTML
90862
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
90863
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90864
+  (0.0ms) SAVEPOINT active_record_1
90865
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:10.735040"], ["id", 1]]
90866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90867
+ Redirected to http://test.host/csv_import_magic/importers/1
90868
+ Completed 302 Found in 11ms (ActiveRecord: 0.3ms)
90869
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90870
+  (0.5ms) rollback transaction
90871
+  (0.1ms) begin transaction
90872
+  (0.0ms) commit transaction
90873
+  (0.0ms) begin transaction
90874
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-12uqycj'
90875
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-12iob6p.csv'
90876
+  (0.1ms) SAVEPOINT active_record_1
90877
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-vewa4b.csv'
90878
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90879
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.766677"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.798454"], ["updated_at", "2017-06-02 23:19:10.798454"]]
90880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90881
+ Processing by CsvImportMagic::ImportersController#update as HTML
90882
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
90883
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90884
+  (0.0ms) SAVEPOINT active_record_1
90885
+ SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:10.818776"], ["id", 1]]
90886
+  (0.4ms) RELEASE SAVEPOINT active_record_1
90887
+ Redirected to http://test.host/csv_import_magic/importers/1
90888
+ Completed 302 Found in 12ms (ActiveRecord: 0.6ms)
90889
+  (0.4ms) rollback transaction
90890
+  (0.0ms) begin transaction
90891
+  (0.0ms) commit transaction
90892
+  (0.0ms) begin transaction
90893
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-6zlwbd'
90894
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1nzv17d.csv'
90895
+  (0.1ms) SAVEPOINT active_record_1
90896
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1lkfrow.csv'
90897
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90898
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.848211"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.878917"], ["updated_at", "2017-06-02 23:19:10.878917"]]
90899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90900
+ Processing by CsvImportMagic::ImportersController#update as HTML
90901
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"}
90902
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90903
+  (0.0ms) SAVEPOINT active_record_1
90904
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
90905
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms)
90906
+ Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.1ms)
90907
+  (0.4ms) rollback transaction
90908
+  (0.0ms) begin transaction
90909
+  (0.0ms) commit transaction
90910
+  (0.0ms) begin transaction
90911
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-m61v4z'
90912
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1pk3ugg.csv'
90913
+  (0.1ms) SAVEPOINT active_record_1
90914
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-17ceoqr.csv'
90915
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90916
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.914044"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.945878"], ["updated_at", "2017-06-02 23:19:10.945878"]]
90917
+  (0.2ms) RELEASE SAVEPOINT active_record_1
90918
+ Processing by CsvImportMagic::ImportersController#edit as HTML
90919
+ Parameters: {"id"=>"1"}
90920
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90921
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms)
90922
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)
90923
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90924
+  (0.5ms) rollback transaction
90925
+  (0.0ms) begin transaction
90926
+  (0.0ms) commit transaction
90927
+  (0.0ms) begin transaction
90928
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-47l1hv'
90929
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-19zd6ob.csv'
90930
+  (0.1ms) SAVEPOINT active_record_1
90931
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-7d0ta9.csv'
90932
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90933
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.975832"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.007744"], ["updated_at", "2017-06-02 23:19:11.007744"]]
90934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90935
+  (0.4ms) rollback transaction
90936
+  (0.1ms) begin transaction
90937
+  (0.1ms) commit transaction
90938
+  (0.0ms) begin transaction
90939
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-18rj0ru'
90940
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1b1a8bw.csv'
90941
+  (0.1ms) SAVEPOINT active_record_1
90942
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1rfrrnr.csv'
90943
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90944
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.032947"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.066497"], ["updated_at", "2017-06-02 23:19:11.066497"]]
90945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90946
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90947
+  (0.0ms) SAVEPOINT active_record_1
90948
+ SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-06-02 23:19:11.073637"], ["id", 1]]
90949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90950
+  (0.5ms) rollback transaction
90951
+  (0.1ms) begin transaction
90952
+  (0.0ms) commit transaction
90953
+  (0.0ms) begin transaction
90954
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170602-54234-m8qnbc'
90955
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-54234-1i4qv3d.csv'
90956
+  (0.1ms) SAVEPOINT active_record_1
90957
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-54234-qkwe84.csv'
90958
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
90959
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-06-02 23:19:11.097796"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.130499"], ["updated_at", "2017-06-02 23:19:11.130499"]]
90960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90961
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90962
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
90963
+  (0.0ms) SAVEPOINT active_record_1
90964
+ SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
90965
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
90966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90967
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90968
+  (0.1ms) SAVEPOINT active_record_1
90969
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170602-54234-sjr6h8.csv'
90970
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/81d0775305805a9a61e7b5574a87a18720170602-54234-1lld1gj.csv'
90971
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/81d0775305805a9a61e7b5574a87a18720170602-54234-1dhuejk.csv'
90972
+ SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170602-54234-sjr6h8.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-06-02 23:19:11.176496"], ["updated_at", "2017-06-02 23:19:11.206301"], ["id", 1]]
90973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
90974
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
90975
+  (0.5ms) rollback transaction
90976
+  (0.1ms) begin transaction
90977
+  (0.0ms) commit transaction
90978
+  (0.0ms) begin transaction
90979
+  (0.1ms) rollback transaction
90980
+  (0.0ms) begin transaction
90981
+  (0.0ms) commit transaction
90982
+  (0.1ms) begin transaction
90983
+  (0.2ms) rollback transaction
90984
+  (0.0ms) begin transaction
90985
+  (0.0ms) commit transaction
90986
+  (0.0ms) begin transaction
90987
+  (0.1ms) rollback transaction
90988
+  (0.0ms) begin transaction
90989
+  (0.0ms) commit transaction
90990
+  (0.0ms) begin transaction
90991
+  (0.1ms) rollback transaction
90992
+  (0.1ms) begin transaction
90993
+  (0.0ms) commit transaction
90994
+  (0.0ms) begin transaction
90995
+  (0.1ms) rollback transaction
90996
+  (0.0ms) begin transaction
90997
+  (0.0ms) commit transaction
90998
+  (0.0ms) begin transaction
90999
+  (0.0ms) rollback transaction
91000
+  (0.0ms) begin transaction
91001
+  (0.0ms) commit transaction
91002
+  (0.0ms) begin transaction
91003
+  (0.0ms) rollback transaction
91004
+  (0.0ms) begin transaction
91005
+  (0.0ms) commit transaction
91006
+  (0.0ms) begin transaction
91007
+  (0.0ms) rollback transaction
91008
+  (0.0ms) begin transaction
91009
+  (0.0ms) commit transaction
91010
+  (0.1ms) begin transaction
91011
+  (0.0ms) rollback transaction
91012
+  (0.0ms) begin transaction
91013
+  (0.0ms) commit transaction
91014
+  (0.0ms) begin transaction
91015
+  (0.0ms) rollback transaction
91016
+  (0.0ms) begin transaction
91017
+  (0.1ms) commit transaction
91018
+  (0.0ms) begin transaction
91019
+  (0.0ms) rollback transaction
91020
+  (0.0ms) begin transaction
91021
+  (0.0ms) commit transaction
91022
+  (0.0ms) begin transaction
91023
+  (0.1ms) rollback transaction
91024
+  (0.1ms) begin transaction
91025
+  (0.0ms) commit transaction
91026
+  (0.1ms) begin transaction
91027
+  (0.0ms) rollback transaction
91028
+  (0.0ms) begin transaction
91029
+  (0.0ms) commit transaction
91030
+  (0.0ms) begin transaction
91031
+  (0.0ms) rollback transaction
91032
+  (0.0ms) begin transaction
91033
+  (0.0ms) commit transaction
91034
+  (0.1ms) begin transaction
91035
+  (0.2ms) SELECT COUNT(*) FROM "companies"
91036
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1xp94hp'
91037
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-bt89e3.csv'
91038
+  (0.1ms) SAVEPOINT active_record_1
91039
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-mmbryv.csv'
91040
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91041
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.304439"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.341853"], ["updated_at", "2017-06-02 23:19:11.341853"]]
91042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91043
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
91044
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
91045
+  (0.1ms) SAVEPOINT active_record_1
91046
+ SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
91047
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
91048
+ SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]
91049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
91050
+  (0.1ms) SELECT COUNT(*) FROM "companies"
91051
+  (0.1ms) SELECT "companies"."name" FROM "companies"
91052
+  (0.1ms) SELECT "companies"."street" FROM "companies"
91053
+  (0.1ms) SELECT "companies"."number" FROM "companies"
91054
+  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"
91055
+  (0.1ms) SELECT "companies"."city" FROM "companies"
91056
+  (0.0ms) SELECT "companies"."state" FROM "companies"
91057
+  (0.0ms) SELECT "companies"."user_id" FROM "companies"
91058
+  (0.5ms) rollback transaction
91059
+  (0.1ms) begin transaction
91060
+  (0.0ms) commit transaction
91061
+  (0.0ms) begin transaction
91062
+  (0.1ms) SELECT COUNT(*) FROM "companies"
91063
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1ur7lh0'
91064
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1u63dhr.csv'
91065
+  (0.1ms) SAVEPOINT active_record_1
91066
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1mio654.csv'
91067
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91068
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.381451"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.413697"], ["updated_at", "2017-06-02 23:19:11.413697"]]
91069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91070
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
91071
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
91072
+  (0.1ms) SAVEPOINT active_record_1
91073
+ SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]
91074
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
91075
+ SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]
91076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
91077
+  (0.1ms) SELECT COUNT(*) FROM "companies"
91078
+  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"
91079
+  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"
91080
+  (0.4ms) rollback transaction
91081
+  (0.1ms) begin transaction
91082
+  (0.0ms) commit transaction
91083
+  (0.0ms) begin transaction
91084
+  (0.0ms) SAVEPOINT active_record_1
91085
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91087
+  (0.1ms) SELECT COUNT(*) FROM "companies"
91088
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-10f817o'
91089
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-kq5gqq.csv'
91090
+  (0.1ms) SAVEPOINT active_record_1
91091
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1vk1att.csv'
91092
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91093
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.448102"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-06-02 23:19:11.479297"], ["updated_at", "2017-06-02 23:19:11.479297"]]
91094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91095
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
91096
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
91097
+ Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]
91098
+  (0.0ms) SAVEPOINT active_record_1
91099
+ SQL (0.2ms) INSERT INTO "companies" ("user_id", "name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["user_id", 1], ["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
91100
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]]
91101
+ SQL (0.1ms) INSERT INTO "companies" ("user_id", "name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["user_id", 1], ["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]
91102
+  (0.4ms) RELEASE SAVEPOINT active_record_1
91103
+  (0.1ms) SELECT COUNT(*) FROM "companies"
91104
+  (0.1ms) SELECT "companies"."name" FROM "companies"
91105
+  (0.1ms) SELECT "companies"."street" FROM "companies"
91106
+  (0.1ms) SELECT "companies"."number" FROM "companies"
91107
+  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"
91108
+  (0.0ms) SELECT "companies"."city" FROM "companies"
91109
+  (0.0ms) SELECT "companies"."state" FROM "companies"
91110
+  (0.0ms) SELECT "companies"."user_id" FROM "companies"
91111
+  (0.5ms) rollback transaction
91112
+  (0.1ms) begin transaction
91113
+  (0.0ms) commit transaction
91114
+  (0.0ms) begin transaction
91115
+  (0.1ms) SELECT COUNT(*) FROM "companies"
91116
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-rpd7p5'
91117
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1xbbpju.csv'
91118
+  (0.1ms) SAVEPOINT active_record_1
91119
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-4lnv3h.csv'
91120
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91121
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.528983"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.564407"], ["updated_at", "2017-06-02 23:19:11.564407"]]
91122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
91123
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
91124
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
91125
+  (0.1ms) SAVEPOINT active_record_1
91126
+ SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]]
91127
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
91128
+ SQL (0.0ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]
91129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
91130
+  (0.1ms) SELECT COUNT(*) FROM "companies"
91131
+  (0.0ms) SELECT "companies"."name" FROM "companies"
91132
+  (0.1ms) SELECT "companies"."street" FROM "companies"
91133
+  (0.1ms) SELECT "companies"."number" FROM "companies"
91134
+  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"
91135
+  (0.0ms) SELECT "companies"."city" FROM "companies"
91136
+  (0.1ms) SELECT "companies"."state" FROM "companies"
91137
+  (0.1ms) SELECT "companies"."user_id" FROM "companies"
91138
+  (0.4ms) rollback transaction
91139
+  (0.1ms) begin transaction
91140
+  (0.0ms) commit transaction
91141
+  (0.0ms) begin transaction
91142
+  (0.1ms) rollback transaction
91143
+  (0.1ms) begin transaction
91144
+  (0.0ms) commit transaction
91145
+  (0.0ms) begin transaction
91146
+  (0.1ms) rollback transaction
91147
+  (0.3ms) begin transaction
91148
+  (0.0ms) commit transaction
91149
+  (0.0ms) begin transaction
91150
+  (0.0ms) rollback transaction
91151
+  (0.1ms) begin transaction
91152
+  (0.0ms) commit transaction
91153
+  (0.1ms) begin transaction
91154
+  (0.0ms) rollback transaction
91155
+  (0.0ms) begin transaction
91156
+  (0.0ms) commit transaction
91157
+  (0.1ms) begin transaction
91158
+  (0.0ms) rollback transaction
91159
+  (0.1ms) begin transaction
91160
+  (0.0ms) commit transaction
91161
+  (0.1ms) begin transaction
91162
+  (0.0ms) rollback transaction
91163
+  (0.0ms) begin transaction
91164
+  (0.0ms) commit transaction
91165
+  (0.0ms) begin transaction
91166
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1xbyv39'
91167
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-z3kqrh.csv'
91168
+  (0.1ms) SAVEPOINT active_record_1
91169
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-ntjv0h.csv'
91170
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91171
+ SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.642679"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.675845"], ["updated_at", "2017-06-02 23:19:11.675845"]]
91172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91173
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
91174
+  (0.5ms) rollback transaction
91175
+  (0.1ms) begin transaction
91176
+  (0.1ms) commit transaction
91177
+  (0.0ms) begin transaction
91178
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-2zo2q7'
91179
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-hsfyqw.csv'
91180
+  (0.2ms) SAVEPOINT active_record_1
91181
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-pg8ekz.csv'
91182
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91183
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.702718"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.736430"], ["updated_at", "2017-06-02 23:19:11.736430"]]
91184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
91185
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
91186
+  (0.3ms) rollback transaction
91187
+  (0.1ms) begin transaction
91188
+  (0.0ms) commit transaction
91189
+  (0.0ms) begin transaction
91190
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-oxsgmt'
91191
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1wedsdc.csv'
91192
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-bnn0gd.csv'
91193
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1wskm7x.csv'
91194
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-26xhkh.csv'
91195
+ [paperclip] Content Type Spoof: Filename companies.csv (application/vnd.ms-excel from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
91196
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-kit208.csv'
91197
+ [paperclip] Content Type Spoof: Filename companies.csv (image/png from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
91198
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-6k3bqb.csv'
91199
+ [paperclip] Content Type Spoof: Filename companies.csv (image/gif from Headers, ["text/comma-separated-values", "text/csv"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination.
91200
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1ll717l.csv'
91201
+  (0.1ms) rollback transaction
91202
+  (0.1ms) begin transaction
91203
+  (0.0ms) commit transaction
91204
+  (0.0ms) begin transaction
91205
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1ewsfz2'
91206
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-bhat5e.csv'
91207
+  (0.1ms) rollback transaction
91208
+  (0.0ms) begin transaction
91209
+  (0.0ms) commit transaction
91210
+  (0.0ms) begin transaction
91211
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-4xtble'
91212
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1ol2jdz.csv'
91213
+  (0.1ms) rollback transaction
91214
+  (0.0ms) begin transaction
91215
+  (0.0ms) commit transaction
91216
+  (0.0ms) begin transaction
91217
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-17l9ra9'
91218
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1mis0ya.csv'
91219
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1jhep.csv'
91220
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-patp5f.csv'
91221
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1pvkyw8.csv'
91222
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1rz6524.csv'
91223
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-18rdr6d.csv'
91224
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-anhum6.csv'
91225
+  (0.1ms) rollback transaction
91226
+  (0.1ms) begin transaction
91227
+  (0.2ms) commit transaction
91228
+  (0.0ms) begin transaction
91229
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1h4u5rg'
91230
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1k0t8dm.csv'
91231
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170602-54234-1uggieg'
91232
+  (0.1ms) rollback transaction
91233
+  (0.1ms) begin transaction
91234
+  (0.0ms) commit transaction
91235
+  (0.0ms) begin transaction
91236
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-8f6e68'
91237
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-11z39u.csv'
91238
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-qd36r.csv'
91239
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1qr89je.csv'
91240
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1djyvnu.csv'
91241
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-cxns3.csv'
91242
+  (0.1ms) rollback transaction
91243
+  (0.1ms) begin transaction
91244
+  (0.2ms) commit transaction
91245
+  (0.0ms) begin transaction
91246
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-11d6pgg'
91247
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-dc5663.csv'
91248
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-cqin4y.csv'
91249
+  (0.1ms) rollback transaction
91250
+  (0.1ms) begin transaction
91251
+  (0.0ms) commit transaction
91252
+  (0.1ms) begin transaction
91253
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1c5sir2'
91254
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-13vwkct.csv'
91255
+  (0.2ms) SAVEPOINT active_record_1
91256
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1hi56qt.csv'
91257
+ SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91258
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:12.301361"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:12.338229"], ["updated_at", "2017-06-02 23:19:12.338229"]]
91259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91260
+  (0.4ms) rollback transaction
91261
+  (0.1ms) begin transaction
91262
+  (0.1ms) commit transaction
91263
+  (0.0ms) begin transaction
91264
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-pt3wp9'
91265
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1hgorjw.csv'
91266
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-yondhm.csv'
91267
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1e77z1s'
91268
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-wsg185.csv'
91269
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-16nh00f.csv'
91270
+  (0.1ms) rollback transaction
91271
+  (0.1ms) begin transaction
91272
+  (0.0ms) commit transaction
91273
+  (0.0ms) begin transaction
91274
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1vjd5p2'
91275
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-t1dze2.csv'
91276
+  (0.1ms) SAVEPOINT active_record_1
91277
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-2woerb.csv'
91278
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91279
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:12.483804"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:12.519069"], ["updated_at", "2017-06-02 23:19:12.519069"]]
91280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91281
+  (0.4ms) rollback transaction
91282
+  (0.1ms) begin transaction
91283
+  (0.0ms) commit transaction
91284
+  (0.1ms) begin transaction
91285
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-q95tne'
91286
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1lsaioi.csv'
91287
+  (0.1ms) SAVEPOINT active_record_1
91288
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-8d6oqr.csv'
91289
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
91290
+ SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:12.544622"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:12.581106"], ["updated_at", "2017-06-02 23:19:12.581106"]]
91291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91292
+  (0.4ms) rollback transaction