csv_import_magic 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -87084,3 +87084,1063 @@ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465
87084
87084
   (0.0ms) commit transaction
87085
87085
   (0.1ms) begin transaction
87086
87086
   (0.1ms) rollback transaction
87087
+  (0.9ms) DELETE FROM "companies";
87088
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
87089
+  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';
87090
+  (0.6ms) DELETE FROM "importers";
87091
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
87092
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';
87093
+  (0.5ms) DELETE FROM "users";
87094
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
87095
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
87096
+  (0.0ms) begin transaction
87097
+  (0.0ms) commit transaction
87098
+  (0.0ms) begin transaction
87099
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-xjti0z'
87100
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-fmsq5n.csv'
87101
+  (0.1ms) SAVEPOINT active_record_1
87102
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-tcm307.csv'
87103
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87104
+ 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-05 17:27:12.873294"], ["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-05 17:27:12.931734"], ["updated_at", "2017-04-05 17:27:12.931734"]]
87105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87106
+  (0.0ms) SAVEPOINT active_record_1
87107
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87109
+  (0.5ms) rollback transaction
87110
+  (0.1ms) begin transaction
87111
+  (0.0ms) commit transaction
87112
+  (0.0ms) begin transaction
87113
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-19hrptc'
87114
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-eogzjs.csv'
87115
+  (0.1ms) SAVEPOINT active_record_1
87116
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-o4hcou.csv'
87117
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87118
+ 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-05 17:27:12.958052"], ["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-05 17:27:12.988566"], ["updated_at", "2017-04-05 17:27:12.988566"]]
87119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87120
+  (0.4ms) rollback transaction
87121
+  (0.0ms) begin transaction
87122
+  (0.0ms) commit transaction
87123
+  (0.0ms) begin transaction
87124
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-uv2y0t'
87125
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1rq65rw.csv'
87126
+  (0.1ms) SAVEPOINT active_record_1
87127
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-18u380.csv'
87128
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87129
+ 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-05 17:27:13.030183"], ["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-05 17:27:13.061211"], ["updated_at", "2017-04-05 17:27:13.061211"]]
87130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87131
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87132
+  (0.1ms) SAVEPOINT active_record_1
87133
+ 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-05 17:27:13.093512"], ["id", 1]]
87134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87135
+  (0.4ms) rollback transaction
87136
+  (0.1ms) begin transaction
87137
+  (0.0ms) commit transaction
87138
+  (0.0ms) begin transaction
87139
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-qbe6hb'
87140
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-xru8v.csv'
87141
+  (0.1ms) SAVEPOINT active_record_1
87142
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-12rhgtr.csv'
87143
+ SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87144
+ 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-05 17:27:13.115061"], ["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-05 17:27:13.150565"], ["updated_at", "2017-04-05 17:27:13.150565"]]
87145
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87146
+  (0.4ms) rollback transaction
87147
+  (0.1ms) begin transaction
87148
+  (0.0ms) commit transaction
87149
+  (0.1ms) begin transaction
87150
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-vzdph4'
87151
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1tamn97.csv'
87152
+  (0.1ms) SAVEPOINT active_record_1
87153
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-lqm2pd.csv'
87154
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87155
+ 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-05 17:27:13.188701"], ["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-05 17:27:13.225342"], ["updated_at", "2017-04-05 17:27:13.225342"]]
87156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87157
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87158
+  (0.4ms) rollback transaction
87159
+  (0.1ms) begin transaction
87160
+  (0.1ms) commit transaction
87161
+  (0.0ms) begin transaction
87162
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-x8u5cc'
87163
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1s1vx89.csv'
87164
+  (0.1ms) SAVEPOINT active_record_1
87165
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1yqeqrc.csv'
87166
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87167
+ 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-05 17:27:13.252189"], ["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-05 17:27:13.283208"], ["updated_at", "2017-04-05 17:27:13.283208"]]
87168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87169
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87170
+  (0.4ms) rollback transaction
87171
+  (0.1ms) begin transaction
87172
+  (0.0ms) commit transaction
87173
+  (0.0ms) begin transaction
87174
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-zw35di'
87175
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1cizmpb.csv'
87176
+  (0.1ms) SAVEPOINT active_record_1
87177
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1guutdr.csv'
87178
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87179
+ 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-05 17:27:13.307371"], ["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-05 17:27:13.340244"], ["updated_at", "2017-04-05 17:27:13.340244"]]
87180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87181
+  (0.4ms) rollback transaction
87182
+  (0.1ms) begin transaction
87183
+  (0.0ms) commit transaction
87184
+  (0.0ms) begin transaction
87185
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1y43td4'
87186
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-137faj8.csv'
87187
+  (0.1ms) rollback transaction
87188
+  (0.1ms) begin transaction
87189
+  (0.0ms) commit transaction
87190
+  (0.0ms) begin transaction
87191
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-yvvc7w'
87192
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1mxji5g.csv'
87193
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170405-54106-8isdjq'
87194
+  (0.1ms) rollback transaction
87195
+  (0.1ms) begin transaction
87196
+  (0.0ms) commit transaction
87197
+  (0.0ms) begin transaction
87198
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-6jh0et'
87199
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-151xu8x.csv'
87200
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1ajtas5.csv'
87201
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-htdvkp.csv'
87202
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1g73qc5.csv'
87203
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-oafabq.csv'
87204
+  (0.1ms) rollback transaction
87205
+  (0.1ms) begin transaction
87206
+  (0.0ms) commit transaction
87207
+  (0.0ms) begin transaction
87208
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1me1nkg'
87209
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-13wu7t3.csv'
87210
+  (0.1ms) rollback transaction
87211
+  (0.0ms) begin transaction
87212
+  (0.0ms) commit transaction
87213
+  (0.0ms) begin transaction
87214
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-sebi9l'
87215
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-6whw0w.csv'
87216
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1t2fomu.csv'
87217
+  (0.1ms) rollback transaction
87218
+  (0.0ms) begin transaction
87219
+  (0.0ms) commit transaction
87220
+  (0.0ms) begin transaction
87221
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1ibnxsg'
87222
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1q12365.csv'
87223
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-pku9er.csv'
87224
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1gh0l14.csv'
87225
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-q5yd48.csv'
87226
+ [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.
87227
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1d3w07i.csv'
87228
+ [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.
87229
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-12bf7sh.csv'
87230
+ [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.
87231
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1dggn9o.csv'
87232
+  (0.1ms) rollback transaction
87233
+  (0.1ms) begin transaction
87234
+  (0.2ms) commit transaction
87235
+  (0.1ms) begin transaction
87236
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-wutd4'
87237
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1841qp6.csv'
87238
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-12revum.csv'
87239
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1ptld93.csv'
87240
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1ku21v2.csv'
87241
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-347ena.csv'
87242
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-nkdje9.csv'
87243
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-nr9k2v.csv'
87244
+  (0.1ms) rollback transaction
87245
+  (0.0ms) begin transaction
87246
+  (0.0ms) commit transaction
87247
+  (0.0ms) begin transaction
87248
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1bzd2pw'
87249
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-176039t.csv'
87250
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1jreo6c.csv'
87251
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1wyw0gw'
87252
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1szvfvl.csv'
87253
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-468eee.csv'
87254
+  (0.1ms) rollback transaction
87255
+  (0.1ms) begin transaction
87256
+  (0.0ms) commit transaction
87257
+  (0.0ms) begin transaction
87258
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-15iwyn9'
87259
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-hlgpsw.csv'
87260
+  (0.1ms) SAVEPOINT active_record_1
87261
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-cy2kxz.csv'
87262
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87263
+ 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-05 17:27:13.977008"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-05 17:27:14.008616"], ["updated_at", "2017-04-05 17:27:14.008616"]]
87264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87265
+  (0.4ms) rollback transaction
87266
+  (0.1ms) begin transaction
87267
+  (0.0ms) commit transaction
87268
+  (0.0ms) begin transaction
87269
+  (0.0ms) rollback transaction
87270
+  (0.0ms) begin transaction
87271
+  (0.0ms) commit transaction
87272
+  (0.2ms) begin transaction
87273
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170405-54106-jzcc8l'
87274
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170405-54106-6iz3fh.csv'
87275
+  (0.1ms) SAVEPOINT active_record_1
87276
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170405-54106-f8h12u.csv'
87277
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87278
+ 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-05 17:27:14.036246"], ["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-05 17:27:14.065726"], ["updated_at", "2017-04-05 17:27:14.065726"]]
87279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87280
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87281
+ Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
87282
+  (0.1ms) SAVEPOINT active_record_1
87283
+ 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", ""]]
87284
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
87285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87286
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87287
+  (0.0ms) SAVEPOINT active_record_1
87288
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170405-54106-13fpq5g.csv'
87289
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/33031800b6a638223817f8f2bca10f0220170405-54106-1988v1y.csv'
87290
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/33031800b6a638223817f8f2bca10f0220170405-54106-1eyx43j.csv'
87291
+ 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", "failures20170405-54106-13fpq5g.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-04-05 17:27:14.112932"], ["updated_at", "2017-04-05 17:27:14.143069"], ["id", 1]]
87292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87293
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87294
+  (0.4ms) rollback transaction
87295
+  (0.1ms) begin transaction
87296
+  (0.0ms) commit transaction
87297
+  (0.0ms) begin transaction
87298
+  (0.1ms) rollback transaction
87299
+  (0.0ms) begin transaction
87300
+  (0.0ms) commit transaction
87301
+  (0.0ms) begin transaction
87302
+  (0.1ms) rollback transaction
87303
+  (0.1ms) begin transaction
87304
+  (0.1ms) commit transaction
87305
+  (0.0ms) begin transaction
87306
+  (0.1ms) rollback transaction
87307
+  (0.0ms) begin transaction
87308
+  (0.0ms) commit transaction
87309
+  (0.0ms) begin transaction
87310
+  (0.1ms) rollback transaction
87311
+  (0.0ms) begin transaction
87312
+  (0.0ms) commit transaction
87313
+  (0.0ms) begin transaction
87314
+  (0.0ms) rollback transaction
87315
+  (0.0ms) begin transaction
87316
+  (0.1ms) commit transaction
87317
+  (0.0ms) begin transaction
87318
+  (0.2ms) SELECT COUNT(*) FROM "companies"
87319
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1usuhqb'
87320
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-g5vjge.csv'
87321
+  (0.1ms) SAVEPOINT active_record_1
87322
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-dqp97r.csv'
87323
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87324
+ 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-05 17:27:14.209225"], ["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-05 17:27:14.235737"], ["updated_at", "2017-04-05 17:27:14.235737"]]
87325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87326
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87327
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
87328
+  (0.1ms) SAVEPOINT active_record_1
87329
+ 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", ""]]
87330
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
87331
+ 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", ""]]
87332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87333
+  (0.1ms) SELECT COUNT(*) FROM "companies"
87334
+  (0.1ms) SELECT "companies"."name" FROM "companies"
87335
+  (0.1ms) SELECT "companies"."street" FROM "companies"
87336
+  (0.0ms) SELECT "companies"."number" FROM "companies"
87337
+  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"
87338
+  (0.0ms) SELECT "companies"."city" FROM "companies"
87339
+  (0.0ms) SELECT "companies"."state" FROM "companies"
87340
+  (0.0ms) SELECT "companies"."user_id" FROM "companies"
87341
+  (0.5ms) rollback transaction
87342
+  (0.1ms) begin transaction
87343
+  (0.1ms) commit transaction
87344
+  (0.0ms) begin transaction
87345
+  (0.1ms) SELECT COUNT(*) FROM "companies"
87346
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-3kyudq'
87347
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-15qu4s.csv'
87348
+  (0.1ms) SAVEPOINT active_record_1
87349
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-pqy8si.csv'
87350
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87351
+ 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-05 17:27:14.270784"], ["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-05 17:27:14.300264"], ["updated_at", "2017-04-05 17:27:14.300264"]]
87352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87353
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87354
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
87355
+  (0.1ms) SAVEPOINT active_record_1
87356
+ 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", ""]]
87357
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
87358
+ 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", ""]]
87359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87360
+  (0.1ms) SELECT COUNT(*) FROM "companies"
87361
+  (0.1ms) SELECT "companies"."name" FROM "companies"
87362
+  (0.0ms) SELECT "companies"."street" FROM "companies"
87363
+  (0.0ms) SELECT "companies"."number" FROM "companies"
87364
+  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"
87365
+  (0.0ms) SELECT "companies"."city" FROM "companies"
87366
+  (0.0ms) SELECT "companies"."state" FROM "companies"
87367
+  (0.0ms) SELECT "companies"."user_id" FROM "companies"
87368
+  (0.5ms) rollback transaction
87369
+  (0.1ms) begin transaction
87370
+  (0.0ms) commit transaction
87371
+  (0.0ms) begin transaction
87372
+  (0.1ms) SAVEPOINT active_record_1
87373
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87375
+  (0.0ms) SELECT COUNT(*) FROM "companies"
87376
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1lxq69l'
87377
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1kzi2ku.csv'
87378
+  (0.1ms) SAVEPOINT active_record_1
87379
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-17z5dfv.csv'
87380
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87381
+ 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-05 17:27:14.337349"], ["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-05 17:27:14.366875"], ["updated_at", "2017-04-05 17:27:14.366875"]]
87382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87383
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87384
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
87385
+ Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]
87386
+  (0.1ms) SAVEPOINT active_record_1
87387
+ 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", ""]]
87388
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]]
87389
+ 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", ""]]
87390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87391
+  (0.1ms) SELECT COUNT(*) FROM "companies"
87392
+  (0.1ms) SELECT "companies"."name" FROM "companies"
87393
+  (0.0ms) SELECT "companies"."street" FROM "companies"
87394
+  (0.1ms) SELECT "companies"."number" FROM "companies"
87395
+  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"
87396
+  (0.0ms) SELECT "companies"."city" FROM "companies"
87397
+  (0.0ms) SELECT "companies"."state" FROM "companies"
87398
+  (0.1ms) SELECT "companies"."user_id" FROM "companies"
87399
+  (0.5ms) rollback transaction
87400
+  (0.1ms) begin transaction
87401
+  (0.0ms) commit transaction
87402
+  (0.0ms) begin transaction
87403
+  (0.1ms) rollback transaction
87404
+  (0.1ms) begin transaction
87405
+  (0.0ms) commit transaction
87406
+  (0.0ms) begin transaction
87407
+  (0.0ms) rollback transaction
87408
+  (0.0ms) begin transaction
87409
+  (0.1ms) commit transaction
87410
+  (0.0ms) begin transaction
87411
+  (0.1ms) rollback transaction
87412
+  (0.1ms) begin transaction
87413
+  (0.0ms) commit transaction
87414
+  (0.0ms) begin transaction
87415
+  (0.1ms) rollback transaction
87416
+  (0.0ms) begin transaction
87417
+  (0.0ms) commit transaction
87418
+  (0.0ms) begin transaction
87419
+  (0.1ms) rollback transaction
87420
+  (0.0ms) begin transaction
87421
+  (0.0ms) commit transaction
87422
+  (0.0ms) begin transaction
87423
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-daxrnw'
87424
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-jk1359.csv'
87425
+  (0.1ms) SAVEPOINT active_record_1
87426
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-mib1yg.csv'
87427
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87428
+ 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-05 17:27:14.475635"], ["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-05 17:27:14.511201"], ["updated_at", "2017-04-05 17:27:14.511201"]]
87429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87430
+ Processing by CsvImportMagic::ImportersController#edit as HTML
87431
+ Parameters: {"id"=>"1"}
87432
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87433
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms)
87434
+ Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.1ms)
87435
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87436
+  (0.5ms) rollback transaction
87437
+  (0.1ms) begin transaction
87438
+  (0.0ms) commit transaction
87439
+  (0.0ms) begin transaction
87440
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1m20y92'
87441
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1gb22a6.csv'
87442
+  (0.1ms) SAVEPOINT active_record_1
87443
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-9purvp.csv'
87444
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87445
+ 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-05 17:27:14.563818"], ["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-05 17:27:14.592509"], ["updated_at", "2017-04-05 17:27:14.592509"]]
87446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87447
+ Processing by CsvImportMagic::ImportersController#show as HTML
87448
+ Parameters: {"id"=>"1"}
87449
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87450
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms)
87451
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)
87452
+  (0.4ms) rollback transaction
87453
+  (0.1ms) begin transaction
87454
+  (0.0ms) commit transaction
87455
+  (0.1ms) begin transaction
87456
+  (0.1ms) SELECT COUNT(*) FROM "importers"
87457
+  (0.0ms) SAVEPOINT active_record_1
87458
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87460
+ Processing by CsvImportMagic::ImportersController#create as HTML
87461
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007ff50f8b92a8 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-iborje>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
87462
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-iborje'
87463
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-8jqcd7.csv'
87464
+  (0.1ms) SAVEPOINT active_record_1
87465
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-yk40ad.csv'
87466
+ 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-05 17:27:14.629723"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-05 17:27:14.659287"], ["updated_at", "2017-04-05 17:27:14.659287"]]
87467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87468
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87469
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
87470
+ Completed 302 Found in 57ms (ActiveRecord: 0.5ms)
87471
+  (0.1ms) SELECT COUNT(*) FROM "importers"
87472
+  (0.5ms) rollback transaction
87473
+  (0.1ms) begin transaction
87474
+  (0.0ms) commit transaction
87475
+  (0.1ms) begin transaction
87476
+  (0.0ms) SAVEPOINT active_record_1
87477
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87479
+ Processing by CsvImportMagic::ImportersController#create as HTML
87480
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007ff508d30428 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1w6ubfy>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
87481
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1w6ubfy'
87482
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-qu0czi.csv'
87483
+  (0.1ms) SAVEPOINT active_record_1
87484
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1p88mao.csv'
87485
+ 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-05 17:27:14.695113"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-05 17:27:14.722924"], ["updated_at", "2017-04-05 17:27:14.722924"]]
87486
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87487
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87488
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
87489
+ Completed 302 Found in 53ms (ActiveRecord: 0.5ms)
87490
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1
87491
+  (0.6ms) rollback transaction
87492
+  (0.1ms) begin transaction
87493
+  (0.1ms) commit transaction
87494
+  (0.0ms) begin transaction
87495
+  (0.1ms) SAVEPOINT active_record_1
87496
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87498
+ Processing by CsvImportMagic::ImportersController#create as HTML
87499
+ Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
87500
+  (0.0ms) SAVEPOINT active_record_1
87501
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
87502
+ Redirected to http://example.com
87503
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
87504
+  (0.4ms) rollback transaction
87505
+  (0.1ms) begin transaction
87506
+  (0.1ms) commit transaction
87507
+  (0.0ms) begin transaction
87508
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1vg0gtd'
87509
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-148zeqm.csv'
87510
+  (0.1ms) SAVEPOINT active_record_1
87511
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-y83ku1.csv'
87512
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87513
+ 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-05 17:27:14.768970"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-05 17:27:14.800500"], ["updated_at", "2017-04-05 17:27:14.800500"]]
87514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87515
+ Processing by CsvImportMagic::ImportersController#update as HTML
87516
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"}
87517
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87518
+  (0.1ms) SAVEPOINT active_record_1
87519
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87520
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms)
87521
+ Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.2ms)
87522
+  (0.3ms) rollback transaction
87523
+  (0.1ms) begin transaction
87524
+  (0.0ms) commit transaction
87525
+  (0.0ms) begin transaction
87526
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1we8paj'
87527
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1j5fz90.csv'
87528
+  (0.1ms) SAVEPOINT active_record_1
87529
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1kz9hsc.csv'
87530
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87531
+ SQL (0.3ms) 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-05 17:27:14.832911"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-05 17:27:14.863685"], ["updated_at", "2017-04-05 17:27:14.863685"]]
87532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87533
+ Processing by CsvImportMagic::ImportersController#update as HTML
87534
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
87535
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87536
+  (0.1ms) SAVEPOINT active_record_1
87537
+ 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-05 17:27:14.876085"], ["id", 1]]
87538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87539
+ Redirected to http://test.host/csv_import_magic/importers/1
87540
+ Completed 302 Found in 13ms (ActiveRecord: 0.4ms)
87541
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87542
+  (0.4ms) rollback transaction
87543
+  (0.1ms) begin transaction
87544
+  (0.0ms) commit transaction
87545
+  (0.0ms) begin transaction
87546
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-18m3f80'
87547
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-qhucfi.csv'
87548
+  (0.1ms) SAVEPOINT active_record_1
87549
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-n0g2ob.csv'
87550
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87551
+ 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-05 17:27:14.904324"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-05 17:27:14.935625"], ["updated_at", "2017-04-05 17:27:14.935625"]]
87552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87553
+ Processing by CsvImportMagic::ImportersController#update as HTML
87554
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
87555
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87556
+  (0.1ms) SAVEPOINT active_record_1
87557
+ 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-05 17:27:14.947775"], ["id", 1]]
87558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87559
+ Redirected to http://test.host/csv_import_magic/importers/1
87560
+ Completed 302 Found in 8ms (ActiveRecord: 0.2ms)
87561
+  (0.5ms) rollback transaction
87562
+  (0.1ms) begin transaction
87563
+  (0.0ms) commit transaction
87564
+  (0.0ms) begin transaction
87565
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-sajo8d'
87566
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1jc2knq.csv'
87567
+  (0.1ms) SAVEPOINT active_record_1
87568
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1gcf0y0.csv'
87569
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87570
+ 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-05 17:27:14.972813"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-05 17:27:15.002866"], ["updated_at", "2017-04-05 17:27:15.002866"]]
87571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87572
+ Processing by CsvImportMagic::ImportersController#update as HTML
87573
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
87574
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87575
+  (0.1ms) SAVEPOINT active_record_1
87576
+ 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-05 17:27:15.015201"], ["id", 1]]
87577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87578
+ Redirected to http://test.host/csv_import_magic/importers/1
87579
+ Completed 302 Found in 11ms (ActiveRecord: 0.2ms)
87580
+  (0.4ms) rollback transaction
87581
+  (0.1ms) begin transaction
87582
+  (0.0ms) commit transaction
87583
+  (0.0ms) begin transaction
87584
+  (0.0ms) rollback transaction
87585
+  (0.0ms) begin transaction
87586
+  (0.0ms) commit transaction
87587
+  (0.1ms) begin transaction
87588
+  (0.0ms) rollback transaction
87589
+  (0.0ms) begin transaction
87590
+  (0.0ms) commit transaction
87591
+  (0.0ms) begin transaction
87592
+  (0.0ms) rollback transaction
87593
+  (0.1ms) begin transaction
87594
+  (0.0ms) commit transaction
87595
+  (0.0ms) begin transaction
87596
+  (0.0ms) rollback transaction
87597
+  (0.0ms) begin transaction
87598
+  (0.0ms) commit transaction
87599
+  (0.0ms) begin transaction
87600
+  (0.0ms) rollback transaction
87601
+  (0.0ms) begin transaction
87602
+  (0.1ms) commit transaction
87603
+  (0.0ms) begin transaction
87604
+  (0.0ms) rollback transaction
87605
+  (0.0ms) begin transaction
87606
+  (0.0ms) commit transaction
87607
+  (0.0ms) begin transaction
87608
+  (0.1ms) rollback transaction
87609
+  (0.0ms) begin transaction
87610
+  (0.1ms) commit transaction
87611
+  (0.0ms) begin transaction
87612
+  (0.0ms) rollback transaction
87613
+  (0.1ms) begin transaction
87614
+  (0.0ms) commit transaction
87615
+  (0.0ms) begin transaction
87616
+  (0.1ms) rollback transaction
87617
+  (1.2ms) DELETE FROM "companies";
87618
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
87619
+  (0.6ms) DELETE FROM sqlite_sequence where name = 'companies';
87620
+  (0.8ms) DELETE FROM "importers";
87621
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
87622
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';
87623
+  (0.6ms) DELETE FROM "users";
87624
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
87625
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
87626
+  (0.0ms) begin transaction
87627
+  (0.0ms) commit transaction
87628
+  (0.0ms) begin transaction
87629
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-zuh3ag'
87630
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-2p6fjg.csv'
87631
+  (0.1ms) SAVEPOINT active_record_1
87632
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lrr9oi.csv'
87633
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87634
+ 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 19:52:27.398592"], ["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 19:52:27.460100"], ["updated_at", "2017-04-06 19:52:27.460100"]]
87635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87636
+  (0.0ms) SAVEPOINT active_record_1
87637
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87639
+  (0.4ms) rollback transaction
87640
+  (0.0ms) begin transaction
87641
+  (0.0ms) commit transaction
87642
+  (0.0ms) begin transaction
87643
+  (0.1ms) rollback transaction
87644
+  (0.1ms) begin transaction
87645
+  (0.0ms) commit transaction
87646
+  (0.0ms) begin transaction
87647
+  (0.1ms) rollback transaction
87648
+  (0.3ms) begin transaction
87649
+  (0.0ms) commit transaction
87650
+  (0.0ms) begin transaction
87651
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1m2akre'
87652
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-c79kr3.csv'
87653
+  (0.1ms) SAVEPOINT active_record_1
87654
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-h4b6z7.csv'
87655
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87656
+ 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 19:52:27.522427"], ["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 19:52:27.555053"], ["updated_at", "2017-04-06 19:52:27.555053"]]
87657
+  (0.3ms) RELEASE SAVEPOINT active_record_1
87658
+ Processing by CsvImportMagic::ImportersController#show as HTML
87659
+ Parameters: {"id"=>"1"}
87660
+ Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87661
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms)
87662
+ Completed 200 OK in 31ms (Views: 19.3ms | ActiveRecord: 0.2ms)
87663
+  (0.5ms) rollback transaction
87664
+  (0.1ms) begin transaction
87665
+  (0.2ms) commit transaction
87666
+  (0.0ms) begin transaction
87667
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-inhput'
87668
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-eel28t.csv'
87669
+  (0.1ms) SAVEPOINT active_record_1
87670
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-s7pt3e.csv'
87671
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87672
+ 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 19:52:27.619269"], ["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 19:52:27.653484"], ["updated_at", "2017-04-06 19:52:27.653484"]]
87673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87674
+ Processing by CsvImportMagic::ImportersController#edit as HTML
87675
+ Parameters: {"id"=>"1"}
87676
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87677
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms)
87678
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms)
87679
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87680
+  (0.5ms) rollback transaction
87681
+  (0.1ms) begin transaction
87682
+  (0.0ms) commit transaction
87683
+  (0.0ms) begin transaction
87684
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-y3ebob'
87685
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1seunbn.csv'
87686
+  (0.1ms) SAVEPOINT active_record_1
87687
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-bngfyc.csv'
87688
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87689
+ 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 19:52:27.696490"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 19:52:27.728757"], ["updated_at", "2017-04-06 19:52:27.728757"]]
87690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87691
+ Processing by CsvImportMagic::ImportersController#update as HTML
87692
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"}
87693
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87694
+  (0.1ms) SAVEPOINT active_record_1
87695
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
87696
+ Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms)
87697
+ Completed 200 OK in 23ms (Views: 0.6ms | ActiveRecord: 0.2ms)
87698
+  (0.4ms) rollback transaction
87699
+  (0.0ms) begin transaction
87700
+  (0.0ms) commit transaction
87701
+  (0.0ms) begin transaction
87702
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-14p5teo'
87703
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-163nbc2.csv'
87704
+  (0.1ms) SAVEPOINT active_record_1
87705
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-qgc72i.csv'
87706
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87707
+ 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 19:52:27.782749"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 19:52:27.812434"], ["updated_at", "2017-04-06 19:52:27.812434"]]
87708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87709
+ Processing by CsvImportMagic::ImportersController#update as HTML
87710
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
87711
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87712
+  (0.1ms) SAVEPOINT active_record_1
87713
+ 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 19:52:27.849763"], ["id", 1]]
87714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87715
+ Redirected to http://test.host/csv_import_magic/importers/1
87716
+ Completed 302 Found in 13ms (ActiveRecord: 0.3ms)
87717
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87718
+  (0.3ms) rollback transaction
87719
+  (0.0ms) begin transaction
87720
+  (0.0ms) commit transaction
87721
+  (0.0ms) begin transaction
87722
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1w0txnc'
87723
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-noc3lp.csv'
87724
+  (0.1ms) SAVEPOINT active_record_1
87725
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1ksum9g.csv'
87726
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87727
+ 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 19:52:27.882798"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 19:52:27.911631"], ["updated_at", "2017-04-06 19:52:27.911631"]]
87728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87729
+ Processing by CsvImportMagic::ImportersController#update as HTML
87730
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
87731
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87732
+  (0.1ms) SAVEPOINT active_record_1
87733
+ 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 19:52:27.936928"], ["id", 1]]
87734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87735
+ Redirected to http://test.host/csv_import_magic/importers/1
87736
+ Completed 302 Found in 9ms (ActiveRecord: 0.3ms)
87737
+  (0.5ms) rollback transaction
87738
+  (0.1ms) begin transaction
87739
+  (0.0ms) commit transaction
87740
+  (0.0ms) begin transaction
87741
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1i28ri4'
87742
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-8lbdz7.csv'
87743
+  (0.1ms) SAVEPOINT active_record_1
87744
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-datbs7.csv'
87745
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87746
+ 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 19:52:27.964132"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 19:52:27.995064"], ["updated_at", "2017-04-06 19:52:27.995064"]]
87747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87748
+ Processing by CsvImportMagic::ImportersController#update as HTML
87749
+ Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"}
87750
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87751
+  (0.1ms) SAVEPOINT active_record_1
87752
+ 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 19:52:28.007407"], ["id", 1]]
87753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87754
+ Redirected to http://test.host/csv_import_magic/importers/1
87755
+ Completed 302 Found in 11ms (ActiveRecord: 0.2ms)
87756
+  (0.5ms) rollback transaction
87757
+  (0.1ms) begin transaction
87758
+  (0.0ms) commit transaction
87759
+  (0.0ms) begin transaction
87760
+  (0.1ms) SAVEPOINT active_record_1
87761
+ SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87763
+ Processing by CsvImportMagic::ImportersController#create as HTML
87764
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fa779349400 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-of5d1j>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
87765
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-of5d1j'
87766
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-vgysm7.csv'
87767
+  (0.1ms) SAVEPOINT active_record_1
87768
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1el6xhr.csv'
87769
+ 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 19:52:28.043977"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 19:52:28.071428"], ["updated_at", "2017-04-06 19:52:28.071428"]]
87770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87771
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87772
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
87773
+ Completed 302 Found in 54ms (ActiveRecord: 0.5ms)
87774
+ Importer Load (0.7ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1
87775
+  (0.5ms) rollback transaction
87776
+  (0.1ms) begin transaction
87777
+  (0.0ms) commit transaction
87778
+  (0.0ms) begin transaction
87779
+  (0.2ms) SELECT COUNT(*) FROM "importers"
87780
+  (0.0ms) SAVEPOINT active_record_1
87781
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87783
+ Processing by CsvImportMagic::ImportersController#create as HTML
87784
+ Parameters: {"importer"=>{"attachment"=>#<Rack::Test::UploadedFile:0x007fa774dd5f68 @content_type=nil, @original_filename="companies.csv", @tempfile=#<Tempfile:/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1mkr0pb>>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
87785
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1mkr0pb'
87786
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1wjqoec.csv'
87787
+  (0.1ms) SAVEPOINT active_record_1
87788
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-jzwzif.csv'
87789
+ 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 19:52:28.118311"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 19:52:28.147632"], ["updated_at", "2017-04-06 19:52:28.147632"]]
87790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87791
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87792
+ Redirected to http://test.host/csv_import_magic/importers/1/edit
87793
+ Completed 302 Found in 59ms (ActiveRecord: 0.5ms)
87794
+  (0.1ms) SELECT COUNT(*) FROM "importers"
87795
+  (0.5ms) rollback transaction
87796
+  (0.1ms) begin transaction
87797
+  (0.0ms) commit transaction
87798
+  (0.0ms) begin transaction
87799
+  (0.1ms) SAVEPOINT active_record_1
87800
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87802
+ Processing by CsvImportMagic::ImportersController#create as HTML
87803
+ Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}
87804
+  (0.0ms) SAVEPOINT active_record_1
87805
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87806
+ Redirected to http://example.com
87807
+ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
87808
+  (0.4ms) rollback transaction
87809
+  (0.0ms) begin transaction
87810
+  (0.0ms) commit transaction
87811
+  (0.0ms) begin transaction
87812
+  (0.1ms) rollback transaction
87813
+  (0.0ms) begin transaction
87814
+  (0.0ms) commit transaction
87815
+  (0.1ms) begin transaction
87816
+  (0.0ms) rollback transaction
87817
+  (0.0ms) begin transaction
87818
+  (0.0ms) commit transaction
87819
+  (0.0ms) begin transaction
87820
+  (0.1ms) rollback transaction
87821
+  (0.0ms) begin transaction
87822
+  (0.0ms) commit transaction
87823
+  (0.0ms) begin transaction
87824
+  (0.1ms) rollback transaction
87825
+  (0.0ms) begin transaction
87826
+  (0.0ms) commit transaction
87827
+  (0.0ms) begin transaction
87828
+  (0.0ms) rollback transaction
87829
+  (0.1ms) begin transaction
87830
+  (0.1ms) commit transaction
87831
+  (0.0ms) begin transaction
87832
+  (0.0ms) rollback transaction
87833
+  (0.0ms) begin transaction
87834
+  (0.0ms) commit transaction
87835
+  (0.0ms) begin transaction
87836
+  (0.1ms) rollback transaction
87837
+  (0.0ms) begin transaction
87838
+  (0.0ms) commit transaction
87839
+  (0.0ms) begin transaction
87840
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170406-92002-19gzjw9'
87841
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-92002-h0wvma.csv'
87842
+  (0.1ms) SAVEPOINT active_record_1
87843
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-92002-irolfa.csv'
87844
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87845
+ 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 19:52:28.247634"], ["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 19:52:28.281020"], ["updated_at", "2017-04-06 19:52:28.281020"]]
87846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87847
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87848
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
87849
+  (0.0ms) SAVEPOINT active_record_1
87850
+ 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", ""]]
87851
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
87852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87853
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87854
+  (0.0ms) SAVEPOINT active_record_1
87855
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170406-92002-8pd0oz.csv'
87856
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4f34ac7af1d85937a68bd0b0b45b0e4020170406-92002-cak0jm.csv'
87857
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4f34ac7af1d85937a68bd0b0b45b0e4020170406-92002-15qx3v8.csv'
87858
+ 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", "failures20170406-92002-8pd0oz.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-04-06 19:52:28.329502"], ["updated_at", "2017-04-06 19:52:28.357454"], ["id", 1]]
87859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
87860
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87861
+  (0.4ms) rollback transaction
87862
+  (0.1ms) begin transaction
87863
+  (0.0ms) commit transaction
87864
+  (0.0ms) begin transaction
87865
+  (0.0ms) rollback transaction
87866
+  (0.1ms) begin transaction
87867
+  (0.0ms) commit transaction
87868
+  (0.0ms) begin transaction
87869
+  (0.0ms) rollback transaction
87870
+  (0.0ms) begin transaction
87871
+  (0.0ms) commit transaction
87872
+  (0.0ms) begin transaction
87873
+  (0.0ms) rollback transaction
87874
+  (0.1ms) begin transaction
87875
+  (0.0ms) commit transaction
87876
+  (0.0ms) begin transaction
87877
+  (0.0ms) rollback transaction
87878
+  (0.1ms) begin transaction
87879
+  (0.0ms) commit transaction
87880
+  (0.0ms) begin transaction
87881
+  (0.0ms) rollback transaction
87882
+  (0.0ms) begin transaction
87883
+  (0.0ms) commit transaction
87884
+  (0.0ms) begin transaction
87885
+  (0.0ms) rollback transaction
87886
+  (0.0ms) begin transaction
87887
+  (0.0ms) commit transaction
87888
+  (0.1ms) begin transaction
87889
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-135oref'
87890
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-15xywcl.csv'
87891
+  (0.1ms) SAVEPOINT active_record_1
87892
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-19ttdeo.csv'
87893
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87894
+ 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 19:52:28.390984"], ["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 19:52:28.422040"], ["updated_at", "2017-04-06 19:52:28.422040"]]
87895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87896
+  (0.4ms) rollback transaction
87897
+  (0.1ms) begin transaction
87898
+  (0.0ms) commit transaction
87899
+  (0.1ms) begin transaction
87900
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1pmprmn'
87901
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-ue1zrq.csv'
87902
+  (0.1ms) SAVEPOINT active_record_1
87903
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1hf8etu.csv'
87904
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87905
+ 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 19:52:28.448188"], ["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 19:52:28.481039"], ["updated_at", "2017-04-06 19:52:28.481039"]]
87906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87907
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87908
+  (0.3ms) rollback transaction
87909
+  (0.0ms) begin transaction
87910
+  (0.1ms) commit transaction
87911
+  (0.0ms) begin transaction
87912
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1g8nw4n'
87913
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-8nx5je.csv'
87914
+  (0.1ms) SAVEPOINT active_record_1
87915
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1tf5phh.csv'
87916
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87917
+ 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 19:52:28.503919"], ["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 19:52:28.534849"], ["updated_at", "2017-04-06 19:52:28.534849"]]
87918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87919
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
87920
+  (0.5ms) rollback transaction
87921
+  (0.1ms) begin transaction
87922
+  (0.0ms) commit transaction
87923
+  (0.0ms) begin transaction
87924
+  (0.1ms) rollback transaction
87925
+  (0.1ms) begin transaction
87926
+  (0.1ms) commit transaction
87927
+  (0.0ms) begin transaction
87928
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-p9mqww'
87929
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-48wp7i.csv'
87930
+  (0.1ms) SAVEPOINT active_record_1
87931
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1sx077.csv'
87932
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
87933
+ 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 19:52:28.561443"], ["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 19:52:28.593280"], ["updated_at", "2017-04-06 19:52:28.593280"]]
87934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
87935
+  (0.4ms) rollback transaction
87936
+  (0.1ms) begin transaction
87937
+  (0.1ms) commit transaction
87938
+  (0.0ms) begin transaction
87939
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-h4de84'
87940
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-105320a.csv'
87941
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1eoaxun.csv'
87942
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1y6ivoa.csv'
87943
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-davwbb.csv'
87944
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1tazzjr.csv'
87945
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-otzkwa.csv'
87946
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-khlxvq.csv'
87947
+  (0.1ms) rollback transaction
87948
+  (0.1ms) begin transaction
87949
+  (0.0ms) commit transaction
87950
+  (0.0ms) begin transaction
87951
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-fd1u2q'
87952
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1uxe68h.csv'
87953
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-ed9fj6.csv'
87954
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-10qk2bn.csv'
87955
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1wj0h4n.csv'
87956
+ [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.
87957
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-15efexu.csv'
87958
+ [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.
87959
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1npjp58.csv'
87960
+ [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.
87961
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1s6sct9.csv'
87962
+  (0.1ms) rollback transaction
87963
+  (0.1ms) begin transaction
87964
+  (0.0ms) commit transaction
87965
+  (0.0ms) begin transaction
87966
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1cmaz34'
87967
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-y2v8hg.csv'
87968
+  (0.1ms) rollback transaction
87969
+  (0.1ms) begin transaction
87970
+  (0.0ms) commit transaction
87971
+  (0.0ms) begin transaction
87972
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1kvw3ww'
87973
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lefmoa.csv'
87974
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170406-92002-1kf3h4h'
87975
+  (0.1ms) rollback transaction
87976
+  (0.1ms) begin transaction
87977
+  (0.0ms) commit transaction
87978
+  (0.0ms) begin transaction
87979
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1b68nu9'
87980
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-14057k3.csv'
87981
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-170ifbc.csv'
87982
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lz1el9.csv'
87983
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1ug41gf.csv'
87984
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-hauh8y.csv'
87985
+  (0.1ms) rollback transaction
87986
+  (0.1ms) begin transaction
87987
+  (0.0ms) commit transaction
87988
+  (0.0ms) begin transaction
87989
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-ybydwx'
87990
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-wxvf3h.csv'
87991
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-4n9mki.csv'
87992
+  (0.1ms) rollback transaction
87993
+  (0.1ms) begin transaction
87994
+  (0.0ms) commit transaction
87995
+  (0.0ms) begin transaction
87996
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1esfjqy'
87997
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-16nui6e.csv'
87998
+  (0.1ms) rollback transaction
87999
+  (0.2ms) begin transaction
88000
+  (0.1ms) commit transaction
88001
+  (0.1ms) begin transaction
88002
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-k3wqco'
88003
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1kpaomf.csv'
88004
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lhx0p4.csv'
88005
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-x79fwf'
88006
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-2tclls.csv'
88007
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1phze2w.csv'
88008
+  (0.1ms) rollback transaction
88009
+  (0.1ms) begin transaction
88010
+  (0.0ms) commit transaction
88011
+  (0.1ms) begin transaction
88012
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1vk8jo7'
88013
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-wiv477.csv'
88014
+  (0.2ms) SAVEPOINT active_record_1
88015
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-pp8heh.csv'
88016
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88017
+ 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 19:52:29.216401"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 19:52:29.249013"], ["updated_at", "2017-04-06 19:52:29.249013"]]
88018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88019
+  (0.4ms) rollback transaction
88020
+  (0.1ms) begin transaction
88021
+  (0.0ms) commit transaction
88022
+  (0.0ms) begin transaction
88023
+  (0.1ms) rollback transaction
88024
+  (0.1ms) begin transaction
88025
+  (0.0ms) commit transaction
88026
+  (0.0ms) begin transaction
88027
+  (0.1ms) rollback transaction
88028
+  (0.0ms) begin transaction
88029
+  (0.0ms) commit transaction
88030
+  (0.1ms) begin transaction
88031
+  (0.3ms) rollback transaction
88032
+  (0.1ms) begin transaction
88033
+  (0.0ms) commit transaction
88034
+  (0.0ms) begin transaction
88035
+  (0.1ms) SAVEPOINT active_record_1
88036
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88038
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88039
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1vedv1z'
88040
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-n65bux.csv'
88041
+  (0.1ms) SAVEPOINT active_record_1
88042
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1ee78ce.csv'
88043
+ SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88044
+ 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 19:52:29.308172"], ["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 19:52:29.339934"], ["updated_at", "2017-04-06 19:52:29.339934"]]
88045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88046
+ Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88047
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
88048
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]
88049
+  (0.0ms) SAVEPOINT active_record_1
88050
+ 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", ""]]
88051
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]]
88052
+ 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", ""]]
88053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88054
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88055
+  (0.1ms) SELECT "companies"."name" FROM "companies"
88056
+  (0.1ms) SELECT "companies"."street" FROM "companies"
88057
+  (0.0ms) SELECT "companies"."number" FROM "companies"
88058
+  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"
88059
+  (0.1ms) SELECT "companies"."city" FROM "companies"
88060
+  (0.0ms) SELECT "companies"."state" FROM "companies"
88061
+  (0.2ms) SELECT "companies"."user_id" FROM "companies"
88062
+  (0.4ms) rollback transaction
88063
+  (0.0ms) begin transaction
88064
+  (0.0ms) commit transaction
88065
+  (0.0ms) begin transaction
88066
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88067
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-t6yjoy'
88068
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-h79gxz.csv'
88069
+  (0.1ms) SAVEPOINT active_record_1
88070
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1j5yg0d.csv'
88071
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88072
+ 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 19:52:29.392320"], ["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 19:52:29.424551"], ["updated_at", "2017-04-06 19:52:29.424551"]]
88073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88074
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88075
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
88076
+  (0.1ms) SAVEPOINT active_record_1
88077
+ 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", ""]]
88078
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
88079
+ 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", ""]]
88080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88081
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88082
+  (0.1ms) SELECT "companies"."name" FROM "companies"
88083
+  (0.1ms) SELECT "companies"."street" FROM "companies"
88084
+  (0.1ms) SELECT "companies"."number" FROM "companies"
88085
+  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"
88086
+  (0.0ms) SELECT "companies"."city" FROM "companies"
88087
+  (0.0ms) SELECT "companies"."state" FROM "companies"
88088
+  (0.0ms) SELECT "companies"."user_id" FROM "companies"
88089
+  (0.4ms) rollback transaction
88090
+  (0.0ms) begin transaction
88091
+  (0.0ms) commit transaction
88092
+  (0.0ms) begin transaction
88093
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88094
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-od4cjr'
88095
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-10kaj5z.csv'
88096
+  (0.1ms) SAVEPOINT active_record_1
88097
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1sqndg6.csv'
88098
+ SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88099
+ 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 19:52:29.463544"], ["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 19:52:29.495051"], ["updated_at", "2017-04-06 19:52:29.495051"]]
88100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88101
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88102
+ Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]
88103
+  (0.1ms) SAVEPOINT active_record_1
88104
+ 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", ""]]
88105
+ Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]
88106
+ 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", ""]]
88107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88108
+  (0.1ms) SELECT COUNT(*) FROM "companies"
88109
+  (0.1ms) SELECT "companies"."name" FROM "companies"
88110
+  (0.1ms) SELECT "companies"."street" FROM "companies"
88111
+  (0.1ms) SELECT "companies"."number" FROM "companies"
88112
+  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"
88113
+  (0.1ms) SELECT "companies"."city" FROM "companies"
88114
+  (0.1ms) SELECT "companies"."state" FROM "companies"
88115
+  (0.1ms) SELECT "companies"."user_id" FROM "companies"
88116
+  (0.4ms) rollback transaction
88117
+  (0.1ms) begin transaction
88118
+  (0.0ms) commit transaction
88119
+  (0.0ms) begin transaction
88120
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1dii11q'
88121
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-6lcac5.csv'
88122
+  (0.1ms) SAVEPOINT active_record_1
88123
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-bh7pjr.csv'
88124
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88125
+ 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 19:52:29.531137"], ["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 19:52:29.564481"], ["updated_at", "2017-04-06 19:52:29.564481"]]
88126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88127
+ Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]
88128
+  (0.1ms) SAVEPOINT active_record_1
88129
+ SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-04-06 19:52:29.573788"], ["id", 1]]
88130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88131
+  (0.5ms) rollback transaction
88132
+  (0.1ms) begin transaction
88133
+  (0.0ms) commit transaction
88134
+  (0.0ms) begin transaction
88135
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1fpdcio'
88136
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-3zr2cz.csv'
88137
+  (0.1ms) SAVEPOINT active_record_1
88138
+ Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lkis0n.csv'
88139
+ SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]
88140
+ 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 19:52:29.597042"], ["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 19:52:29.629903"], ["updated_at", "2017-04-06 19:52:29.629903"]]
88141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88142
+  (0.5ms) rollback transaction
88143
+  (0.1ms) begin transaction
88144
+  (0.1ms) commit transaction
88145
+  (0.1ms) begin transaction
88146
+  (0.1ms) rollback transaction