(0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (0.9ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "error" varchar, "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.7ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34074-1dr5bog' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-4m13g3.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-1q571e6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:53:56.544497"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:53:56.601799"], ["updated_at", "2017-01-17 16:53:56.601799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34074-id9lwc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-1owc20m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-1yk0j9g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:53:56.626915"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:53:56.656226"], ["updated_at", "2017-01-17 16:53:56.656226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34074-1riww8x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-1qwv4kj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-mw03ru.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:53:56.684363"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:53:56.716795"], ["updated_at", "2017-01-17 16:53:56.716795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-34074-e16mh3'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34074-1w8vohv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-1bbe6qu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-15k072f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34074-1a5y6ee' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-1d851m6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34074-ikr5c6.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34101-383hkf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34101-9zc9sr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34101-17vdz3z.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:54:02.513993"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:54:02.560985"], ["updated_at", "2017-01-17 16:54:02.560985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34174-hqax8b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34174-197z0wz.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34174-qly0q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:55:21.307752"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:55:21.353565"], ["updated_at", "2017-01-17 16:55:21.353565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34220-1bf90pb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34220-15p1h19.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34220-125d41c.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:55:43.153779"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:55:43.200875"], ["updated_at", "2017-01-17 16:55:43.200875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34258-1n1shud' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34258-46qf5p.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34258-2l9o0u.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:56:12.146388"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:56:12.195400"], ["updated_at", "2017-01-17 16:56:12.195400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34312-1kb32tc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34312-cvld5r.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34312-1i7lnzk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:56:44.974946"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:56:45.023165"], ["updated_at", "2017-01-17 16:56:45.023165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.6ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34340-rlbehx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34340-boowah.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34340-1mmug8q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:56:58.440047"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:56:58.485531"], ["updated_at", "2017-01-17 16:56:58.485531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34422-1ntcz2z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34422-1qte7q5.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34422-155tbfh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:58:04.745274"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:58:04.791172"], ["updated_at", "2017-01-17 16:58:04.791172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34462-pq6qnn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34462-6b8q8j.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34462-12mmguc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 16:58:29.738935"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 16:58:29.783301"], ["updated_at", "2017-01-17 16:58:29.783301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34664-1w1e57u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34664-14fy7yn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34664-8p8j4n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:01:27.708264"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:01:27.756376"], ["updated_at", "2017-01-17 17:01:27.756376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34705-1qx60w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34705-9vpfm3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34705-tr2r7l.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:01:48.213145"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:01:48.262930"], ["updated_at", "2017-01-17 17:01:48.262930"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34761-fjcwoa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34761-1dp4der.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34761-1b762qq.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:02:03.026247"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:02:03.070711"], ["updated_at", "2017-01-17 17:02:03.070711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34854-15bjt4f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34854-1ac92wl.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34854-obx5jq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:03:07.191397"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:03:07.238819"], ["updated_at", "2017-01-17 17:03:07.238819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34901-1vaqr9i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34901-1mle7xg.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34901-v39d6n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:03:34.192686"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:03:34.236180"], ["updated_at", "2017-01-17 17:03:34.236180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34935-ysw2iu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34935-13gn0k4.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34935-168prrw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:03:46.980435"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:03:47.023085"], ["updated_at", "2017-01-17 17:03:47.023085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.5ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-34970-19ckne0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34970-1dpb2gs.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-34970-1wl6v6d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:03:56.488453"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:03:56.548403"], ["updated_at", "2017-01-17 17:03:56.548403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35109-1csb7zn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35109-17sw6yp.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35109-qis1s.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:06:43.455399"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:06:43.500242"], ["updated_at", "2017-01-17 17:06:43.500242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35187-11bmytj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35187-29pc11.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35187-8byik0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:07:23.992631"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:07:24.038886"], ["updated_at", "2017-01-17 17:07:24.038886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35305-1jcddkf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35305-umjomw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35305-14uxdi1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:09:51.412077"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:09:51.460507"], ["updated_at", "2017-01-17 17:09:51.460507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35340-w7pjr1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35340-7vn92z.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35340-1v1baix.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:10:11.276403"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:10:11.323427"], ["updated_at", "2017-01-17 17:10:11.323427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35386-i45bkx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35386-xqbvkk.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35386-mrutjp.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:10:35.456318"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:10:35.506752"], ["updated_at", "2017-01-17 17:10:35.506752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35419-uy3i97' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35419-acr4lz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35419-10o2ae6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:10:47.457878"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:10:47.503502"], ["updated_at", "2017-01-17 17:10:47.503502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35449-jdad8g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35449-pq24tw.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35449-1dd06u2.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:10:56.250207"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:10:56.297826"], ["updated_at", "2017-01-17 17:10:56.297826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35484-1yx4v1d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35484-1t18m7j.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35484-1k5v0b5.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:11:14.114137"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:11:14.158201"], ["updated_at", "2017-01-17 17:11:14.158201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35540-1fgetr2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35540-3i6as9.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35540-1koqyrv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:12:02.088866"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:12:02.131818"], ["updated_at", "2017-01-17 17:12:02.131818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35584-81glfu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35584-5i1sw7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35584-1kiscm3.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:12:22.055220"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:12:22.103676"], ["updated_at", "2017-01-17 17:12:22.103676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35616-13tmij9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35616-1hgu6hj.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35616-2mm3vo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:12:28.713071"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:12:28.755746"], ["updated_at", "2017-01-17 17:12:28.755746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35671-lkabu1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35671-1nrhigd.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35671-mwzd45.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:12:50.560621"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:12:50.613028"], ["updated_at", "2017-01-17 17:12:50.613028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.5ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35709-11o9482' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35709-16i4nby.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35709-10yyhos.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:13:12.169755"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:13:12.219377"], ["updated_at", "2017-01-17 17:13:12.219377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35798-1gy1jmj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35798-jlfe6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35798-3g56in.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:14:20.528232"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:14:20.575484"], ["updated_at", "2017-01-17 17:14:20.575484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35838-1wutxuv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35838-1i6uoic.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35838-1hbt7vy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:14:39.398614"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:14:39.442162"], ["updated_at", "2017-01-17 17:14:39.442162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.1ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35886-ao9d7j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35886-t1mka9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35886-bx8mvz.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:15:08.491950"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:15:08.540650"], ["updated_at", "2017-01-17 17:15:08.540650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35928-1en0hed' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35928-lcrp5n.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35928-x9lqkw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:15:37.875903"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:15:37.918352"], ["updated_at", "2017-01-17 17:15:37.918352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-35959-1qxoooq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35959-2dxysj.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-35959-xiytgu.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:15:46.292958"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:15:46.341108"], ["updated_at", "2017-01-17 17:15:46.341108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36033-1its441' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36033-8rdowr.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36033-u29byy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:16:35.808780"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:16:35.854241"], ["updated_at", "2017-01-17 17:16:35.854241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36113-szrgat' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36113-1mluvtu.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36113-1ushn32.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:17:30.666896"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:17:30.714180"], ["updated_at", "2017-01-17 17:17:30.714180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36148-179cpxo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36148-1eqoi52.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36148-9fy0rm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:18:01.773810"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:18:01.819771"], ["updated_at", "2017-01-17 17:18:01.819771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36194-19gue9x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36194-wtodol.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36194-x4ncsn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:18:58.075614"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:18:58.119777"], ["updated_at", "2017-01-17 17:18:58.119777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36295-1wku3nj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36295-mesd9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36295-t13f92.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:19:43.884138"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:19:43.932190"], ["updated_at", "2017-01-17 17:19:43.932190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36329-wcqzgt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36329-94yhu.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36329-18bwcn5.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:20:08.568734"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:20:08.611329"], ["updated_at", "2017-01-17 17:20:08.611329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36642-2pfv55' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36642-1kr2zyr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36642-13vb0ze.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:22:02.742527"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:22:02.789870"], ["updated_at", "2017-01-17 17:22:02.789870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36675-t3eyp9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36675-1vbej93.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36675-os920r.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:22:28.176443"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:22:28.222814"], ["updated_at", "2017-01-17 17:22:28.222814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36705-1k2ebp8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36705-1ts8g2j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36705-di9fby.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:22:36.430894"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:22:36.478948"], ["updated_at", "2017-01-17 17:22:36.478948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36733-1ptbgl6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36733-jj6bw3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36733-1o5zmj2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:22:53.586941"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:22:53.637266"], ["updated_at", "2017-01-17 17:22:53.637266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36769-af8prr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36769-qce6a0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36769-1f9oq4d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:23:11.370893"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:23:11.415594"], ["updated_at", "2017-01-17 17:23:11.415594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36810-9xynx5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36810-1nhzvae.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36810-1b6zoz4.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:23:27.397058"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:23:27.444176"], ["updated_at", "2017-01-17 17:23:27.444176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36862-1q6nqhy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36862-1h96e6q.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36862-16tyaq0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:23:49.572138"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:23:49.614857"], ["updated_at", "2017-01-17 17:23:49.614857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36890-18nxpq0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36890-1hkf9wv.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36890-gmss2c.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:23:56.655993"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:23:56.697443"], ["updated_at", "2017-01-17 17:23:56.697443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36919-vv2yu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36919-1kw80nd.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36919-1b7nlx9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:24:03.843887"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:24:03.889771"], ["updated_at", "2017-01-17 17:24:03.889771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (3.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36950-11tqmza' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36950-1wwsyrm.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36950-b9vhdw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:24:28.595711"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:24:28.640258"], ["updated_at", "2017-01-17 17:24:28.640258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-36988-hb5ubp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36988-1yl9jtb.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-36988-ommhip.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:24:44.581067"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:24:44.623711"], ["updated_at", "2017-01-17 17:24:44.623711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-dd1wod' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1ar2t6u.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1i68rju.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:31.115167"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:31.163259"], ["updated_at", "2017-01-17 17:25:31.163259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-1izsque' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-65vz8c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1o962nz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:25:31.192971"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:31.226182"], ["updated_at", "2017-01-17 17:25:31.226182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-1vd9b6v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-w3i6qr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-b5xjjl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:25:31.275445"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:31.309316"], ["updated_at", "2017-01-17 17:25:31.309316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-5a9zb9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-10wtikl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1mq43h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:31.344901"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:31.375380"], ["updated_at", "2017-01-17 17:25:31.375380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-2tyhiz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1g7p7i5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1ktx1g3.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:31.406367"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:31.441892"], ["updated_at", "2017-01-17 17:25:31.441892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-37276-1v46z0f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-37276-5fr9q1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-37276-1hkcmss.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:25:31.466210"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:31.500604"], ["updated_at", "2017-01-17 17:25:31.500604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-37276-r4n40q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/292034f2edd3487c1c5300d4a6e3322820170117-37276-rk6oip.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/292034f2edd3487c1c5300d4a6e3322820170117-37276-57zjjb.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-37276-r4n40q.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 17:25:31.543505"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 17:25:31.574505"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-1qfnn3q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1byaqro.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-r3zfhf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:25:31.600403"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:31.633158"], ["updated_at", "2017-01-17 17:25:31.633158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 17:25:31.641536"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-htqc33' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-lujmf9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-2vmedp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:31.665905"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:31.694872"], ["updated_at", "2017-01-17 17:25:31.694872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-1m7mju' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-mxofb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-17zsjum.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:31.719019"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:31.749569"], ["updated_at", "2017-01-17 17:25:31.749569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-37276-y94s6g'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-l40wn8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1h4crtf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-cbdppk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-utagv0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-dfij5y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-sa35nj.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-1hdbpza' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1jtebog.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1el6ln6.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 17:25:31.926923"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 17:25:31.958117"], ["updated_at", "2017-01-17 17:25:31.958117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-jjy7ks' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-vs626t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1fc1bde.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 17:25:31.992883"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 17:25:32.020475"], ["updated_at", "2017-01-17 17:25:32.020475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-uf1xg4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1gh7vim.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1hqf53c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:32.051376"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:32.080266"], ["updated_at", "2017-01-17 17:25:32.080266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:25:32.088564"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 37ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-5947q7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-180o8ty.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1jc77pb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:32.145589"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:32.176541"], ["updated_at", "2017-01-17 17:25:32.176541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:25:32.185471"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-k6zi6g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-sw5jwc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1p9r3uf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:32.207122"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:32.237259"], ["updated_at", "2017-01-17 17:25:32.237259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:25:32.245727"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 14ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-6abrfh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-o7vo6g.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-tgd4a3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:32.283521"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:32.315042"], ["updated_at", "2017-01-17 17:25:32.315042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 17ms (Views: 13.9ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37276-13subgn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-t2z73j.csv'  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37276-1n83cb9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:25:32.357738"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:25:32.387823"], ["updated_at", "2017-01-17 17:25:32.387823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37825-yenasc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37825-16ydife.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37825-1h7u8rb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:43:20.847113"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:43:20.899164"], ["updated_at", "2017-01-17 17:43:20.899164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37853-1opbvtn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37853-10qi14p.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37853-lq8w3v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:43:29.644527"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:43:29.693225"], ["updated_at", "2017-01-17 17:43:29.693225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-37883-1qpbx16' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37883-1kmjf4.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-37883-5c9fag.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:43:41.584262"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:43:41.632408"], ["updated_at", "2017-01-17 17:43:41.632408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38009-1ixe9i9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38009-1r6cewn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38009-1nfiec.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:45:40.368116"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:45:40.417745"], ["updated_at", "2017-01-17 17:45:40.417745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38039-14hdhej' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38039-1hafipi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38039-rhxeqw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:45:52.817710"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:45:52.868332"], ["updated_at", "2017-01-17 17:45:52.868332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38098-pefqh1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38098-otbp6f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38098-vvfjy2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:19.496931"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:19.546911"], ["updated_at", "2017-01-17 17:46:19.546911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-1cu78ll' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-g4ydu7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-18dzgws.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:29.117700"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:29.185528"], ["updated_at", "2017-01-17 17:46:29.185528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-nscy2b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-10mzimq.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-jng4va.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:29.219059"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:29.267914"], ["updated_at", "2017-01-17 17:46:29.267914"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:46:29.312629"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 23ms (ActiveRecord: 0.7ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-15vfdkq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-5pc7bh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-141pq8p.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:29.362744"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:29.407671"], ["updated_at", "2017-01-17 17:46:29.407671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:46:29.431892"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-spmxlm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-5zi373.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-9yxft2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:29.458800"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:29.489046"], ["updated_at", "2017-01-17 17:46:29.489046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:46:29.501355"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-17xdxwt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-19lj385.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-542vu7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:29.523919"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:29.553933"], ["updated_at", "2017-01-17 17:46:29.553933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 27ms (Views: 13.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-1u4duuj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-yyghv8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-zl0rbs.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 17:46:29.621239"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 17:46:29.649222"], ["updated_at", "2017-01-17 17:46:29.649222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.6ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-loc9t8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1774vq3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1jr9q46.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 17:46:29.693388"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 17:46:29.726214"], ["updated_at", "2017-01-17 17:46:29.726214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-ep6jjm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-lmbozn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1res8fq.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:29.756277"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:29.788887"], ["updated_at", "2017-01-17 17:46:29.788887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-6n3myu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-2q0wk0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-10kufmo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:29.833991"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:29.863676"], ["updated_at", "2017-01-17 17:46:29.863676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-1ohucns' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-xb12cu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1glojk2.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:29.887606"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:29.921041"], ["updated_at", "2017-01-17 17:46:29.921041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-38136-1ycptn4'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-t4epsw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-ydgw9j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1hygl01.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-1idk6pp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1mow69j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-10xcv5d.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-uqo27t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-6vw0wp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-105pl0r.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:30.076439"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:30.108739"], ["updated_at", "2017-01-17 17:46:30.108739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-1k15f0u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-h7py0g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-3zhlmd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:46:30.132294"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:30.163814"], ["updated_at", "2017-01-17 17:46:30.163814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-5udqv9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-26lvvc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-ofz57u.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:46:30.187784"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:30.218782"], ["updated_at", "2017-01-17 17:46:30.218782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-1jo2vzn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1qqtoac.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1wiu800.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:46:30.255377"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:30.286883"], ["updated_at", "2017-01-17 17:46:30.286883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38136-kq9mk6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1q66y4d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38136-1hyxu2z.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:46:30.322725"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:30.354498"], ["updated_at", "2017-01-17 17:46:30.354498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 17:46:30.365121"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-38136-1vaafz9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-38136-lgdyfc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-38136-nq8niv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:46:30.388393"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:46:30.420184"], ["updated_at", "2017-01-17 17:46:30.420184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-38136-8h3q2p.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/296b55b2d9144ef56bfe3a1bb445632820170117-38136-fgr0x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/296b55b2d9144ef56bfe3a1bb445632820170117-38136-sze94v.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-38136-8h3q2p.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 17:46:30.454608"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 17:46:30.484648"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-1slkvsl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-58gqsi.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1nm05yr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:33.079888"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.124808"], ["updated_at", "2017-01-17 17:47:33.124808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-93xiq4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1dth6xs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-glmqfq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:33.171746"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.202952"], ["updated_at", "2017-01-17 17:47:33.202952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-1v7gb3d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-13go67p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1811k2t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:33.230221"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.257175"], ["updated_at", "2017-01-17 17:47:33.257175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-38466-1rztdi2'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-1v0edkt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1mp4l4r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1ovamw6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-t7d5yz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-19l7i57.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1jbz78o.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-249d9z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-ttnhfv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1rgr479.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:33.415452"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.447320"], ["updated_at", "2017-01-17 17:47:33.447320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-axrbct' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-x6n1q0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-18f7rw1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:33.474032"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.503650"], ["updated_at", "2017-01-17 17:47:33.503650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-1qe11v3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-11rc2b2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-a0m2z6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:47:33.538118"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.570061"], ["updated_at", "2017-01-17 17:47:33.570061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-sdbg7n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-11845sp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-qyorw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:47:33.605158"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.635890"], ["updated_at", "2017-01-17 17:47:33.635890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-38466-1ooqzbc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-38466-1htsi0x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-38466-73gilw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:47:33.666380"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.699721"], ["updated_at", "2017-01-17 17:47:33.699721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-38466-1nr5kco.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/75968627439647f297f3106d45c3f21120170117-38466-1eg1gnj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/75968627439647f297f3106d45c3f21120170117-38466-qwh3xg.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-38466-1nr5kco.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 17:47:33.734919"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 17:47:33.764237"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-128b7we' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-rika8r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-wy5vy6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:47:33.792458"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.825065"], ["updated_at", "2017-01-17 17:47:33.825065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 17:47:33.834464"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-e53whu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-u4foho.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-94oci9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:33.860896"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.890020"], ["updated_at", "2017-01-17 17:47:33.890020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:47:33.901022"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-jdv4jo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1d83vce.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-h7d9i6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:33.926820"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:33.958392"], ["updated_at", "2017-01-17 17:47:33.958392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:47:33.969011"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-wse00e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-16gxth1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1kopckz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:33.992258"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:34.024342"], ["updated_at", "2017-01-17 17:47:34.024342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:47:34.033021"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-1ktu1hj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-p5zpi1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1tz84mh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:34.056572"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:34.089493"], ["updated_at", "2017-01-17 17:47:34.089493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-ew1sj1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-2u1bt4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-es8f8j.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 17:47:34.146262"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 17:47:34.176463"], ["updated_at", "2017-01-17 17:47:34.176463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-557xr6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1auos4b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-ef91wh.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 17:47:34.211893"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 17:47:34.242473"], ["updated_at", "2017-01-17 17:47:34.242473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-38466-1ko2d14' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-ziga89.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-38466-1s9wajy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:47:34.273506"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:47:34.306559"], ["updated_at", "2017-01-17 17:47:34.306559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-1dlk00j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-bpzmyz.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1a90mlm.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:53.446517"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:53.493174"], ["updated_at", "2017-01-17 17:53:53.493174"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-1kvx0mk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-7mcukj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1yjgr2r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:53:53.524762"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:53.554152"], ["updated_at", "2017-01-17 17:53:53.554152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-fzf7pr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-k5lmac.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-dykzd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:53:53.598379"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:53.631417"], ["updated_at", "2017-01-17 17:53:53.631417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-lvr20t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-jwykvd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-b2hj7x.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 17:53:53.693778"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 17:53:53.725067"], ["updated_at", "2017-01-17 17:53:53.725067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-s5ttlj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1folqhw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1ln65wh.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 17:53:53.764854"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 17:53:53.794780"], ["updated_at", "2017-01-17 17:53:53.794780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-1f1vnci' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1xkh153.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-magv1z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:53.829473"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:53.860831"], ["updated_at", "2017-01-17 17:53:53.860831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-14qlhqf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1j5jzsq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-5be733.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:53.905246"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:53.939151"], ["updated_at", "2017-01-17 17:53:53.939151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-y2noyg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-k0ajf4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1w2jgvc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:53.971294"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:54.005803"], ["updated_at", "2017-01-17 17:53:54.005803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:53:54.017306"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-18529j0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1h75sv7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-vj23rr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:54.045415"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:54.077005"], ["updated_at", "2017-01-17 17:53:54.077005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:53:54.086087"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-11y7y1r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-a9dhuh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1i9gxew.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:54.114786"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:54.146230"], ["updated_at", "2017-01-17 17:53:54.146230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 17:53:54.161835"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-39668-1g8imj2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-39668-1b2anmy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-39668-nn18sr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:53:54.195223"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:54.227493"], ["updated_at", "2017-01-17 17:53:54.227493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-39668-101mi6q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4d0f2e0c314ba6bd6d2ff414a643d25e20170117-39668-eqwj33.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4d0f2e0c314ba6bd6d2ff414a643d25e20170117-39668-13yeg36.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-39668-101mi6q.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 17:53:54.262964"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 17:53:54.292232"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-v93fcd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1g78p12.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1s8c16h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 17:53:54.319807"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:54.352493"], ["updated_at", "2017-01-17 17:53:54.352493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 17:53:54.362644"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-39668-1c746ec'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-9fn2s6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1hl3kq9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-gukwcl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-1r3iaz7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1xqtgz5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1nxf0x0.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-auosnx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-jt7l60.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-zcdaub.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:54.525355"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:54.556806"], ["updated_at", "2017-01-17 17:53:54.556806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-7sf8gz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1prgj3p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1oki6lr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:54.580771"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:54.616045"], ["updated_at", "2017-01-17 17:53:54.616045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.4ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-zc41l1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1emku6q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-wipvch.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:54.641551"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:54.672270"], ["updated_at", "2017-01-17 17:53:54.672270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-39668-1yvtumh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-1tqbi06.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-39668-cewfon.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 17:53:54.699191"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 17:53:54.732881"], ["updated_at", "2017-01-17 17:53:54.732881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-130bica' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1f6zymz.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-lbjy5v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:30.317260"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:30.364250"], ["updated_at", "2017-01-17 18:08:30.364250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-2yqju4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1br0tzb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1ir3lul.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:08:30.429376"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:08:30.460142"], ["updated_at", "2017-01-17 18:08:30.460142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 70ms (ActiveRecord: 0.7ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-1x0p0h5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-or898w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1vjg8rx.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:08:30.514422"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:08:30.541873"], ["updated_at", "2017-01-17 18:08:30.541873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-5jvd95' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1gn1nq8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-sjmtbz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:30.570975"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:30.604872"], ["updated_at", "2017-01-17 18:08:30.604872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-1m4kpcs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1byddek.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-opukhx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:30.645772"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:30.676149"], ["updated_at", "2017-01-17 18:08:30.676149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:08:30.684820"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-1br6ux3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1keti69.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-o2mslw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:30.711524"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:30.742595"], ["updated_at", "2017-01-17 18:08:30.742595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:08:30.751982"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-1bk1txg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1d8d0uc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-zdlxyq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:30.778959"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:30.811579"], ["updated_at", "2017-01-17 18:08:30.811579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:08:30.819300"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-1jy3mir' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-g1oqg7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-16hl35s.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:30.840529"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:30.873762"], ["updated_at", "2017-01-17 18:08:30.873762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-1mf476x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1ncz6hn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1vgkilw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:08:30.903697"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:30.934415"], ["updated_at", "2017-01-17 18:08:30.934415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:08:30.945401"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-40284-au6uss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-40284-xxdk0q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-40284-1jho99l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:08:30.968667"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:31.002590"], ["updated_at", "2017-01-17 18:08:31.002590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-40284-81g0ud.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/945e598134dc300bcea5abf4b901a5e220170117-40284-ee3gx5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/945e598134dc300bcea5abf4b901a5e220170117-40284-krlng2.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-40284-81g0ud.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:08:31.037035"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:08:31.067761"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-1m8itp6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-23ukz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-16jr8ri.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:08:31.095946"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:31.127015"], ["updated_at", "2017-01-17 18:08:31.127015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-4m5reu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-tcq2h9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-15qofoe.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:08:31.162780"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:31.194454"], ["updated_at", "2017-01-17 18:08:31.194454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-11lva3b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1vg482e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-gqm8a9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:31.229599"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:31.260418"], ["updated_at", "2017-01-17 18:08:31.260418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-40284-1i5i3ut'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-1idx99d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-ikpf1k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-k3ecs3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-ndueru' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-2o2hbp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-f6d2qe.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-djj46t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-147k2bm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-148mit.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:31.411948"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:31.445695"], ["updated_at", "2017-01-17 18:08:31.445695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-j6npx5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-cveku4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-ecggat.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:31.470388"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:31.504050"], ["updated_at", "2017-01-17 18:08:31.504050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40284-1oma3ng' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-1bey82b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40284-b3v7ju.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:31.526038"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:31.557462"], ["updated_at", "2017-01-17 18:08:31.557462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-y480zn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1k2timq.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-138z0a6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:08:59.864581"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:08:59.909486"], ["updated_at", "2017-01-17 18:08:59.909486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-180li46' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-dq8o8c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-qb20wa.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:08:59.948353"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:08:59.975901"], ["updated_at", "2017-01-17 18:08:59.975901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 65ms (ActiveRecord: 0.6ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-1idqvwp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-4tdj3h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1rhr1oz.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:09:00.030021"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:09:00.059031"], ["updated_at", "2017-01-17 18:09:00.059031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-1c17c5d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-vpyw5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1plx778.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:00.105016"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.137496"], ["updated_at", "2017-01-17 18:09:00.137496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-1hgtdbl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-6x3xc5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-wem5v3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:00.180572"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.214595"], ["updated_at", "2017-01-17 18:09:00.214595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-ybcu8n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-u4tf9l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-sydcl6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:00.243787"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.274783"], ["updated_at", "2017-01-17 18:09:00.274783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:09:00.284795"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-bz8fkg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1y21tvr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1hxzh0z.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:00.310845"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.341026"], ["updated_at", "2017-01-17 18:09:00.341026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:09:00.357978"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-1m6hi1v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-13ukl7t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1qx1a5x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:00.382728"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.412612"], ["updated_at", "2017-01-17 18:09:00.412612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:09:00.421358"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-1r9wgn7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-31rw6k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-39g6at.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:00.448883"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.479437"], ["updated_at", "2017-01-17 18:09:00.479437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-yufe0o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-131hvtx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1apkdyy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:00.508292"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.536833"], ["updated_at", "2017-01-17 18:09:00.536833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-a685vs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1bcmwg0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1xnmj40.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:09:00.564787"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.597476"], ["updated_at", "2017-01-17 18:09:00.597476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:09:00.609536"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-40408-1va2r2s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-40408-1roob1z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-40408-16qr35a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:09:00.631847"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.665331"], ["updated_at", "2017-01-17 18:09:00.665331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-40408-17a0uvl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0849084ca5765c7006f1d3c661695d1e20170117-40408-bnn12f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0849084ca5765c7006f1d3c661695d1e20170117-40408-1b5e3sj.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-40408-17a0uvl.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:09:00.698938"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:09:00.728135"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-40408-y8ijbp'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-10a82x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-tjipoe.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-7zpxi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-1mx5nbo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-3x4u69.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-vbm7o9.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-u6iojp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-15zzicc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-lw2d8g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:00.877612"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.906190"], ["updated_at", "2017-01-17 18:09:00.906190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-s64jnn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-fuy4cv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-18rk5fx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:00.930203"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:00.964306"], ["updated_at", "2017-01-17 18:09:00.964306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-901hyy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-cqau1g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-18jdga5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:09:00.991687"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:01.023722"], ["updated_at", "2017-01-17 18:09:01.023722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40408-oghxd7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-1gq2rh9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40408-16sebzk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:09:01.056042"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:01.087666"], ["updated_at", "2017-01-17 18:09:01.087666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.3ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-11czoeu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1r6ae0h.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-16sy5yw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:47.077913"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.120723"], ["updated_at", "2017-01-17 18:09:47.120723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-17h8l7t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1oee2ea.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-646q1w.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:09:47.147602"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.179797"], ["updated_at", "2017-01-17 18:09:47.179797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-1d3uap9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-137sdzt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-lim7c6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:09:47.224124"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.256239"], ["updated_at", "2017-01-17 18:09:47.256239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-1ikk844' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-17umw3w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1qa2taa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:47.289083"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.321931"], ["updated_at", "2017-01-17 18:09:47.321931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-4qz1r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-18s176d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-139ksmu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:47.351593"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.383251"], ["updated_at", "2017-01-17 18:09:47.383251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-qa6edd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-175t41n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1riyrhw.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:09:47.438316"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:09:47.466133"], ["updated_at", "2017-01-17 18:09:47.466133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-1s5oz8r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-8prgsj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-gd3ghb.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:09:47.501274"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:09:47.531484"], ["updated_at", "2017-01-17 18:09:47.531484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-c0n5w8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-o67cmy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1357sp5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:47.568328"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.597566"], ["updated_at", "2017-01-17 18:09:47.597566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:09:47.606218"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-h5sa8c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1hpy0bu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-t5ro7l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:47.629411"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.662156"], ["updated_at", "2017-01-17 18:09:47.662156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:09:47.669988"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-q2hzv5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-jpjt6m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1q0lar4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:47.692468"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.725095"], ["updated_at", "2017-01-17 18:09:47.725095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:09:47.733043"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-14f5jb0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1dvt4vn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1wxoj0w.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:47.756741"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.787475"], ["updated_at", "2017-01-17 18:09:47.787475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-1k4pb7n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-2nkx0h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-odpocn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:47.828036"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.856869"], ["updated_at", "2017-01-17 18:09:47.856869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-1a1r51a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1fd22gh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-sujb9d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:47.886191"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:47.917594"], ["updated_at", "2017-01-17 18:09:47.917594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-40523-1af62sp'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-14p07q3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-7pdeq7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-uf1b5w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-1ezo2rw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-iu37jb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1uj9zb6.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-167lqfj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-gk7nww.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1qap60t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:09:48.073475"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:48.105264"], ["updated_at", "2017-01-17 18:09:48.105264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-40523-1v6gxox' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-40523-1ivnjgn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-40523-hhdn28.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:09:48.127599"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:48.157263"], ["updated_at", "2017-01-17 18:09:48.157263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-40523-pj6wl4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/921bff0e0605720a1b26f674df2a87ee20170117-40523-18jdg8z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/921bff0e0605720a1b26f674df2a87ee20170117-40523-1kn6k44.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-40523-pj6wl4.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:09:48.190563"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:09:48.221084"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40523-g6b9wp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-1iek2iv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40523-11p0hia.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:09:48.245157"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:09:48.276880"], ["updated_at", "2017-01-17 18:09:48.276880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:09:48.286468"], ["id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-40993-1dlg9f1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40993-xscdkl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-40993-1fpipvy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:14:19.822513"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:14:19.866469"], ["updated_at", "2017-01-17 18:14:19.866469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41023-uev49t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41023-tz97nh.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41023-df7hnl.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:14:33.977054"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:14:34.023491"], ["updated_at", "2017-01-17 18:14:34.023491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41165-1ko65ma' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41165-eci4h1.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41165-1sxbbop.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:15:21.059433"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:15:21.105483"], ["updated_at", "2017-01-17 18:15:21.105483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41218-2lwkwn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41218-1fdqoz1.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41218-ohfxej.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:15:56.683284"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:15:56.729348"], ["updated_at", "2017-01-17 18:15:56.729348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.4ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41276-49aqnc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41276-1yb1yt7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41276-ezytzg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:16:46.531795"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:16:46.577280"], ["updated_at", "2017-01-17 18:16:46.577280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41364-14chlt6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41364-1vix0v7.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41364-12r56jb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:18:00.227664"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:18:00.271020"], ["updated_at", "2017-01-17 18:18:00.271020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41404-16k4qls' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41404-jqew9i.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41404-s62wpd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:18:30.897237"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:18:30.947014"], ["updated_at", "2017-01-17 18:18:30.947014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41437-1d9vzh6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41437-8z6wks.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41437-9mniw7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:18:38.529737"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:18:38.575364"], ["updated_at", "2017-01-17 18:18:38.575364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41543-24xpn9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41543-1xgferq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41543-7gkmzm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:19:58.479542"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:19:58.529067"], ["updated_at", "2017-01-17 18:19:58.529067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41574-w5w75p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41574-1g7wtaz.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41574-123iyvm.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:20:19.951993"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:20:19.995666"], ["updated_at", "2017-01-17 18:20:19.995666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41607-10sfd7z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41607-p5kbbr.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41607-11j56gc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:20:35.615153"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:20:35.660891"], ["updated_at", "2017-01-17 18:20:35.660891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41641-1kpg08i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41641-3d3qc0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41641-1co7cgw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:20:55.021023"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:20:55.072796"], ["updated_at", "2017-01-17 18:20:55.072796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41676-1cg4ylv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41676-16uvhwn.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41676-1vhbkj4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:21:07.563464"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:21:07.605250"], ["updated_at", "2017-01-17 18:21:07.605250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.0ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41706-kaogjx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41706-f64bbd.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41706-wqoz5h.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:21:20.174777"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:21:20.222098"], ["updated_at", "2017-01-17 18:21:20.222098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41739-1pbid4a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41739-zdhbi6.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41739-1n956wn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:21:30.206547"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:21:30.251280"], ["updated_at", "2017-01-17 18:21:30.251280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41771-1oyq1m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41771-8t8rcf.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41771-fekfl4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:21:57.115271"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:21:57.159372"], ["updated_at", "2017-01-17 18:21:57.159372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41863-1vglkv3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41863-1jv0hkm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41863-78q1yi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:23:45.177285"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:23:45.226143"], ["updated_at", "2017-01-17 18:23:45.226143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.1ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-41925-z45hxw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41925-p2g5sj.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-41925-1sckq5v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:24:31.953556"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:24:31.998349"], ["updated_at", "2017-01-17 18:24:31.998349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42036-1o7yqny' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42036-150hnfs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42036-s6ul6b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:26:13.826129"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:26:13.870055"], ["updated_at", "2017-01-17 18:26:13.870055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-1l7uukh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-11ueknn.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1fgvpd5.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:22.553939"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:22.599338"], ["updated_at", "2017-01-17 18:27:22.599338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-iqe8dm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1qqi4x8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1g8haom.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:22.655797"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:22.682729"], ["updated_at", "2017-01-17 18:27:22.682729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-4k8fwm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-6h1g1f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1rtmw2b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:22.708536"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:22.737296"], ["updated_at", "2017-01-17 18:27:22.737296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-1irxcxk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-10tk1bv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-14k6j35.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:27:22.768320"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:22.797185"], ["updated_at", "2017-01-17 18:27:22.797185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-2q0h3q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1467dbj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-feqgl9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:27:22.839494"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:22.868663"], ["updated_at", "2017-01-17 18:27:22.868663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-42084-15yvg0n'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-n0dtm0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-k01pvz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1fj270u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-8uj3im' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-zowue4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1n78aeo.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-1sclsza' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-k7r6qp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-145abgg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:23.033110"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:23.064307"], ["updated_at", "2017-01-17 18:27:23.064307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-101xzjr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-qnecdf.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1j43gyj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:23.087846"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:23.118758"], ["updated_at", "2017-01-17 18:27:23.118758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-2j796q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-4k3i13.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-15qdgi5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:23.160039"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:23.190587"], ["updated_at", "2017-01-17 18:27:23.190587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:27:23.202984"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-17cghcf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-y12gee.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1egfd7z.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:23.227023"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:23.254494"], ["updated_at", "2017-01-17 18:27:23.254494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:27:23.264373"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-i8ip0x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-hcrpkh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-11z6pxs.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:23.293041"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:23.322570"], ["updated_at", "2017-01-17 18:27:23.322570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:27:23.330271"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-1d474ag' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1sosax0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-14aaswv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:23.352843"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:23.383531"], ["updated_at", "2017-01-17 18:27:23.383531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 17ms (Views: 14.4ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-17so9k8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1tpbdnu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-126fy3o.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:27:23.426864"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:23.457687"], ["updated_at", "2017-01-17 18:27:23.457687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-15qi6lb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1oi7488.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-17zd8us.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:27:23.504581"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:27:23.531733"], ["updated_at", "2017-01-17 18:27:23.531733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-401ti4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-ewsxcl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-yuyvwa.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:27:23.567307"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:27:23.595814"], ["updated_at", "2017-01-17 18:27:23.595814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42084-1o3ziao' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-1tvuupl.csv'  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42084-6qsgiz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:27:23.630230"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:23.661382"], ["updated_at", "2017-01-17 18:27:23.661382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:27:23.670359"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-42084-1cnue6y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42084-1yk3wjk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42084-5qiv6a.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:27:23.694730"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:27:23.729153"], ["updated_at", "2017-01-17 18:27:23.729153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-42084-10luep0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c8246280694ea00b625bfd2c40d0c74920170117-42084-17mro.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c8246280694ea00b625bfd2c40d0c74920170117-42084-lh6xvq.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-42084-10luep0.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:27:23.761811"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:27:23.790470"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-1g43loi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-98bfqa.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-60lr1v.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:12.341071"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:12.384776"], ["updated_at", "2017-01-17 18:28:12.384776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-1qffsf9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-loe5wl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-xm3jzy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:28:12.427686"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:12.461831"], ["updated_at", "2017-01-17 18:28:12.461831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-1q6z8ef' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1yc94tm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-3l14oc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:28:12.517584"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:12.551785"], ["updated_at", "2017-01-17 18:28:12.551785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-sjpfgg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-9try0r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-16c3fuq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:12.594033"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:12.627313"], ["updated_at", "2017-01-17 18:28:12.627313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-1ninl90' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-15e2avi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1rs002y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:12.671591"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:12.705292"], ["updated_at", "2017-01-17 18:28:12.705292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-z3ya0x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-8amn9g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1fx73il.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:12.748286"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:12.778334"], ["updated_at", "2017-01-17 18:28:12.778334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:28:12.786123"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-qm8l76' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1xkubfh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1mmrani.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:12.815468"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:12.846529"], ["updated_at", "2017-01-17 18:28:12.846529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:28:12.855119"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-eudivi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-18ztbn4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1fya9hg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:12.879185"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:12.910275"], ["updated_at", "2017-01-17 18:28:12.910275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:28:12.917970"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-a16nhn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1jasyj3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-10g4w33.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:28:12.948358"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:28:12.978277"], ["updated_at", "2017-01-17 18:28:12.978277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-1507k00' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1fcu1w0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-bktoey.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:28:13.014184"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:28:13.043848"], ["updated_at", "2017-01-17 18:28:13.043848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-677m2c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1pcs58r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-n0f7g7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:13.084233"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:13.113412"], ["updated_at", "2017-01-17 18:28:13.113412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-1xuzxeb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-voznph.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-12n795e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:13.136619"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:13.168195"], ["updated_at", "2017-01-17 18:28:13.168195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-1aqwcqv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-7mmq1d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-4tzxld.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:13.234646"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:13.266478"], ["updated_at", "2017-01-17 18:28:13.266478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-42191-trwc6o'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-1iptnxi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-e5fxql.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-die72g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-iumt1i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1ibq9a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1e9vcfg.csv'  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-hqn3vs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-6xh0gi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-1lxpgrc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:28:13.418945"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:13.449923"], ["updated_at", "2017-01-17 18:28:13.449923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-42191-rjuz0q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42191-ivpr4f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42191-1nqlqf2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:28:13.474433"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:13.510929"], ["updated_at", "2017-01-17 18:28:13.510929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-42191-11tldaf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/7108f668a1f84312e4ed7308c09077a720170117-42191-9ti6kk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/7108f668a1f84312e4ed7308c09077a720170117-42191-1hhm0lm.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-42191-11tldaf.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:28:13.560860"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:28:13.593497"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42191-hv1om9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-l0i3jm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42191-9wbv7i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:28:13.619681"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:28:13.652055"], ["updated_at", "2017-01-17 18:28:13.652055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:28:13.660655"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-151q0ks' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-y197t6.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-4v4fuv.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:53.453839"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:53.501779"], ["updated_at", "2017-01-17 18:29:53.501779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-e018mv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-185p6ja.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1b4wqy4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:53.528659"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:53.559695"], ["updated_at", "2017-01-17 18:29:53.559695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 19ms (Views: 12.3ms | ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-pmx94d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1p7nedq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-ya0iil.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:29:53.622893"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:29:53.650730"], ["updated_at", "2017-01-17 18:29:53.650730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-1l06zsv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-cbvwzs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-lmtjkk.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:29:53.691275"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:29:53.719608"], ["updated_at", "2017-01-17 18:29:53.719608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-8at8c5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-swyxdu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-121zgww.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:53.766160"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:53.799953"], ["updated_at", "2017-01-17 18:29:53.799953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:29:53.809090"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-4zfkyu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-156l70v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1xisy1d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:53.833676"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:53.862514"], ["updated_at", "2017-01-17 18:29:53.862514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:29:53.877273"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-ilrktz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-xo71o8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-cyatml.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:53.900328"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:53.928821"], ["updated_at", "2017-01-17 18:29:53.928821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:29:53.936923"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-with8l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1t3d9ta.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-pohce5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:53.960875"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:53.992228"], ["updated_at", "2017-01-17 18:29:53.992228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-42321-1vexfrf'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-1e5p0zy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1jxxnj5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-aw3bas.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-xqrkef' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1gfszzw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1e9ni04.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-5qwkqq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1knedcg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-ggja3j.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:54.209226"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:54.239411"], ["updated_at", "2017-01-17 18:29:54.239411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-137kr4p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-uvky77.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1880m6y.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:54.263296"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:54.292751"], ["updated_at", "2017-01-17 18:29:54.292751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-vh5qpe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1u1b7r3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-u7vm2l.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:29:54.317752"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:54.351988"], ["updated_at", "2017-01-17 18:29:54.351988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:29:54.363311"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-42321-14jwxo8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42321-get048.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42321-7j3s1x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:29:54.385899"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:54.417101"], ["updated_at", "2017-01-17 18:29:54.417101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-42321-baundn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a4952bd113b74ffdfa048aa9f06a7df020170117-42321-1q4r959.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a4952bd113b74ffdfa048aa9f06a7df020170117-42321-196ix2i.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-42321-baundn.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:29:54.451380"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:29:54.481881"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-uareur' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1lcikr8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-8onxz5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:54.524684"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:54.553598"], ["updated_at", "2017-01-17 18:29:54.553598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-k1nr8z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1q5thcj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-2dgt2j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:29:54.577308"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:54.608845"], ["updated_at", "2017-01-17 18:29:54.608845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-inp36x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1v1ec24.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1wmuskk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:29:54.650891"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:54.686430"], ["updated_at", "2017-01-17 18:29:54.686430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42321-eivvsj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-6kdw03.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42321-1i8czz7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:29:54.728502"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:29:54.761739"], ["updated_at", "2017-01-17 18:29:54.761739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-ti8v41' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-uj5wg0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-65xypv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:18.902572"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:18.948709"], ["updated_at", "2017-01-17 18:30:18.948709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-1kraqhy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-gq44mj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1rqfzqy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:30:18.990519"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.022547"], ["updated_at", "2017-01-17 18:30:19.022547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-1xqyrzo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-m66338.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-jd2oi2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:30:19.073887"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.104271"], ["updated_at", "2017-01-17 18:30:19.104271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-pdxgqr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-pg0j3a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1jlscbf.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:30:19.171585"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:30:19.203081"], ["updated_at", "2017-01-17 18:30:19.203081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-19ww5nw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-vrpq14.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-p20ddr.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:30:19.236297"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:30:19.264150"], ["updated_at", "2017-01-17 18:30:19.264150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 50ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-pww1o5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-of80zh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-qg2wpj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:19.313191"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.345068"], ["updated_at", "2017-01-17 18:30:19.345068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-rxcpxi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1trqph7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1xyewek.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:19.386697"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.416708"], ["updated_at", "2017-01-17 18:30:19.416708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-yvtww1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-16zdysk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-4u1buv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:19.448281"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.480990"], ["updated_at", "2017-01-17 18:30:19.480990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:30:19.489342"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-oxb9a8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-wh8v6c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1cprucq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:19.516321"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.544911"], ["updated_at", "2017-01-17 18:30:19.544911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:30:19.553199"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-1m7gq4j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1tqw83v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1ssuq7a.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:19.576699"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.610442"], ["updated_at", "2017-01-17 18:30:19.610442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:30:19.619994"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-v46p18' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1hf8k6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-jav37y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:19.642713"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.675686"], ["updated_at", "2017-01-17 18:30:19.675686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-15z173l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1rkxmko.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-irzj52.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:19.698411"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.728113"], ["updated_at", "2017-01-17 18:30:19.728113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-42420-14094us'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-1j2hmpi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1fe6wku.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-h2p5t5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-9hrick' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-ahudac.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1qe05mr.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-1ugy505' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1vbna48.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1w4exgj.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:19.886057"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.917069"], ["updated_at", "2017-01-17 18:30:19.917069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-vae372' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1u8a1c1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-7glvor.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:30:19.943422"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:19.976859"], ["updated_at", "2017-01-17 18:30:19.976859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42420-19b1che' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1mpk2z6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42420-1ei2z8l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:30:20.001707"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:20.030013"], ["updated_at", "2017-01-17 18:30:20.030013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:30:20.038807"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-42420-zvsr5y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42420-1qsv8je.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42420-jciyhz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:30:20.063512"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:30:20.096169"], ["updated_at", "2017-01-17 18:30:20.096169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-42420-1qm2isf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ffeca4c6d3e4c68025e3536c4edb28b820170117-42420-1nzjak.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ffeca4c6d3e4c68025e3536c4edb28b820170117-42420-pt0ac.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-42420-1qm2isf.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:30:20.130518"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:30:20.159744"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-s70chr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-zphshn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1j2d7k6.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:33.590486"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:33.638495"], ["updated_at", "2017-01-17 18:31:33.638495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-1sxftx7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1gaeufp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1igfjsm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:31:33.693405"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:33.722136"], ["updated_at", "2017-01-17 18:31:33.722136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-e8hv5l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1lte9w4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-9p0g88.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:31:33.771416"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:33.803019"], ["updated_at", "2017-01-17 18:31:33.803019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-1iss42x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-15sl86r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1namqy2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:33.899748"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:33.930629"], ["updated_at", "2017-01-17 18:31:33.930629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-1j8fa9e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-suwm2r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-u5ts5q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:33.952541"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:33.984893"], ["updated_at", "2017-01-17 18:31:33.984893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-42570-epg0x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42570-1d8e8lu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42570-1hvrzyi.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:31:34.012421"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:34.045557"], ["updated_at", "2017-01-17 18:31:34.045557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-42570-gywnhk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0b7d5c2679d69e71316249411a9cfee720170117-42570-1fm5ufd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0b7d5c2679d69e71316249411a9cfee720170117-42570-1ghdbk4.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-42570-gywnhk.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:31:34.087407"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:31:34.115060"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-1cm344o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-g46wj7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-7yp8cl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:31:34.141534"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:34.172583"], ["updated_at", "2017-01-17 18:31:34.172583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:31:34.181160"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-1np3no7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-orjpfb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-wjd1mx.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:31:34.224262"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:31:34.252797"], ["updated_at", "2017-01-17 18:31:34.252797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-1cn3jec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1s7lw9e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1nrt80q.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:31:34.288519"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:31:34.318805"], ["updated_at", "2017-01-17 18:31:34.318805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-ivdf8m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-ii8s56.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-qjzqhv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:34.350314"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:34.382109"], ["updated_at", "2017-01-17 18:31:34.382109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-adhac' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-h40ujx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-14ogtff.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:34.422090"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:34.457176"], ["updated_at", "2017-01-17 18:31:34.457176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:31:34.465329"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-1a2hcbb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-m3w2wz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-bjebd0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:34.489798"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:34.523235"], ["updated_at", "2017-01-17 18:31:34.523235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:31:34.532108"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-1lnoski' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-cilern.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1kahi3n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:34.555085"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:34.585192"], ["updated_at", "2017-01-17 18:31:34.585192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:31:34.594246"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-19ujxwk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1luzase.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-x5ljt5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:34.617777"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:34.669697"], ["updated_at", "2017-01-17 18:31:34.669697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-42570-4aoy8a'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-14lkvag' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-18g5n2k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1exy7ld.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-1d40q0u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-1sv2y8u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-z6kdoq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-q6ocdn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-ja1dpb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-11syb8y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:34.834339"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:34.867253"], ["updated_at", "2017-01-17 18:31:34.867253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42570-kyvmec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-11l8hyp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42570-r4kvj2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:31:34.891433"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:31:34.922116"], ["updated_at", "2017-01-17 18:31:34.922116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-qrezro' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1b5ocww.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-tzr1ac.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:02.498048"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:02.547314"], ["updated_at", "2017-01-17 18:34:02.547314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-33j17w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1w2sode.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-10tsfbp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:34:02.578132"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:02.609262"], ["updated_at", "2017-01-17 18:34:02.609262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-1fsh99z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-dnsno6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1ohe4fy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:34:02.661427"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:02.698510"], ["updated_at", "2017-01-17 18:34:02.698510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-42696-1omooo3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42696-rxte5u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42696-y9e2hz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:34:02.735358"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:02.769990"], ["updated_at", "2017-01-17 18:34:02.769990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-42696-1pg04re.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/44a99830fed831550e07469a9b37289020170117-42696-mb6ucv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/44a99830fed831550e07469a9b37289020170117-42696-ab2tqj.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-42696-1pg04re.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:34:02.808906"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:34:02.837239"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-oz9wap' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-34kjnd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1gfzvo9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:34:02.863993"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:02.899636"], ["updated_at", "2017-01-17 18:34:02.899636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:34:02.909042"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-42696-nr9wi8'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-f3xxu6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1x50hba.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1ni1qll.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-1sxi9sy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1t3of89.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-cl1tlq.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-3xx5mi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-48utqc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1cdmdq2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:03.059899"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:03.092322"], ["updated_at", "2017-01-17 18:34:03.092322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-r0nc81' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1y89bf0.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1yk6l3v.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:03.118418"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:03.151931"], ["updated_at", "2017-01-17 18:34:03.151931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-1scgupn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1n4dmxu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1hpp4kx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:03.216126"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:03.251411"], ["updated_at", "2017-01-17 18:34:03.251411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-c4gymo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-6zcobk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-x4d8pw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:03.274039"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:03.307037"], ["updated_at", "2017-01-17 18:34:03.307037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-djr2ls' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1p1u1jy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-citxz5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:03.333329"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:03.363282"], ["updated_at", "2017-01-17 18:34:03.363282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-xica6l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-u2dida.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-erfwa2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:03.405547"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:03.437437"], ["updated_at", "2017-01-17 18:34:03.437437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:34:03.447514"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-ui87st' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-136vyiu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1mtzkcw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:03.471743"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:03.504483"], ["updated_at", "2017-01-17 18:34:03.504483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:34:03.515636"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-12yye8y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-souoz6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-uiqj10.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:03.537395"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:03.566427"], ["updated_at", "2017-01-17 18:34:03.566427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:34:03.574507"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-ydhsic' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1jthqo8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-8f1x2b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:34:03.597355"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:34:03.628964"], ["updated_at", "2017-01-17 18:34:03.628964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-13lfrvx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1njj5dr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-cu9s15.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:34:03.666207"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:34:03.694131"], ["updated_at", "2017-01-17 18:34:03.694131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42696-1yrv4lj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-1o3l04f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42696-ocjo8y.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:34:03.729160"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:34:03.762634"], ["updated_at", "2017-01-17 18:34:03.762634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-jsnrhu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-al4r34.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1f29cq6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:19.057602"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.103450"], ["updated_at", "2017-01-17 18:35:19.103450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-1aq2h3w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-ij1xzx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-19o0iqh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:19.141753"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.174489"], ["updated_at", "2017-01-17 18:35:19.174489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-1553hjs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-q562bx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-vkzddw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:19.203006"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.232973"], ["updated_at", "2017-01-17 18:35:19.232973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-1urtn7e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1e9pxs2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-133ov0r.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:35:19.316759"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.348371"], ["updated_at", "2017-01-17 18:35:19.348371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:35:19.375408"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-42823-1477bia' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42823-rq6nbt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42823-12wbhes.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:35:19.402029"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.436225"], ["updated_at", "2017-01-17 18:35:19.436225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-42823-vekf7j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0b699f47b2c7eeb1fa532f2309b5260e20170117-42823-1ooyyic.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0b699f47b2c7eeb1fa532f2309b5260e20170117-42823-yvlwhf.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-42823-vekf7j.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:35:19.470996"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:35:19.501196"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-107n05x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1604935.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-tdemdh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:19.529564"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.562890"], ["updated_at", "2017-01-17 18:35:19.562890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-rbt12u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-z8nrs7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1bpojaa.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:19.606012"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.638587"], ["updated_at", "2017-01-17 18:35:19.638587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-183tocq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-mznzmo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-ocf7dw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:19.671916"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.700934"], ["updated_at", "2017-01-17 18:35:19.700934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:35:19.709052"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-6enpl3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-nxynqc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-5eabg4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:19.731843"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.765586"], ["updated_at", "2017-01-17 18:35:19.765586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:35:19.774517"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-9eqg0r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1qyrssh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-bj6g0y.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:19.798215"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:19.827004"], ["updated_at", "2017-01-17 18:35:19.827004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:35:19.835413"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-1w4apk0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-gw7jzx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-qbb6m6.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:35:19.874767"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:35:19.903472"], ["updated_at", "2017-01-17 18:35:19.903472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-szkxd9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-jor38v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1cqwjtt.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:35:19.937996"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:35:19.970596"], ["updated_at", "2017-01-17 18:35:19.970596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-surtj7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1answ3n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-jgc4nx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:35:20.020370"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:20.051146"], ["updated_at", "2017-01-17 18:35:20.051146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-h2iqyz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1nx31lu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1ulll37.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:35:20.083811"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:20.115355"], ["updated_at", "2017-01-17 18:35:20.115355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-12hjpoo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-br9b19.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-435v7x.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:20.150417"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:20.197120"], ["updated_at", "2017-01-17 18:35:20.197120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-ttl0dm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-11bq6sy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1vjr894.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:20.221550"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:20.252962"], ["updated_at", "2017-01-17 18:35:20.252962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-42823-gch7xj'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.6ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-cfrwus' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1p5oahl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1p71r1g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42823-4iyzil' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-1en8aqc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42823-mhkpud.csv'  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1d7r7m4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1f4uy7y.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1k2ya7q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:34.246601"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:34.294448"], ["updated_at", "2017-01-17 18:35:34.294448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1aac5oj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1y106kl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-skz7rf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:35:34.316489"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:34.351070"], ["updated_at", "2017-01-17 18:35:34.351070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:35:34.384494"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-42910-2uf6rn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42910-g2moae.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-42910-1mo6o53.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:35:34.410671"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:34.442908"], ["updated_at", "2017-01-17 18:35:34.442908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-42910-ewzmcp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/10a73545907d399407493b15860c771e20170117-42910-1svgzrz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/10a73545907d399407493b15860c771e20170117-42910-307h1i.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-42910-ewzmcp.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:35:34.479063"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:35:34.511269"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1t7zxiy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-u7waiu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-somka.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:34.539461"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:34.572464"], ["updated_at", "2017-01-17 18:35:34.572464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-42910-1jq7drk'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-y7f3xw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-vlyh49.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-16qfrc9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-2x7q3f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-8vyyuf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-11rqo87.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1yhaxol' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1y0e5ac.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1ljx1u7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:34.723882"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:34.755755"], ["updated_at", "2017-01-17 18:35:34.755755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-mvslyk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-xd4p23.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-120g3z9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:34.797110"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:34.830819"], ["updated_at", "2017-01-17 18:35:34.830819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1vll7vs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-bxiuna.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1yt5480.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:34.853511"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:34.886186"], ["updated_at", "2017-01-17 18:35:34.886186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1hwk3k2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1d2ldhy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-5vowjx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:34.939292"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:34.970818"], ["updated_at", "2017-01-17 18:35:34.970818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-4k8z35' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1ybj170.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1myzt0g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:35.012468"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:35.045839"], ["updated_at", "2017-01-17 18:35:35.045839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:35:35.054004"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1xcuh1x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-5kb3st.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1ta1c4i.csv' SQL (1.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:35.078485"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:35.116313"], ["updated_at", "2017-01-17 18:35:35.116313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:35:35.126300"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1fuco7o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-ha5uhq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-kkbn6b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:35.152004"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:35.185859"], ["updated_at", "2017-01-17 18:35:35.185859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:35:35.196253"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1y2fgxs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1vmztwo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-15o084z.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:35:35.234152"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:35:35.263126"], ["updated_at", "2017-01-17 18:35:35.263126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-dxpkj0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-lkjd03.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1ovhfle.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:35:35.298587"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:35:35.328706"], ["updated_at", "2017-01-17 18:35:35.328706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-yrgzuy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1i049cl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-1ugymlz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:35:35.357996"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:35.391382"], ["updated_at", "2017-01-17 18:35:35.391382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-r6xbsg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-eiq92j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-shbpsx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:35:35.425265"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:35.455563"], ["updated_at", "2017-01-17 18:35:35.455563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-42910-1d80lxe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-x2811a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-42910-epc3ji.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:35:35.489660"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:35:35.522791"], ["updated_at", "2017-01-17 18:35:35.522791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.2ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43054-1x09t6d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-os4wph.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-96pyhs.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:37:42.161681"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:37:42.209696"], ["updated_at", "2017-01-17 18:37:42.209696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43054-5iyu4g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-1irprxx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-rpmjwm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:37:42.234287"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:37:42.266498"], ["updated_at", "2017-01-17 18:37:42.266498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 10.0ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43054-9alfxf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-1xvrq4b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-1t7mzk1.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:37:42.348033"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:37:42.376827"], ["updated_at", "2017-01-17 18:37:42.376827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43054-lxj8jq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-1aw2z9y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-89dfeg.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:37:42.409574"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:37:42.437916"], ["updated_at", "2017-01-17 18:37:42.437916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43054-1c4ehyr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-1u5y12a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-2rra9j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:37:42.469039"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:37:42.499572"], ["updated_at", "2017-01-17 18:37:42.499572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:37:42.508405"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43054-e54qfy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-1j0bia9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-172a5di.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:37:42.532118"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:37:42.562991"], ["updated_at", "2017-01-17 18:37:42.562991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:37:42.570861"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43054-nq5yee' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-d3m5tb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-3sw35t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:37:42.596758"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:37:42.625736"], ["updated_at", "2017-01-17 18:37:42.625736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:37:42.639040"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43054-fu9fxy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-jkgh24.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43054-54wlud.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:37:42.662059"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:37:42.694130"], ["updated_at", "2017-01-17 18:37:42.694130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-18j18e3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1eacbj1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-15781um.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:16.508394"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:16.560318"], ["updated_at", "2017-01-17 18:43:16.560318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-j8voqh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-11lvtil.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1k0w8oe.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:43:16.631300"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:43:16.659867"], ["updated_at", "2017-01-17 18:43:16.659867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 68ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-u1oo6k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-4w795.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-9kxjmc.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:43:16.708828"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:43:16.739225"], ["updated_at", "2017-01-17 18:43:16.739225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-119ofak' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1jdry0c.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-fpyafu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:16.798754"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:16.832605"], ["updated_at", "2017-01-17 18:43:16.832605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 19ms (Views: 15.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-1uhe7ge' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1ozavbw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1ndhpo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:16.880023"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:16.916831"], ["updated_at", "2017-01-17 18:43:16.916831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:43:16.926446"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-k5cv1m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-m6zloy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1s8gbin.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:16.953801"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:16.987505"], ["updated_at", "2017-01-17 18:43:16.987505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:43:16.997350"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-qjwe4i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-myurhi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1bynxb7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:17.025608"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.059832"], ["updated_at", "2017-01-17 18:43:17.059832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:43:17.081809"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-klpqpf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-nh90th.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-cfv73m.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:17.106235"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.140155"], ["updated_at", "2017-01-17 18:43:17.140155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-43235-c6es85'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-vnl79k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-19hzz71.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-199kqhf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-dlpioy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-b56xwz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-4d3t94.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-165ybtt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1uhr8yv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-yfzx21.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:17.313402"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.345503"], ["updated_at", "2017-01-17 18:43:17.345503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-5w9fax' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-ao5u8u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-154s6ap.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:17.371024"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.407469"], ["updated_at", "2017-01-17 18:43:17.407469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-43235-ztykxk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-43235-1fxoxfc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-43235-iiyjq3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:43:17.441109"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.476386"], ["updated_at", "2017-01-17 18:43:17.476386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-43235-1fa52ga.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/508d44dea569869390af0039700f228220170117-43235-r0fgfq.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/508d44dea569869390af0039700f228220170117-43235-6u6o72.csv' SQL (0.1ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-43235-1fa52ga.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:43:17.517276"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:43:17.549297"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-1bbq8pm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-gbvxs0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1tcp90v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:43:17.575348"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.609892"], ["updated_at", "2017-01-17 18:43:17.609892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:43:17.619263"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-11d79g1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-3yahm4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-14wvf1d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:17.658058"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.691254"], ["updated_at", "2017-01-17 18:43:17.691254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-906tpt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-142cwbc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1tvtbyv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:17.715582"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.750802"], ["updated_at", "2017-01-17 18:43:17.750802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-ga7mto' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-tfquo6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1208cbq.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:43:17.779069"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.815876"], ["updated_at", "2017-01-17 18:43:17.815876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43235-rjgbca' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-tb8wqw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43235-1d2jxpl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:43:17.851924"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:17.885835"], ["updated_at", "2017-01-17 18:43:17.885835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-18vqaea' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1jwxj0p.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-18afact.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:53.555926"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:53.602152"], ["updated_at", "2017-01-17 18:43:53.602152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-1lllt5l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1go4cr4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1vmn9b3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:43:53.680158"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:53.713383"], ["updated_at", "2017-01-17 18:43:53.713383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-18z07kw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-leuhfn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-z2x5ol.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:43:53.765274"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:53.800143"], ["updated_at", "2017-01-17 18:43:53.800143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-11s2y7g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-91zkht.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1yovgq9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:53.837910"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:53.872247"], ["updated_at", "2017-01-17 18:43:53.872247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 22ms (Views: 12.2ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-1h614o0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-r43g2v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-jl0k52.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:53.925775"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:53.961606"], ["updated_at", "2017-01-17 18:43:53.961606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:43:53.971544"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-12l7kyr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-zqfkwq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1g0mcye.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:53.996245"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:54.029309"], ["updated_at", "2017-01-17 18:43:54.029309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:43:54.039202"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-1b6psca' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-lp0brp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1owdsmp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:54.065968"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:54.098618"], ["updated_at", "2017-01-17 18:43:54.098618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 18:43:54.108998"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-1roe5rn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1w81ytb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-kem36a.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:43:54.139869"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:43:54.171496"], ["updated_at", "2017-01-17 18:43:54.171496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-1j8zree' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-kyua9g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1tq5zpd.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 18:43:54.210472"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 18:43:54.243382"], ["updated_at", "2017-01-17 18:43:54.243382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 63ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-46ukao' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1uhmrku.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1phq8vl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:54.285688"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:54.318704"], ["updated_at", "2017-01-17 18:43:54.318704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-43323-lff5gg'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-dlmdkj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-uilcub.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-hbpzu1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-ppextu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-144n9sp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1siggoa.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-1npbetx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-9u6lv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-29txis.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:54.478476"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:54.512292"], ["updated_at", "2017-01-17 18:43:54.512292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-593ccv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1u6wbmu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-b3a54q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:54.535325"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:54.567395"], ["updated_at", "2017-01-17 18:43:54.567395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-43323-17zfd3n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-43323-7w2ga0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-43323-1bmumoo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:43:54.594263"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:54.626524"], ["updated_at", "2017-01-17 18:43:54.626524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-43323-p159hh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/32ed1cb4d340a165a6fe1abcba1325fa20170117-43323-l6hwuj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/32ed1cb4d340a165a6fe1abcba1325fa20170117-43323-amav6y.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-43323-p159hh.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 18:43:54.661701"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 18:43:54.694958"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-zkaqjw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-188cgxo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1v9vorb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 18:43:54.721656"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:54.756520"], ["updated_at", "2017-01-17 18:43:54.756520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 18:43:54.768559"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-1586w1u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-9rb435.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-j2h0nu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:54.792415"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:54.824422"], ["updated_at", "2017-01-17 18:43:54.824422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43323-1appag9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-1ldvq0j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43323-fvjo4u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:43:54.849865"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:43:54.885976"], ["updated_at", "2017-01-17 18:43:54.885976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43509-vhgt8t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43509-1pj0w8r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43509-1uz5w8e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:46:22.542387"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:46:22.587334"], ["updated_at", "2017-01-17 18:46:22.587334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43526-1msksbs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43526-1hhrtvl.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43526-mcemo9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:46:33.563860"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:46:33.612085"], ["updated_at", "2017-01-17 18:46:33.612085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-43573-1h7onzl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43573-3dhiiz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-43573-fsmqx1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 18:50:19.686147"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 18:50:19.733393"], ["updated_at", "2017-01-17 18:50:19.733393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-44674-hmqdbq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44674-1a8w449.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44674-17fpb09.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:25:35.908672"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:25:35.960498"], ["updated_at", "2017-01-17 20:25:35.960498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-44718-vf9eno' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44718-nifau4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44718-1qenadq.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:26:06.219126"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:26:06.271292"], ["updated_at", "2017-01-17 20:26:06.271292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-44754-1obannb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44754-4qz5qx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44754-1metfxb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:26:39.390925"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:26:39.438507"], ["updated_at", "2017-01-17 20:26:39.438507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-44947-1mnslyq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44947-1tz4jek.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44947-jm5je4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:39:02.150097"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:39:02.195055"], ["updated_at", "2017-01-17 20:39:02.195055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-44982-q6crpa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44982-1xcpa45.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-44982-2d86vq.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:39:25.078995"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:39:25.135698"], ["updated_at", "2017-01-17 20:39:25.135698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45041-14hchn0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45041-1vcphz2.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45041-1lnc9ju.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:39:57.245918"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:39:57.290252"], ["updated_at", "2017-01-17 20:39:57.290252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45078-bdh3va' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45078-hdxorp.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45078-tdmnc6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:40:25.974364"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:40:26.019290"], ["updated_at", "2017-01-17 20:40:26.019290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45116-xlfzbs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45116-1k2a41u.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45116-fpopod.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:40:49.402413"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:40:49.444850"], ["updated_at", "2017-01-17 20:40:49.444850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45178-eutob1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45178-12g6yys.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45178-12l46hq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:42:02.801100"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:42:02.844484"], ["updated_at", "2017-01-17 20:42:02.844484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45235-v8lp6a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45235-1nssf8o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45235-xa0foj.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:42:55.503020"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:42:55.554552"], ["updated_at", "2017-01-17 20:42:55.554552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45287-mncl8h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45287-h11fs0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45287-l1ey9i.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:43:35.924919"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:43:35.977035"], ["updated_at", "2017-01-17 20:43:35.977035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45320-hwm5or' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45320-1qpip8k.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45320-v1hzcm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:43:50.207383"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:43:50.250748"], ["updated_at", "2017-01-17 20:43:50.250748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-4ndjvp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1w8b2m8.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1ao9uz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:03.021779"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:03.065359"], ["updated_at", "2017-01-17 20:44:03.065359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-aeuhnu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-100ihg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-chjbmq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 20:44:03.118050"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:03.151921"], ["updated_at", "2017-01-17 20:44:03.151921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-15eirns' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1wfslvu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-18faocn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 20:44:03.202966"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:03.233157"], ["updated_at", "2017-01-17 20:44:03.233157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-mxr81o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-5wlkdg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-xjn0x7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:03.293515"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:03.326517"], ["updated_at", "2017-01-17 20:44:03.326517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-vjy60w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-suknx5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-14xfdle.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:03.350056"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:03.383972"], ["updated_at", "2017-01-17 20:44:03.383972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-45345-1fyelid'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-62t2yu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-195g1tu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1tdhl92.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-1prpbkf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1eoy6sq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-rucg0i.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-45345-8ugzxn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-45345-1ifhmre.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-45345-1gtjfbh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 20:44:03.559894"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:03.591612"], ["updated_at", "2017-01-17 20:44:03.591612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-45345-1r8v081.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8845cf1ae37de09f68c738335c45852a20170117-45345-15es5dk.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8845cf1ae37de09f68c738335c45852a20170117-45345-1gj18wp.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-45345-1r8v081.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 20:44:03.624522"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 20:44:03.652562"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-1urspew' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1mjck4c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-y8qng5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 20:44:03.681573"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:03.716346"], ["updated_at", "2017-01-17 20:44:03.716346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 20:44:03.727370"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-1qgb8g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-pfk4om.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-o5hxko.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:03.750544"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:03.782689"], ["updated_at", "2017-01-17 20:44:03.782689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-1pste0i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1adfmb9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1shgn94.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:03.822516"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:03.854685"], ["updated_at", "2017-01-17 20:44:03.854685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-ewrmte' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-wjzxtt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-12j28lx.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 20:44:03.898384"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 20:44:03.926599"], ["updated_at", "2017-01-17 20:44:03.926599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-w4lzb2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1jnylm0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-bg0698.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 20:44:03.963898"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 20:44:03.990824"], ["updated_at", "2017-01-17 20:44:03.990824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.6ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-p0ozgd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-p5cksu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-z8wm0v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:04.031134"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:04.062536"], ["updated_at", "2017-01-17 20:44:04.062536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-fi6nh2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1f5hlbw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1huc72t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:04.110257"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:04.143907"], ["updated_at", "2017-01-17 20:44:04.143907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-1ujbjog' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-kcf34i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1qj7rnz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:04.175337"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:04.207875"], ["updated_at", "2017-01-17 20:44:04.207875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 20:44:04.216925"], ["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-1gpspid' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-ku5fmq.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-1p2og96.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:04.240683"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:04.276384"], ["updated_at", "2017-01-17 20:44:04.276384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 20:44:04.285633"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45345-x3nk2k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-8tbi3q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45345-16vuf5e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:44:04.309993"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:44:04.345117"], ["updated_at", "2017-01-17 20:44:04.345117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 20:44:04.353940"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45501-is2nko' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45501-dh3zoy.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45501-jpqg65.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:46:54.119243"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:46:54.160384"], ["updated_at", "2017-01-17 20:46:54.160384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45518-1ssubci' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45518-hpxpnt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45518-1c4dkvi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:47:00.673021"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:47:00.721107"], ["updated_at", "2017-01-17 20:47:00.721107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45574-106mot7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45574-q532eh.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45574-11xhsj3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:47:44.047616"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:47:44.093319"], ["updated_at", "2017-01-17 20:47:44.093319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45618-1ru63hc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45618-yg3b42.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45618-x725sg.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:48:27.637266"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:48:27.681897"], ["updated_at", "2017-01-17 20:48:27.681897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45673-1fj9xnp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45673-96epe9.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45673-15s60io.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:49:21.670582"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:49:21.718913"], ["updated_at", "2017-01-17 20:49:21.718913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45722-6at8yc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45722-epia2e.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45722-cz9bpa.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:50:13.441528"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:50:13.484327"], ["updated_at", "2017-01-17 20:50:13.484327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45803-1ahhu1c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45803-6jas2p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45803-ub7p9t.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:51:25.664982"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:51:25.711894"], ["updated_at", "2017-01-17 20:51:25.711894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45866-v0itod' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45866-ni3nlx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45866-16afshh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 20:51:57.106502"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 20:51:57.152840"], ["updated_at", "2017-01-17 20:51:57.152840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-45984-6o7vuf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45984-jmox8o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-45984-9my4i7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:00:25.242539"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:00:25.290380"], ["updated_at", "2017-01-17 21:00:25.290380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46070-10si3nq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46070-sayr76.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46070-7bix3i.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:05:47.428646"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:05:47.480575"], ["updated_at", "2017-01-17 21:05:47.480575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46125-18hpzep' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46125-y0gie0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46125-1wnqooa.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:06:26.327447"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:06:26.380249"], ["updated_at", "2017-01-17 21:06:26.380249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46146-1qqg62j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46146-hmu594.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46146-qfame5.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:06:38.583620"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:06:38.632732"], ["updated_at", "2017-01-17 21:06:38.632732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.1ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-y9mciu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1sjoiz3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-14eirnd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:07:59.458360"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:07:59.507586"], ["updated_at", "2017-01-17 21:07:59.507586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-16ifeeu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1nuwftz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1dtsu51.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:07:59.564564"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:07:59.594953"], ["updated_at", "2017-01-17 21:07:59.594953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 40ms (Views: 16.4ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-1uicwmi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-sfgix5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1p70ofs.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:07:59.666989"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:07:59.698969"], ["updated_at", "2017-01-17 21:07:59.698969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:07:59.708625"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-pnbbme' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-19idyqp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1yaprkr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:07:59.737767"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:07:59.772930"], ["updated_at", "2017-01-17 21:07:59.772930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:07:59.781324"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-ral0g4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-aoxj9i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1dp63ml.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:07:59.803743"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:07:59.835355"], ["updated_at", "2017-01-17 21:07:59.835355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:07:59.843979"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-1th8j7n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-2yq509.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-p9vid.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 21:07:59.874372"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 21:07:59.905763"], ["updated_at", "2017-01-17 21:07:59.905763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 64ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-ap2www' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-rj2xr7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1bnxo73.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 21:07:59.949295"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 21:07:59.978953"], ["updated_at", "2017-01-17 21:07:59.978953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-l70qy0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1d06orh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1yrotdt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:00.020272"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:00.058275"], ["updated_at", "2017-01-17 21:08:00.058275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-cl2uih' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1vxdyop.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-ku8zpw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:00.088867"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:00.124603"], ["updated_at", "2017-01-17 21:08:00.124603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-3qiqfn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-x3sbi6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1q9b0x4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:00.160609"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:00.193690"], ["updated_at", "2017-01-17 21:08:00.193690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-46182-azrt6'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-14719e3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-d8ajul.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-760f1g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-1knvx1q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-d075jc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1bw16li.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-lvdxsf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1ywclek.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1c7zsx2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:00.361374"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:00.398343"], ["updated_at", "2017-01-17 21:08:00.398343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-1of5aeb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-jpwjw5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-17onl03.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:00.424918"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:00.457406"], ["updated_at", "2017-01-17 21:08:00.457406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-1qhwu9u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-13lmui5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-jyfzs3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:00.534099"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:00.566239"], ["updated_at", "2017-01-17 21:08:00.566239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 21:08:00.575965"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-46182-1nveieb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-46182-bvy6j4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-46182-1cfd2lj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:00.599472"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:00.630901"], ["updated_at", "2017-01-17 21:08:00.630901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-46182-1dx0tpn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5fea0c105b77384d52d36ed13b4ac6af20170117-46182-1xxp1my.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5fea0c105b77384d52d36ed13b4ac6af20170117-46182-dyn34u.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-46182-1dx0tpn.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 21:08:00.667009"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 21:08:00.699631"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-1spexmy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1pz5aca.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-rhvpft.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:00.728785"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:00.759791"], ["updated_at", "2017-01-17 21:08:00.759791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46182-94uoo9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-1uw9yxl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46182-u86w7l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:00.787882"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:00.819413"], ["updated_at", "2017-01-17 21:08:00.819413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-rb8i0g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1lozbg5.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1n0gw2g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:19.358740"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:19.404849"], ["updated_at", "2017-01-17 21:08:19.404849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-105goc7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-hoov0y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1cs8xv5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:19.438945"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:19.470042"], ["updated_at", "2017-01-17 21:08:19.470042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-n2r0bd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1u5jpot.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1tfty88.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:19.512490"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:19.544231"], ["updated_at", "2017-01-17 21:08:19.544231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-18rkiwf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-xrrn8p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-8qh6u9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:19.567107"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:19.598343"], ["updated_at", "2017-01-17 21:08:19.598343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 21:08:19.623440"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-46278-1df0612' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-46278-yygmhc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-46278-x7a5rl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:19.650498"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:19.682701"], ["updated_at", "2017-01-17 21:08:19.682701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-46278-fd4m8e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/38b040e8673fcd1973b10f17e6276b8420170117-46278-70rsg9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/38b040e8673fcd1973b10f17e6276b8420170117-46278-19w3h9f.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-46278-fd4m8e.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 21:08:19.715077"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 21:08:19.742864"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-1bq3cck' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-n0y7z9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1opxg1c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:19.767507"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:19.797436"], ["updated_at", "2017-01-17 21:08:19.797436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-1w1rx2w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-my9yr8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-aepzwb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:19.831888"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:19.862210"], ["updated_at", "2017-01-17 21:08:19.862210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-w4u2g9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-mo2qav.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1d8wwjf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:19.914344"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:19.947912"], ["updated_at", "2017-01-17 21:08:19.947912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-1f3l726' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1iqnf9i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1gp3h2k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:19.970669"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:20.003406"], ["updated_at", "2017-01-17 21:08:20.003406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-46278-18klrr9'  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-c43bgk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-6aagto.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-o3rwec.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-nuptv7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-w43dbj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1vobpfn.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-3360jc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1u0ay1c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-o4nfj8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:20.184597"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:20.216216"], ["updated_at", "2017-01-17 21:08:20.216216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.4ms) Completed 200 OK in 17ms (Views: 14.1ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-wwqn12' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-ogqwt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-zmwmb4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:20.261711"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:20.292447"], ["updated_at", "2017-01-17 21:08:20.292447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:08:20.300862"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-zoafx4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-b6pm6b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-15k893n.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:20.324796"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:20.354272"], ["updated_at", "2017-01-17 21:08:20.354272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:08:20.363971"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-g6yu4o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-15keeut.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-hpcl9m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:20.388932"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:20.418530"], ["updated_at", "2017-01-17 21:08:20.418530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:08:20.429064"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-9l9vbe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-b8ki4d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-2z7v1e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:20.452952"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:20.485358"], ["updated_at", "2017-01-17 21:08:20.485358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-1kolhzp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-1fo5el0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-14q413n.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 21:08:20.530449"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 21:08:20.560438"], ["updated_at", "2017-01-17 21:08:20.560438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46278-6db5pb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-91x6lb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46278-113jq5r.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 21:08:20.595831"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 21:08:20.623170"], ["updated_at", "2017-01-17 21:08:20.623170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-1xjcc1k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1wisz9x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1tixurd.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:43.787152"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:43.836305"], ["updated_at", "2017-01-17 21:08:43.836305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-46382-q43ovv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-46382-12fwfcg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-46382-1boubzd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:43.873697"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:43.905666"], ["updated_at", "2017-01-17 21:08:43.905666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-46382-9y135a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/62376884605753c13bc2e78def4eba9b20170117-46382-iu2j0n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/62376884605753c13bc2e78def4eba9b20170117-46382-afg2wz.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-46382-9y135a.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 21:08:43.963094"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 21:08:43.992976"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-14r3uau' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-19t4vvo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1gfpnpd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:44.021951"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.057252"], ["updated_at", "2017-01-17 21:08:44.057252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 21:08:44.068737"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-4fscti' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-ykr5f5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-18khzkc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:44.091710"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.125567"], ["updated_at", "2017-01-17 21:08:44.125567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-pl9p4l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-17re70f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1b7j0d4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:44.152607"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.184589"], ["updated_at", "2017-01-17 21:08:44.184589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-46382-1chkvwl'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-872s8t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-ww9wxd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-sp5acg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-ykv7ue' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-174ufaj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-6avox9.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-1vng4o1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1h5932q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-sgr5sy.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 21:08:44.358219"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 21:08:44.384358"], ["updated_at", "2017-01-17 21:08:44.384358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 51ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-m70xwv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-47nqcc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-iksac1.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 21:08:44.421396"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 21:08:44.452143"], ["updated_at", "2017-01-17 21:08:44.452143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-n7cve7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-11n60c0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-128yd5b.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:44.485244"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.520489"], ["updated_at", "2017-01-17 21:08:44.520489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:08:44.531157"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-1i1o83y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-pmtj99.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1b0cnib.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:44.556865"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.590412"], ["updated_at", "2017-01-17 21:08:44.590412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:08:44.598866"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-zgs7ie' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-zlwmxe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-15qspa1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:44.624673"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.654823"], ["updated_at", "2017-01-17 21:08:44.654823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:08:44.668809"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-1i6sm33' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-mtk0t2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-j4jqzw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:44.691775"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.722587"], ["updated_at", "2017-01-17 21:08:44.722587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-cwki0o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1eaq2py.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1jkksj3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:44.764892"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.799074"], ["updated_at", "2017-01-17 21:08:44.799074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-1dzct6e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-aify63.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-q657ip.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:44.868688"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.900979"], ["updated_at", "2017-01-17 21:08:44.900979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-g442sd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1nx6i9h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-156ekkw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:08:44.928789"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:44.959394"], ["updated_at", "2017-01-17 21:08:44.959394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-c19rrv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-9uags9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-30y8ku.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:44.986923"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:45.020175"], ["updated_at", "2017-01-17 21:08:45.020175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.4ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-46382-12rce2m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-1wib6si.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-46382-5hznsg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:08:45.053543"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:08:45.085032"], ["updated_at", "2017-01-17 21:08:45.085032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-7sykza' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1vbqmut.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-bajmjk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:40.850554"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:40.897982"], ["updated_at", "2017-01-17 21:11:40.897982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-rjx13m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-9ihzjp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1wfluqf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:40.922614"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:40.952252"], ["updated_at", "2017-01-17 21:11:40.952252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-48570-1fsqklw'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-3bj7kt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1jn4u5u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-bn1tbu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-15kmxgo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1ucnir4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-fmmoen.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-12p17qu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1fjqtpk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1f7yd72.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:41.122450"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:41.151797"], ["updated_at", "2017-01-17 21:11:41.151797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-g5rijh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1ss38mo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-kcg7t1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:41.209223"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:41.241428"], ["updated_at", "2017-01-17 21:11:41.241428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 17ms (Views: 10.8ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-n89hog' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-uh5s2n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1ldsmmu.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 21:11:41.296345"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 21:11:41.328454"], ["updated_at", "2017-01-17 21:11:41.328454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 67ms (ActiveRecord: 0.7ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-1544ko9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-4b3nej.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-t7rebu.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 21:11:41.379005"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 21:11:41.407039"], ["updated_at", "2017-01-17 21:11:41.407039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-m783ji' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-j60kpe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1j848v3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:41.446238"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:41.478884"], ["updated_at", "2017-01-17 21:11:41.478884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-cbxbvq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-ms4quf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1pldfl2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:41.521407"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:41.558860"], ["updated_at", "2017-01-17 21:11:41.558860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:11:41.568505"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-1hd06xb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-10t0yrp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-ib6iek.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:41.594273"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:41.628793"], ["updated_at", "2017-01-17 21:11:41.628793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:11:41.637690"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-vvcigg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-18ia863.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1wmt81p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:41.666621"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:41.696553"], ["updated_at", "2017-01-17 21:11:41.696553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 21:11:41.712681"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-48570-1g3reyb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-48570-mjcehj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-48570-w9g302.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:11:41.768718"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:41.801608"], ["updated_at", "2017-01-17 21:11:41.801608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-48570-1k4k7t0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/05c86051429adc7160acb2a98b00ba2e20170117-48570-1bv2y7i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/05c86051429adc7160acb2a98b00ba2e20170117-48570-14ifdd6.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-48570-1k4k7t0.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 21:11:41.842082"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 21:11:41.872985"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-9rxyeh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-b1985l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-21ncb8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:11:41.898146"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:41.933215"], ["updated_at", "2017-01-17 21:11:41.933215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 21:11:41.943316"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-1es597r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1jtz3bb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-ekq53u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:41.967453"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:41.997823"], ["updated_at", "2017-01-17 21:11:41.997823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-31k46u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1fi48kn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-ourf1i.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 21:11:42.024088"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:42.057985"], ["updated_at", "2017-01-17 21:11:42.057985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-qua5rd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1ovrqoq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-10dsnly.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:11:42.093275"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:42.124924"], ["updated_at", "2017-01-17 21:11:42.124924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-48570-1323v6e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-1nhwajk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-48570-qph65g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 21:11:42.160307"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 21:11:42.196472"], ["updated_at", "2017-01-17 21:11:42.196472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-55802-1jkqf83' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55802-1qqa5k2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55802-1x6hdat.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:03:37.243669"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:03:37.301620"], ["updated_at", "2017-01-17 23:03:37.301620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-55831-924gui' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55831-bo3xg0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55831-74qe8i.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:03:52.095840"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:03:52.142323"], ["updated_at", "2017-01-17 23:03:52.142323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.2ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-55868-10mbh86' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55868-1ve631h.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55868-q25d0w.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:04:12.926607"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:04:12.973206"], ["updated_at", "2017-01-17 23:04:12.973206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.1ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-55909-1c5nro8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55909-jpvawv.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55909-iamaq5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:04:38.901234"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:04:38.942354"], ["updated_at", "2017-01-17 23:04:38.942354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-55950-13p5fb4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55950-1silvdu.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55950-jcog5g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:04:54.501326"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:04:54.544673"], ["updated_at", "2017-01-17 23:04:54.544673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-55999-18i611k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55999-60a6wo.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-55999-1e8oz1g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:34.014533"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:34.060185"], ["updated_at", "2017-01-17 23:05:34.060185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56036-k2fpgl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56036-1nwaxf4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56036-1u7efhs.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:48.949673"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:48.997104"], ["updated_at", "2017-01-17 23:05:48.997104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-oj28zy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1azw7c2.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1rvchcu.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:56.025988"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:56.070711"], ["updated_at", "2017-01-17 23:05:56.070711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-56058-1ro11di' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56058-1nkyohc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56058-1aemuq9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:05:56.099680"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:56.133196"], ["updated_at", "2017-01-17 23:05:56.133196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-56058-b7otnp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c5fe608ecfa0f180e398f9b0ae74944a20170117-56058-168ou6m.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c5fe608ecfa0f180e398f9b0ae74944a20170117-56058-79bhdy.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-56058-b7otnp.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 23:05:56.195412"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 23:05:56.226605"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-41fc7w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1l58y5o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-o21bdx.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:05:56.255949"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:56.291357"], ["updated_at", "2017-01-17 23:05:56.291357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 23:05:56.300773"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-1c7ip3g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-iads0k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-w3hcuk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:56.324534"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:56.354110"], ["updated_at", "2017-01-17 23:05:56.354110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-56058-1ppb9hr'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-1b35a6o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1mzdjlv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1vvr6to.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-13th9bq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-17un8iu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-iht5qk.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-1d43vke' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1vpb4y2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-g7m15r.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:56.506266"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:56.536621"], ["updated_at", "2017-01-17 23:05:56.536621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-1gswahz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1bov4vt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-l7pl63.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:05:56.579191"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:05:56.610966"], ["updated_at", "2017-01-17 23:05:56.610966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-7fpn1f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1wp238s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-w7gsp.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:05:56.644755"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:05:56.672500"], ["updated_at", "2017-01-17 23:05:56.672500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-1cqao0i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-micrtm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1po05qb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:56.714336"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:56.746960"], ["updated_at", "2017-01-17 23:05:56.746960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 17ms (Views: 14.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-11i95wo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1lczxgt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1tg8fab.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:56.795087"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:56.825338"], ["updated_at", "2017-01-17 23:05:56.825338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:05:56.846183"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-tu6slr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1onplne.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-12q0qi8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:56.869449"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:56.901782"], ["updated_at", "2017-01-17 23:05:56.901782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:05:56.909992"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-cwaf04' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-uh15r2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1hzez1h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:56.934039"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:56.967014"], ["updated_at", "2017-01-17 23:05:56.967014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:05:56.974951"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-wf2pfb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-15ee4tb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-15e2mfe.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:56.996974"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:57.026038"], ["updated_at", "2017-01-17 23:05:57.026038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-1pn0etj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1xgi8ye.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1mj2nm8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:05:57.054317"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:57.088677"], ["updated_at", "2017-01-17 23:05:57.088677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-zlr0dq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-a8nx5w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-12n225g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:05:57.122456"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:57.153577"], ["updated_at", "2017-01-17 23:05:57.153577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-pekbsj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-19224xa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1lzuag4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:57.256130"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:57.284129"], ["updated_at", "2017-01-17 23:05:57.284129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56058-19s1zs9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-1kcdt8r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56058-13toaf9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:05:57.307253"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:05:57.337278"], ["updated_at", "2017-01-17 23:05:57.337278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-tkxscl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1afmwsf.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-mch0e7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:30.777013"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:30.821664"], ["updated_at", "2017-01-17 23:06:30.821664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-1bnn8oh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1tnzpy5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1wbzhq2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:30.844212"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:30.874145"], ["updated_at", "2017-01-17 23:06:30.874145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-56173-ury252'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-1uuq3dg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1uitjam.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-wsndc8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-1ht6rsy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1sk0k2n.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-9w3s8t.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-gj4dzg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-19qbpzz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1ov5ao9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:31.036245"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.068122"], ["updated_at", "2017-01-17 23:06:31.068122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-1vomvw3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-39ok0n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-20bfyz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:31.094190"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.123912"], ["updated_at", "2017-01-17 23:06:31.123912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-18tynuz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-md2sko.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1uxp6ih.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:31.158956"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.191464"], ["updated_at", "2017-01-17 23:06:31.191464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-v8d4rr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-lvb14h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-y8uvvx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:06:31.251930"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.284934"], ["updated_at", "2017-01-17 23:06:31.284934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-1mxvdsq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1hcoc39.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1tp81ev.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:06:31.321124"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.352155"], ["updated_at", "2017-01-17 23:06:31.352155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-1a0emmu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1673fp3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1fpenb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:06:31.388703"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.419676"], ["updated_at", "2017-01-17 23:06:31.419676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 23:06:31.428789"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-56173-2y27ww' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56173-13w21zh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56173-1mncmod.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:06:31.453542"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.485757"], ["updated_at", "2017-01-17 23:06:31.485757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-56173-187smu1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8b644a85c5da612c2d96448be04073e920170117-56173-ubu93z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8b644a85c5da612c2d96448be04073e920170117-56173-1kw54oz.csv' SQL (0.1ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-56173-187smu1.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 23:06:31.521019"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 23:06:31.549755"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-h8ty81' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-f5epp1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-olof1p.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:31.627058"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.655806"], ["updated_at", "2017-01-17 23:06:31.655806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-i0j5f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1xxn7tf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1m7t724.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:31.702802"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.736427"], ["updated_at", "2017-01-17 23:06:31.736427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:06:31.744436"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-99fqe9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1ofll5x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-p61zwl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:31.770115"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.802587"], ["updated_at", "2017-01-17 23:06:31.802587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:06:31.810311"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-5sz2v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-kv55u6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1n6zt72.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:31.833855"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.864051"], ["updated_at", "2017-01-17 23:06:31.864051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:06:31.872997"], ["id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-1nh9wnc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-f6vt63.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-730lk7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:31.915727"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:31.947611"], ["updated_at", "2017-01-17 23:06:31.947611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-leslg1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-13ox93i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-1cwrivh.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:06:31.997385"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:06:32.025028"], ["updated_at", "2017-01-17 23:06:32.025028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.5ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56173-1frbod7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-2iyi8o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56173-19qr3po.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:06:32.062784"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:06:32.090252"], ["updated_at", "2017-01-17 23:06:32.090252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-16dbzuu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1ac2dik.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-14xg965.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:47.267764"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:47.311899"], ["updated_at", "2017-01-17 23:06:47.311899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-1p1ghk5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-gcscy9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-4zdzth.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:47.349072"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:47.380536"], ["updated_at", "2017-01-17 23:06:47.380536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-56280-1xq7o7i'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-p50zgw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-12zp5d1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1btmaoa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-1mq3erc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-awopvv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-vpikv6.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-1f2ferw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-17kbrgr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-jlcwv2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:47.552477"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:47.583236"], ["updated_at", "2017-01-17 23:06:47.583236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-gemrnu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1kz71tx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1mazoyu.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:06:47.639390"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:06:47.668300"], ["updated_at", "2017-01-17 23:06:47.668300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-87uedj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-714pvs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-ptzk7i.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:06:47.708391"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:06:47.738136"], ["updated_at", "2017-01-17 23:06:47.738136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-1eg41tc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-93pa8v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-18m6th5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:47.771194"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:47.804578"], ["updated_at", "2017-01-17 23:06:47.804578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:06:47.813496"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-qp04ny' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-ng3o41.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-5jemxk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:47.838097"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:47.872679"], ["updated_at", "2017-01-17 23:06:47.872679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:06:47.882370"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-6iusig' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-yuwqcp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1wl309.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:47.907090"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:47.938521"], ["updated_at", "2017-01-17 23:06:47.938521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:06:47.953538"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-1dsszjz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1m2r1pa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-145ycie.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:47.976995"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:48.008419"], ["updated_at", "2017-01-17 23:06:48.008419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 13ms (Views: 10.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-7ryz6w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1qi2act.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1di06s2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:48.047883"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:48.083427"], ["updated_at", "2017-01-17 23:06:48.083427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-149m7h2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-10mo6mi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-ho08o4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:06:48.135966"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:48.165885"], ["updated_at", "2017-01-17 23:06:48.165885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-g0h01' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-2l61re.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-iermae.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:06:48.202383"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:48.234553"], ["updated_at", "2017-01-17 23:06:48.234553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-56280-21k16h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56280-h2ghaq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56280-1uri8dm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:06:48.267103"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:48.301484"], ["updated_at", "2017-01-17 23:06:48.301484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-56280-ax6el0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/7643ecad3dde59531b99dc63a7b05afd20170117-56280-1rsubqy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/7643ecad3dde59531b99dc63a7b05afd20170117-56280-12m2wwn.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-56280-ax6el0.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 23:06:48.338098"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 23:06:48.367531"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-befc5e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1nhfcyh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-111jp9j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:06:48.393023"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:48.424941"], ["updated_at", "2017-01-17 23:06:48.424941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 23:06:48.434357"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-1ffkx9y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-17v82xk.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-10qk3yj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:48.459632"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:48.489715"], ["updated_at", "2017-01-17 23:06:48.489715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56280-1jdsdtr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-jpi1nm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56280-1g8fkms.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:06:48.515767"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:06:48.546264"], ["updated_at", "2017-01-17 23:06:48.546264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.1ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-hxjiz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-18roq4m.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-15lx9ek.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:05.720048"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:05.768094"], ["updated_at", "2017-01-17 23:07:05.768094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-wrhjjn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-7xseh1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-u2jxu7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:05.795224"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:05.831153"], ["updated_at", "2017-01-17 23:07:05.831153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-zsx95a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-htu68x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1965lfb.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:05.884151"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:05.915636"], ["updated_at", "2017-01-17 23:07:05.915636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-uc9mm7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-y8g0pa.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1n8h87y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:05.988477"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.020275"], ["updated_at", "2017-01-17 23:07:06.020275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-sizgit' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1bj4bz7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1ad2gi0.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:06.044988"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.073309"], ["updated_at", "2017-01-17 23:07:06.073309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-1fj2hq5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-u4vh70.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1o52xz6.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:07:06.132584"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:07:06.160353"], ["updated_at", "2017-01-17 23:07:06.160353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-2xvv7k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-rwzvds.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-v2vb1p.csv' SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:07:06.197977"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:07:06.225171"], ["updated_at", "2017-01-17 23:07:06.225171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.3ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-470lwx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1hkawv2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1vtj284.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:06.257870"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.288271"], ["updated_at", "2017-01-17 23:07:06.288271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-uitzfc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-60m7yc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-gp4frd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:06.326618"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.358149"], ["updated_at", "2017-01-17 23:07:06.358149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:06.366530"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-yfdfh0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1fyddnn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-v8b0ca.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:06.389786"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.423669"], ["updated_at", "2017-01-17 23:07:06.423669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:06.434665"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.4ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-10tqn64' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1f69nnc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1xy5pg7.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:06.460812"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.490349"], ["updated_at", "2017-01-17 23:07:06.490349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:06.502562"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-1cn01o4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-11nisgc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1i8n0ux.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:06.527532"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.560422"], ["updated_at", "2017-01-17 23:07:06.560422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-56372-18x0ss1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56372-16nq3a7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56372-1pyuffx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:06.600373"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.631176"], ["updated_at", "2017-01-17 23:07:06.631176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-56372-pyd0uc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b246d5e9ff43d98952fcf8f89e0e003020170117-56372-g9eke9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b246d5e9ff43d98952fcf8f89e0e003020170117-56372-1o9unhw.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-56372-pyd0uc.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 23:07:06.666142"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 23:07:06.695761"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-1yeumks' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-13xem6p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-10bi71z.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:06.719456"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.751726"], ["updated_at", "2017-01-17 23:07:06.751726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 23:07:06.760792"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-6cmu3v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-erw3h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1fq5kvb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:06.783519"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.816319"], ["updated_at", "2017-01-17 23:07:06.816319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-efc7b7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1lqkdjj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-15my9ln.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:06.841375"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:06.873561"], ["updated_at", "2017-01-17 23:07:06.873561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-56372-1fmmdpa'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.4ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-1ucatwc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1stzrpr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-1a9a6e9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56372-19g6hzz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-10vuh4b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56372-9qfwf5.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-q7o322' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-9kc036.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1d6uacn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.044499"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.087541"], ["updated_at", "2017-01-17 23:07:26.087541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-pta68l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-in1340.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-z4ukov.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.113199"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.142704"], ["updated_at", "2017-01-17 23:07:26.142704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-7k5lr2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1i49ziw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-xabd8d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.167549"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.196826"], ["updated_at", "2017-01-17 23:07:26.196826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-56475-1cs3xmt'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-tmajrs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-19fyrs8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-8lrcvc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1suru6g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-25gmda.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-5nhfwz.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1nm2w9m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1f71x94.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1v53trq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.396347"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.429961"], ["updated_at", "2017-01-17 23:07:26.429961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1jwj24h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-19uezqi.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-7qqpn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.457829"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.488919"], ["updated_at", "2017-01-17 23:07:26.488919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1j1a2i0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-qiso8p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-19lp57f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.579042"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.611475"], ["updated_at", "2017-01-17 23:07:26.611475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.5ms) Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-g2lzjt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1clvfyg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1xupgdx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.657076"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.687690"], ["updated_at", "2017-01-17 23:07:26.687690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:26.697731"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1oyx58d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-e4xkia.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-4oomzf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.724052"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.755800"], ["updated_at", "2017-01-17 23:07:26.755800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:26.764317"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-14tveqx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-16hka5s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-155ctz1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.790731"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.822879"], ["updated_at", "2017-01-17 23:07:26.822879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:26.830976"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1af6m95' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-odwp8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-y20zvk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:26.853042"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:26.884737"], ["updated_at", "2017-01-17 23:07:26.884737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1tb1dgk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-p4r3bf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-al9y1k.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:07:26.929260"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:07:26.959344"], ["updated_at", "2017-01-17 23:07:26.959344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1539cs0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1rpcdzr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1elf3oe.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:07:27.006021"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:07:27.037772"], ["updated_at", "2017-01-17 23:07:27.037772"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 67ms (ActiveRecord: 0.7ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-56475-11dw7vu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56475-14xdsbz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56475-118gusl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:27.083084"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:27.114405"], ["updated_at", "2017-01-17 23:07:27.114405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-56475-16dw7ov.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/7a1c5beec992bd93a92921a5988c0b5c20170117-56475-1hsl9gu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/7a1c5beec992bd93a92921a5988c0b5c20170117-56475-1yz6duw.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-56475-16dw7ov.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 23:07:27.153809"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 23:07:27.184496"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1x8ji6m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1i2lp4d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-gyg894.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:27.213840"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:27.246746"], ["updated_at", "2017-01-17 23:07:27.246746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 23:07:27.258775"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-3rnbvm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-1bbn7fn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-162faru.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:27.289001"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:27.320552"], ["updated_at", "2017-01-17 23:07:27.320552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56475-1f7ijxh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-ybdufq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56475-bihii5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:27.359876"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:27.399027"], ["updated_at", "2017-01-17 23:07:27.399027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-nk6t7x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1gn22v0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-94ydfq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:40.602539"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:40.646956"], ["updated_at", "2017-01-17 23:07:40.646956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-1xn5be0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1uc5tda.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-x1827t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:40.748149"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:40.779598"], ["updated_at", "2017-01-17 23:07:40.779598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-56578-12c53va'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-pbx1uq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-af65jy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-go6jnj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-yufv5o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1t75ce8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1fsjijt.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-17l4cq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-xp63xv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-15dabmf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:40.937444"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:40.967182"], ["updated_at", "2017-01-17 23:07:40.967182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-1y9lndc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1imjpde.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-36eygv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:41.014502"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.048043"], ["updated_at", "2017-01-17 23:07:41.048043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 23:07:41.071160"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-56578-15pcqu6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56578-1bxhqq1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56578-6pcjd0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:41.095293"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.126094"], ["updated_at", "2017-01-17 23:07:41.126094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-56578-odd4y0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/54ef1c4d1d74aaf93b3ccacbe7e8a7fa20170117-56578-182b2rm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/54ef1c4d1d74aaf93b3ccacbe7e8a7fa20170117-56578-1bze46e.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-56578-odd4y0.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 23:07:41.160937"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 23:07:41.190742"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-1nk9ld' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1n371a9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-97vp34.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:41.219476"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.253181"], ["updated_at", "2017-01-17 23:07:41.253181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-1dt7c9i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-3lzkg1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-16hmelb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:41.279608"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.313827"], ["updated_at", "2017-01-17 23:07:41.313827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-pdiqaj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-cc99ie.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1lcc2ka.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:41.339669"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.370509"], ["updated_at", "2017-01-17 23:07:41.370509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-15p0a7r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-grum60.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1il2t33.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:41.404386"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.436416"], ["updated_at", "2017-01-17 23:07:41.436416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-qjd3zg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1xyf1n7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-14y6eqx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:41.470844"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.507100"], ["updated_at", "2017-01-17 23:07:41.507100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-1bmq759' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1ol1wba.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-se6est.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:41.551917"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.582617"], ["updated_at", "2017-01-17 23:07:41.582617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:41.591759"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-uw7su' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-154cp1z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1tfyou7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:41.615848"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.649964"], ["updated_at", "2017-01-17 23:07:41.649964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:41.674787"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 0.6ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-3cq217' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-9p7cds.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-ed4tw5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:41.701872"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.738352"], ["updated_at", "2017-01-17 23:07:41.738352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:41.750028"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-1wr9mhx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-jb8whd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-12qbisg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:41.777668"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:41.811604"], ["updated_at", "2017-01-17 23:07:41.811604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-uncs9i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1sikrv9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-19vocp7.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:07:41.869666"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:07:41.899394"], ["updated_at", "2017-01-17 23:07:41.899394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56578-1kfcmj4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-1qb0mgn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56578-g5dblh.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:07:41.937827"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:07:41.968742"], ["updated_at", "2017-01-17 23:07:41.968742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-tt12pz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-6330rq.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1hnkq35.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:56.803146"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:56.847112"], ["updated_at", "2017-01-17 23:07:56.847112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-10g4cj8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-glcm74.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1vhzbk8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:56.910685"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:56.943226"], ["updated_at", "2017-01-17 23:07:56.943226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 31ms (Views: 12.3ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-tmy1uh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1idy910.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1jcly9m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:57.007453"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.035905"], ["updated_at", "2017-01-17 23:07:57.035905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:57.044147"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-1gz5ynr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1ogzz9s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-fvm7r0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:57.067106"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.096270"], ["updated_at", "2017-01-17 23:07:57.096270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:57.103915"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-1fzz1fs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-7len1q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1ic5xqi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:57.131774"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.161652"], ["updated_at", "2017-01-17 23:07:57.161652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:07:57.169560"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-g91vk8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1chtuxy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-ami4gu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:57.195006"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.224558"], ["updated_at", "2017-01-17 23:07:57.224558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-1pbw6ph' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-yx1spc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-17djd07.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:07:57.280702"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:07:57.310308"], ["updated_at", "2017-01-17 23:07:57.310308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-1eq74jd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1hng90n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-c9taj4.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:07:57.344983"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:07:57.375768"], ["updated_at", "2017-01-17 23:07:57.375768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-2ch8ez' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-150bhuw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-92zo0q.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:57.410335"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.444286"], ["updated_at", "2017-01-17 23:07:57.444286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-56672-6eqe2g'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-y9kw78' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-4mvyl1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1u9q5l2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-3wzas7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-15rsv0v.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-z7yi6g.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-1yvtn03' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1mn73cf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-s56p6e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:57.595824"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.626816"], ["updated_at", "2017-01-17 23:07:57.626816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-10du2mr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-keg0rp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-aoov8p.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:57.661200"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.692275"], ["updated_at", "2017-01-17 23:07:57.692275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-4ko4tg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-x9mzlu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-pdx731.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:57.725600"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.760864"], ["updated_at", "2017-01-17 23:07:57.760864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-ffb8q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1xjrcru.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1hidijx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:57.822191"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.853389"], ["updated_at", "2017-01-17 23:07:57.853389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-fmqu65' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-59o77p.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-1jjtmol.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:07:57.877688"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.909729"], ["updated_at", "2017-01-17 23:07:57.909729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56672-e6nif5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-nuq1ow.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56672-11aay0k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:57.934830"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:57.969155"], ["updated_at", "2017-01-17 23:07:57.969155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 23:07:57.978085"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-56672-10jtvcb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56672-6lbbfu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56672-1aduf7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:07:57.999349"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:07:58.032580"], ["updated_at", "2017-01-17 23:07:58.032580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-56672-l11ojb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/611a8c4195170064d2612222f8f39d0820170117-56672-1qgufp1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/611a8c4195170064d2612222f8f39d0820170117-56672-spphc7.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-56672-l11ojb.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 23:07:58.067251"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 23:07:58.098729"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-359mku' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1uecxya.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1grltft.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:22.094193"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.141450"], ["updated_at", "2017-01-17 23:08:22.141450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 12ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-15afuqc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-u92llc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1msrt0i.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:08:22.221404"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:08:22.248878"], ["updated_at", "2017-01-17 23:08:22.248878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 63ms (ActiveRecord: 0.7ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-va8tqb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1mumjrt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-p4ysyy.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-17 23:08:22.301125"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-17 23:08:22.331405"], ["updated_at", "2017-01-17 23:08:22.331405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-nmrkue' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-4uilut.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1kj6lfm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:22.363529"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.395205"], ["updated_at", "2017-01-17 23:08:22.395205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:08:22.410049"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-huwjv3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1ovvpjb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1me1pwy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:22.434978"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.465678"], ["updated_at", "2017-01-17 23:08:22.465678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:08:22.474481"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-35mfjh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1lm8gvi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-jznust.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:22.504836"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.534561"], ["updated_at", "2017-01-17 23:08:22.534561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-17 23:08:22.543493"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-yxpo7a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-cv0amg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1wymnt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:22.566333"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.596099"], ["updated_at", "2017-01-17 23:08:22.596099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-k37rft' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1cvlt2i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-znbz4f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:22.637324"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.666025"], ["updated_at", "2017-01-17 23:08:22.666025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-1n9jye3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-7dt3ww.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1hxrhbb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:08:22.702832"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.737261"], ["updated_at", "2017-01-17 23:08:22.737261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-wavf1z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-164do9n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-gmuon2.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:08:22.774556"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.807037"], ["updated_at", "2017-01-17 23:08:22.807037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-mjgq97' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1qna45d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-411ofy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:22.843558"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.874502"], ["updated_at", "2017-01-17 23:08:22.874502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-1y5ktew' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-p5wq4j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-9m0erx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:22.897915"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:22.929504"], ["updated_at", "2017-01-17 23:08:22.929504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170117-56794-19y7gaa'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-1unqvw0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1nen2y4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1nsh03v.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-1583hkj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1a45jfv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-s679vn.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-heju8d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-wufafl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-109a6zb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:23.107264"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:23.137115"], ["updated_at", "2017-01-17 23:08:23.137115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-z5rv52' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1kzudvi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-7cqd34.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-17 23:08:23.163705"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:23.194291"], ["updated_at", "2017-01-17 23:08:23.194291"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170117-56794-1ssua2j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-19d71nq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170117-56794-1vlengb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:08:23.218731"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:23.254012"], ["updated_at", "2017-01-17 23:08:23.254012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando as seguintes colunas: Nome"], ["updated_at", "2017-01-17 23:08:23.264512"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170117-56794-1wwt66g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56794-1yl89h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170117-56794-mef137.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-17 23:08:23.287532"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-17 23:08:23.317697"], ["updated_at", "2017-01-17 23:08:23.317697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170117-56794-88h4nd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5c6b35aa2eb061afdb56af1d56fbee8620170117-56794-r27746.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5c6b35aa2eb061afdb56af1d56fbee8620170117-56794-8z76v2.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170117-56794-88h4nd.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-17 23:08:23.349769"], ["error", "Alguns registro não foram importados pois possuem erros!"], ["updated_at", "2017-01-17 23:08:23.381389"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.5ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-8j2w9t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1gu8thd.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1m33qsl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:11.206101"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:11.253425"], ["updated_at", "2017-01-18 13:28:11.253425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-7090-e70wpo'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-1mhsovs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1ptjaqp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1cfmahl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-llqm6b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-odnfe0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-47fbif.csv'  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-764x4f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1q0neuq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1fk29m3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:11.501600"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:11.534979"], ["updated_at", "2017-01-18 13:28:11.534979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-164qxsg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-2dwiq5.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-pi1ql0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:11.560934"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:11.590211"], ["updated_at", "2017-01-18 13:28:11.590211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-yqulsi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-mn0aha.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-de0n98.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:11.626396"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:11.660816"], ["updated_at", "2017-01-18 13:28:11.660816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:28:11.686230"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 11ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-1jz2bjz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-5fyxx5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1uwcacp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:11.713791"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:11.743438"], ["updated_at", "2017-01-18 13:28:11.743438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:28:11.752008"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-1i0jq04' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-14893yh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-fhdex9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:11.779453"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:11.811074"], ["updated_at", "2017-01-18 13:28:11.811074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:28:11.819303"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-1r7jj0t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-160aqot.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-ptwdop.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:11.841857"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:11.875655"], ["updated_at", "2017-01-18 13:28:11.875655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 18ms (Views: 13.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-h0g5dh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1ak4dpn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-ymz1g6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:11.929368"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:11.962804"], ["updated_at", "2017-01-18 13:28:11.962804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.6ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-5h36h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-16lgn6u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1hprz0y.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:28:12.011160"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:28:12.038855"], ["updated_at", "2017-01-18 13:28:12.038855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-dy8fpl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-s4vld1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1fn6cea.csv' SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:28:12.076103"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:28:12.104273"], ["updated_at", "2017-01-18 13:28:12.104273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-1i7t5v9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-13328mi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1in2xmc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:12.166954"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:12.198233"], ["updated_at", "2017-01-18 13:28:12.198233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-m7rkdg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-puoi6v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-xunu8w.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:28:12.225921"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:12.254532"], ["updated_at", "2017-01-18 13:28:12.254532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-obhs1p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1b76xso.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1355izq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:28:12.279004"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:12.312224"], ["updated_at", "2017-01-18 13:28:12.312224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-7090-1nygy5v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7090-9oblo4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7090-15wevzz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:28:12.361238"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:12.394414"], ["updated_at", "2017-01-18 13:28:12.394414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-updxqg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1eblxdv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-gdx8jo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:28:12.472525"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:12.504834"], ["updated_at", "2017-01-18 13:28:12.504834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7090-1uow6yl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-wgqljl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7090-1ar2b11.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:28:12.543132"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:28:12.580306"], ["updated_at", "2017-01-18 13:28:12.580306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-1xeii2n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-x2xeob.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1a12n02.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:39.248806"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:39.294830"], ["updated_at", "2017-01-18 13:34:39.294830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-1t4z0u4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-16pwvro.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-xm18or.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:39.330641"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:39.361627"], ["updated_at", "2017-01-18 13:34:39.361627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-896g33' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1galm82.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-hzigfl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:39.403285"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:39.433963"], ["updated_at", "2017-01-18 13:34:39.433963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-dz7pje' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1xrmjxd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-keb7x8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:34:39.516978"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:39.551289"], ["updated_at", "2017-01-18 13:34:39.551289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-7637-ikce0t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7637-hhrnjd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7637-1irvin2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:34:39.607670"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:39.640953"], ["updated_at", "2017-01-18 13:34:39.640953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-1p2gorq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-14s6sak.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-dh22c3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:34:39.686615"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:39.716183"], ["updated_at", "2017-01-18 13:34:39.716183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-jafbx5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-77lba.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-logi3n.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:34:39.751819"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:39.785788"], ["updated_at", "2017-01-18 13:34:39.785788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-1pokta1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-a1jdr3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1dt55ty.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:34:39.827423"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:34:39.856161"], ["updated_at", "2017-01-18 13:34:39.856161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-1tscqjh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1haf0xe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1j7pjcs.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:34:39.893053"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:34:39.921557"], ["updated_at", "2017-01-18 13:34:39.921557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-f7uvri' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1ly6oha.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-7r5k5c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:39.971073"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:40.003245"], ["updated_at", "2017-01-18 13:34:40.003245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-14i33pq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1o2v95w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-17azmso.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:40.045284"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:40.081484"], ["updated_at", "2017-01-18 13:34:40.081484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:34:40.106060"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-fawb7b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-8hjarc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-108kj5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:40.130778"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:40.160824"], ["updated_at", "2017-01-18 13:34:40.160824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:34:40.170853"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-rtwv63' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-4aodbw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-v0199j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:40.193698"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:40.226917"], ["updated_at", "2017-01-18 13:34:40.226917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:34:40.237285"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-fo4dkz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1hypnu3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-wzbgj3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:40.262100"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:40.293843"], ["updated_at", "2017-01-18 13:34:40.293843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-wyu7j9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1nh2z1c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-hwa182.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:40.348954"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:40.380380"], ["updated_at", "2017-01-18 13:34:40.380380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-1rp0r04' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-qb8xfk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1v3meoj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:34:40.406078"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:34:40.437580"], ["updated_at", "2017-01-18 13:34:40.437580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-7637-propww'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-ehu5rm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-46bfcn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-9ih34w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7637-8q3d48' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-181ecdh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7637-1que4tj.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-dq20fy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-p6s05k.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-11s1t3d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:35.531473"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:35.576040"], ["updated_at", "2017-01-18 13:35:35.576040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-xy10pb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1xie0se.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-tqgezz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:35:35.598099"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:35.630781"], ["updated_at", "2017-01-18 13:35:35.630781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-7774-1ifdezd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7774-uc0ol2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7774-183fu9x.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:35:35.719114"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:35.750831"], ["updated_at", "2017-01-18 13:35:35.750831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-7774-8y4w4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2b84b078f3f75dcf27563dc8330ac9ee20170118-7774-qyw1iz.csv'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-7q2r6c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-uycop1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-c5lkyu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:35.828842"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:35.858941"], ["updated_at", "2017-01-18 13:35:35.858941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:35:35.874799"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-9w556j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1caxsvo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-j1r9ix.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:35.898624"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:35.933239"], ["updated_at", "2017-01-18 13:35:35.933239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:35:35.941139"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-zozpcl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1p0k0zp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-4lwohq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:35.970135"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:36.000814"], ["updated_at", "2017-01-18 13:35:36.000814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:35:36.008986"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-e621yt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-8qx7i5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-u21coi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:36.037044"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:36.068502"], ["updated_at", "2017-01-18 13:35:36.068502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 15ms (Views: 10.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-ted7bs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1unoa9v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-13rd8xh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:36.126026"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:36.157393"], ["updated_at", "2017-01-18 13:35:36.157393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-1p3jgh0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-cfji0y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1yfmd0l.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:35:36.190574"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:35:36.219389"], ["updated_at", "2017-01-18 13:35:36.219389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-wejli0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-uhgz81.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-hk31w0.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:35:36.252788"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:35:36.283859"], ["updated_at", "2017-01-18 13:35:36.283859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-wgqchm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1b1xicg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1uddn31.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:36.322507"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:36.355336"], ["updated_at", "2017-01-18 13:35:36.355336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-p68awi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1p86qiu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1nnd2me.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:36.379792"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:36.411531"], ["updated_at", "2017-01-18 13:35:36.411531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-7774-er0mxy'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-6ijbpf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-4grtzw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1my7bni.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-lgjdco' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-604tov.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1d1boah.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-1mzwq4t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1h6s13y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1p1mwlw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:35:36.590687"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:36.621296"], ["updated_at", "2017-01-18 13:35:36.621296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-1coqequ' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1srjo4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-vbqnl3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:35:36.657076"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:36.691478"], ["updated_at", "2017-01-18 13:35:36.691478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.5ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-1q51u3c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1sdtsr0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-8t3dcp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:36.788775"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:36.820998"], ["updated_at", "2017-01-18 13:35:36.820998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7774-1l0av6y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1sasiff.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7774-1sqoq3a.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:35:36.846347"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:35:36.878778"], ["updated_at", "2017-01-18 13:35:36.878778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-1uj97ip' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1bnef1h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-s09u64.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:17.624797"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:17.669005"], ["updated_at", "2017-01-18 13:36:17.669005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-1qkri9h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1sdoo9c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-vh7ffp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:17.712871"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:17.744243"], ["updated_at", "2017-01-18 13:36:17.744243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-yeczcg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1xran6f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-32k0of.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:17.776374"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:17.807980"], ["updated_at", "2017-01-18 13:36:17.807980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-1ord3lz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-h2n0dq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-4u4nvw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:17.853988"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:17.889804"], ["updated_at", "2017-01-18 13:36:17.889804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 21ms (Views: 9.9ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-54a29w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-pdouij.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1csm3ys.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:17.941336"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:17.973465"], ["updated_at", "2017-01-18 13:36:17.973465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:36:17.981432"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-1gf2r9h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1mqrs21.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-y226xw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:18.009737"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:18.040660"], ["updated_at", "2017-01-18 13:36:18.040660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:36:18.048827"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-tjg7ct' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-104anad.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-15turr2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:18.071935"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:18.101479"], ["updated_at", "2017-01-18 13:36:18.101479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:36:18.110052"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-1eorn7b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-rmnquz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-yiua63.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:18.133277"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:18.163617"], ["updated_at", "2017-01-18 13:36:18.163617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-12cy9z7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-w6zt73.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-fe0z7i.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:36:18.216178"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:36:18.244798"], ["updated_at", "2017-01-18 13:36:18.244798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-1wu7usa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1f2wurb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-hu3e36.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:36:18.283628"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:36:18.312527"], ["updated_at", "2017-01-18 13:36:18.312527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-occrib' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-609lu3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-71ct1o.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:18.340801"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:18.370429"], ["updated_at", "2017-01-18 13:36:18.370429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-7890-zuav7e'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-8ej6i7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-13dxg2u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1mibqdd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-mg5mhe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1sjo756.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-ndr23e.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-16zxqfg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-usovmn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-zxasg9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:18.525564"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:18.556618"], ["updated_at", "2017-01-18 13:36:18.556618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-158m61j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-hy8b7o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-199tj28.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:18.660458"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:18.694826"], ["updated_at", "2017-01-18 13:36:18.694826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-1dwzvq6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1ovi7rx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-1ls7nd3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:18.731681"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:18.761931"], ["updated_at", "2017-01-18 13:36:18.761931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.3ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7890-1p3kzl5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-80x3u1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7890-gj8b4k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:18.795118"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:18.833225"], ["updated_at", "2017-01-18 13:36:18.833225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-7890-6q7vb6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7890-1vqgwzm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7890-1x6xczj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:18.875512"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:18.908089"], ["updated_at", "2017-01-18 13:36:18.908089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-7890-dl2tuq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/fc7709b953c229db3d438f2d1c9b923020170118-7890-1ef9myl.csv'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-btva4w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-9v8ui7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1jkqn9p.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:32.785077"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:32.830827"], ["updated_at", "2017-01-18 13:36:32.830827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-463ve2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-e0r0bp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1hta456.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:32.853557"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:32.886062"], ["updated_at", "2017-01-18 13:36:32.886062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-13g8rnl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-c6dugh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1tp9o1i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:32.916214"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:32.947599"], ["updated_at", "2017-01-18 13:36:32.947599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-1lyh78h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-zmzibq.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-110ikv0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:33.061984"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:33.098596"], ["updated_at", "2017-01-18 13:36:33.098596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.2ms) Completed 200 OK in 23ms (Views: 10.5ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-hpg3ok' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1l59fz9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1n0og11.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:33.148570"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:33.184426"], ["updated_at", "2017-01-18 13:36:33.184426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:36:33.194373"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 10ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-cjiwr5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1x2016d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1uyh0b8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:33.226293"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:33.255292"], ["updated_at", "2017-01-18 13:36:33.255292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:36:33.263689"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-sxfzmk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-148zo7b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-19owjre.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:33.287048"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:33.319884"], ["updated_at", "2017-01-18 13:36:33.319884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:36:33.328833"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-6ssu8y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-q521uc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-7l2jkz.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:36:33.368275"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:36:33.397682"], ["updated_at", "2017-01-18 13:36:33.397682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-1rjaomj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1n35h21.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-s8efu8.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:36:33.437814"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:36:33.467856"], ["updated_at", "2017-01-18 13:36:33.467856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.6ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-cg3zvf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-amwctj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1arilxc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:33.500995"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:33.535443"], ["updated_at", "2017-01-18 13:36:33.535443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-7981-45wtme' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7981-zqy2zk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-7981-53zt0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:33.564885"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:33.599842"], ["updated_at", "2017-01-18 13:36:33.599842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-7981-1uei1o4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c490056eaf15357d74a47237562dc9bf20170118-7981-1ike9a9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c490056eaf15357d74a47237562dc9bf20170118-7981-19ip27t.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-7981-1uei1o4.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 13:36:33.634375"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 13:36:33.665113"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-1y3ms31' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-c6vau3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-16pmm4l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:33.698119"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:33.731615"], ["updated_at", "2017-01-18 13:36:33.731615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-cfscqu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-26t3i1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1mmfgir.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:33.813355"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:33.846669"], ["updated_at", "2017-01-18 13:36:33.846669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-1p42ty3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-6dff1u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-t2rmzg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:33.879929"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:33.916150"], ["updated_at", "2017-01-18 13:36:33.916150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-7981-45zup9'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.5ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-yjmhmf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1n87bnq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-n7t1mk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-euta2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-7ow8le.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-ml44ju.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-htotoh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-52yp6a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1dw2ug5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:34.094243"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:34.124302"], ["updated_at", "2017-01-18 13:36:34.124302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-7981-1ipj6yb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-17mmopi.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-7981-1fq7d70.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:34.161637"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:34.198953"], ["updated_at", "2017-01-18 13:36:34.198953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-gypneu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-525iqe.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-wcieoe.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:47.538929"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:47.583881"], ["updated_at", "2017-01-18 13:36:47.583881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-g8cmy6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1f7hapt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-11l0icz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:47.611670"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:47.643404"], ["updated_at", "2017-01-18 13:36:47.643404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-83uwjx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-19nvnhp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1occhiq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:47.691785"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:47.724103"], ["updated_at", "2017-01-18 13:36:47.724103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-kwlrss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1q3tyvy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1tcl3cq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:47.772468"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:47.805051"], ["updated_at", "2017-01-18 13:36:47.805051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 13ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-1d1pehz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-12ei7bf.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-mhxl6o.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:36:47.869438"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:36:47.901836"], ["updated_at", "2017-01-18 13:36:47.901836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-ld4vq6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-15do2k2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-106dxa1.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:36:47.933509"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:36:47.963573"], ["updated_at", "2017-01-18 13:36:47.963573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms) Importer Load (0.4ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-1q6959g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-16b3vpo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-klermo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:48.000664"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.030709"], ["updated_at", "2017-01-18 13:36:48.030709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-qslkco' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1vqjzgw.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-zmqxy0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:48.063867"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.095890"], ["updated_at", "2017-01-18 13:36:48.095890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:36:48.109937"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-18mkwqg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-d8dwfv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1equu2z.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:48.136173"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.166861"], ["updated_at", "2017-01-18 13:36:48.166861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:36:48.177008"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-s2jnph' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-tfxd6o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1pzpf3n.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:48.202365"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.233665"], ["updated_at", "2017-01-18 13:36:48.233665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:36:48.242099"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-1kltwlf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-u0hjh6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-11noitw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:48.265811"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.295628"], ["updated_at", "2017-01-18 13:36:48.295628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-ozdvfb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-n7jilm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-fy9357.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:48.321960"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.351098"], ["updated_at", "2017-01-18 13:36:48.351098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-1jwlpdz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1n1mtrb.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1scj471.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:48.377499"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.414061"], ["updated_at", "2017-01-18 13:36:48.414061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-1re1bi0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1joyl63.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-yoc9sr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:36:48.439835"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.475504"], ["updated_at", "2017-01-18 13:36:48.475504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-8075-1rxlnp6'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-2rx0zy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1xrlpd1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-52cr9g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-25wvrc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-1j2eivv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-f1tmas.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8075-1v4m85h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-mdl8hx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8075-x6sbob.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:48.720249"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.749718"], ["updated_at", "2017-01-18 13:36:48.749718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 13:36:48.761060"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-8075-xcgmvz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-8075-1h7kiw2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-8075-b1lew5.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:36:48.790518"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:36:48.822006"], ["updated_at", "2017-01-18 13:36:48.822006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-8075-15sar1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/852c653b5bcd7d8e017da7e2ba65c89620170118-8075-1nmreno.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/852c653b5bcd7d8e017da7e2ba65c89620170118-8075-15ngckt.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-8075-15sar1.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 13:36:48.858182"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 13:36:48.888480"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-6fyoj2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1x3cza9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1jgdzx6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:13.491777"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:13.540423"], ["updated_at", "2017-01-18 13:37:13.540423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-8167-1jbubr3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-8167-lqn9qd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-8167-1i1zo4b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:37:13.587619"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:13.617395"], ["updated_at", "2017-01-18 13:37:13.617395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-8167-zc1h0z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/163f9d31f181123f22d5c0f0acd2226c20170118-8167-1hk8wqf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/163f9d31f181123f22d5c0f0acd2226c20170118-8167-1lluu0a.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-8167-zc1h0z.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 13:37:13.675654"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 13:37:13.706206"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-18ogdoz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-ghl2u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1pba9vl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:37:13.734731"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:13.766205"], ["updated_at", "2017-01-18 13:37:13.766205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 13:37:13.774709"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-1oq9ar7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1g14iba.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-jqgi28.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:13.841075"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:13.870189"], ["updated_at", "2017-01-18 13:37:13.870189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-8lztzt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1dpbbiu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-ica2z7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:13.893805"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:13.923184"], ["updated_at", "2017-01-18 13:37:13.923184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-8167-1spvzy4'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-qdvjhb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-7o8r2m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-2x73h8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-7elfrr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1dvrqeu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-5gbv34.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-19nm8y6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1elyjs2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-kew7be.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:37:14.106855"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:37:14.133782"], ["updated_at", "2017-01-18 13:37:14.133782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 51ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-1hyix75' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-oq607o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-17mo4q5.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:37:14.170117"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:37:14.197828"], ["updated_at", "2017-01-18 13:37:14.197828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-164mjdn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-10vysj0.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-16vspn8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:14.237854"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:14.268200"], ["updated_at", "2017-01-18 13:37:14.268200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-1slsd7x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-2uiv2r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-10vyb1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:14.314156"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:14.346515"], ["updated_at", "2017-01-18 13:37:14.346515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:37:14.360008"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-13vva56' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-p3ocz7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-yuoepj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:14.384349"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:14.414790"], ["updated_at", "2017-01-18 13:37:14.414790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:37:14.423661"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-6jx7w9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-14yqbn3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1h6sl7i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:14.449471"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:14.497077"], ["updated_at", "2017-01-18 13:37:14.497077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:37:14.511110"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-1q1sb33' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-cx0ygi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-ugpdzu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:14.537641"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:14.568720"], ["updated_at", "2017-01-18 13:37:14.568720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-8qebgi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-17mcnkp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1bipxd8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:14.606656"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:14.644009"], ["updated_at", "2017-01-18 13:37:14.644009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-13xit8d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-xsd3jc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-1nqpqc5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:14.669023"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:14.699478"], ["updated_at", "2017-01-18 13:37:14.699478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-x4lc39' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-f6xcuy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-z5issz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:37:14.763151"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:14.797416"], ["updated_at", "2017-01-18 13:37:14.797416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8167-11lefq9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-t7fth1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8167-13hw58g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:37:14.832822"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:14.867296"], ["updated_at", "2017-01-18 13:37:14.867296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1hcu92p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-ls1eh5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-16vw101.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:36.896929"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:36.944095"], ["updated_at", "2017-01-18 13:37:36.944095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-8265-hto6er' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-8265-wvdh6v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-8265-wztdxd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:37:36.966228"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:36.998639"], ["updated_at", "2017-01-18 13:37:36.998639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-8265-bnndjd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9555c2ed080bfde0200b1a9263b9602020170118-8265-4fre09.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9555c2ed080bfde0200b1a9263b9602020170118-8265-12of37d.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-8265-bnndjd.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 13:37:37.059928"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 13:37:37.088589"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-lqjofl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-15adgif.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1r3bhzp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:37:37.116025"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.149640"], ["updated_at", "2017-01-18 13:37:37.149640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 13:37:37.158452"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-5cv0n7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1g63k92.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-ep4uke.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:37.185062"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.217138"], ["updated_at", "2017-01-18 13:37:37.217138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1kwuw0t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1pwsny7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1cco702.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:37.241868"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.273750"], ["updated_at", "2017-01-18 13:37:37.273750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-8265-11219r3'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1ffnzq1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1j9ugxf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-advmba.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1c9snt3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-154w9hq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-192hx3x.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1am9yzw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-xot6lt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1g69pd2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:37.429190"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.459618"], ["updated_at", "2017-01-18 13:37:37.459618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1uek9m0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-u9jn5m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-ig93bi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:37.487674"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.522118"], ["updated_at", "2017-01-18 13:37:37.522118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1dv2vq1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1lnb3e8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-knj4bx.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:37:37.563204"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:37:37.594794"], ["updated_at", "2017-01-18 13:37:37.594794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.6ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-ni2ypk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1grozaf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-n8hwhp.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:37:37.633122"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:37:37.659037"], ["updated_at", "2017-01-18 13:37:37.659037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1y4jfr2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-suuv6r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-9cuy3r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:37.697361"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.726271"], ["updated_at", "2017-01-18 13:37:37.726271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-17ljne6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-24km6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1p5cz96.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:37.765234"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.797047"], ["updated_at", "2017-01-18 13:37:37.797047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:37:37.806153"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1qcpwg6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1ldqqct.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-84qxz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:37.830042"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.861415"], ["updated_at", "2017-01-18 13:37:37.861415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:37:37.869694"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-i21i9f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1g8xxf4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-nl568o.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:37.893925"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.929956"], ["updated_at", "2017-01-18 13:37:37.929956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:37:37.939043"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-dr08rh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-17m9u1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1xbjp8j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:37.961857"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:37.994293"], ["updated_at", "2017-01-18 13:37:37.994293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-1wg281k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-h0mfeu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-rbv3ni.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:37:38.025876"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:38.056344"], ["updated_at", "2017-01-18 13:37:38.056344"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8265-jbvxec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1hqc59n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8265-1tnchuy.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:37:38.089123"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:38.121116"], ["updated_at", "2017-01-18 13:37:38.121116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.3ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-1kog8jc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1dn91y2.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-pa2bzz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:58.994458"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.039196"], ["updated_at", "2017-01-18 13:37:59.039196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-15oxxz8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1ajjljw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1qwj3c3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:59.090253"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.119971"], ["updated_at", "2017-01-18 13:37:59.119971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:37:59.137245"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 24ms (ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-sapny5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1wu4qwe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-30nj7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:59.172786"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.203834"], ["updated_at", "2017-01-18 13:37:59.203834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:37:59.212708"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-1mh5o38' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-a1fyav.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1t6hlrw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:59.239809"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.269445"], ["updated_at", "2017-01-18 13:37:59.269445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:37:59.282847"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-1aykvt2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1xsaf64.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-yzq9y9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:59.308041"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.340075"], ["updated_at", "2017-01-18 13:37:59.340075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-pe7khj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1pzwkd5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-zq3bly.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:59.384476"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.413896"], ["updated_at", "2017-01-18 13:37:59.413896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-1ab8klh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-qx3aah.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1myhoml.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:37:59.467452"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:37:59.499140"], ["updated_at", "2017-01-18 13:37:59.499140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-tpeyfw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-piafr7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-iu0m9c.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:37:59.533968"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:37:59.565927"], ["updated_at", "2017-01-18 13:37:59.565927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-1gkoa65' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-owtk0q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1cvitzn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:59.605755"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.636462"], ["updated_at", "2017-01-18 13:37:59.636462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-1b0ftrz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1jgbb43.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-11fh7nb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:59.661349"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.694158"], ["updated_at", "2017-01-18 13:37:59.694158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-1y3svck' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-fanbr8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1irwasa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:59.726034"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.759307"], ["updated_at", "2017-01-18 13:37:59.759307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-8364-mupbmg'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-fva24g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1fsd9g9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-trrjs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-qmaq5y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-mqz92e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-cq1bc6.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-h2yncf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1pq905l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-2ctvji.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:37:59.909572"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.939863"], ["updated_at", "2017-01-18 13:37:59.939863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-8364-npgo4z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-8364-1inflcc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-8364-1tztl4f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:37:59.963388"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:37:59.995845"], ["updated_at", "2017-01-18 13:37:59.995845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-8364-4u0il1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/67cdb1af49f18e8258adf326d5fb46c620170118-8364-1ufq6hj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/67cdb1af49f18e8258adf326d5fb46c620170118-8364-109gex8.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-8364-4u0il1.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 13:38:00.035376"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 13:38:00.064507"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-6u6r5i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-6ts06p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-63f2zi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:38:00.090250"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:38:00.121549"], ["updated_at", "2017-01-18 13:38:00.121549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 13:38:00.132028"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-1gr5oy9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1sthdra.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-1ey1dyh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:38:00.177387"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:38:00.207897"], ["updated_at", "2017-01-18 13:38:00.207897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-8364-1t20pta' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-11qncxd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-8364-qcnslw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:38:00.242568"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:38:00.275899"], ["updated_at", "2017-01-18 13:38:00.275899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-9941-1i4zleq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-9941-1ed4tak.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-9941-qf8kff.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:45:14.377532"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:45:14.421972"], ["updated_at", "2017-01-18 13:45:14.421972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-9998-qj1ik2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-9998-18b8h6i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-9998-dee6gr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:45:40.404191"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:45:40.449820"], ["updated_at", "2017-01-18 13:45:40.449820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10042-g5kpsw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10042-bcn9iw.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10042-5lxmou.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:45:50.647929"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:45:50.689759"], ["updated_at", "2017-01-18 13:45:50.689759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10082-bc0jp7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10082-4utmyt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10082-657cwa.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:45:59.275769"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:45:59.325541"], ["updated_at", "2017-01-18 13:45:59.325541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-1i1vybs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-4nx7sk.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-pouf2a.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.039436"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.082597"], ["updated_at", "2017-01-18 13:46:15.082597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-1cu6nzd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-149r0z6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1cfogo7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.108883"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.143858"], ["updated_at", "2017-01-18 13:46:15.143858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.3ms) Completed 200 OK in 21ms (Views: 12.8ms | ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-dh7fwh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-m1rbis.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-4h9opb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.200875"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.232128"], ["updated_at", "2017-01-18 13:46:15.232128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:46:15.241240"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-vfut6y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-yvr1gd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1awzgu7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.277872"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.309236"], ["updated_at", "2017-01-18 13:46:15.309236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:46:15.318235"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-1ddidn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-ij7u22.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1r1wjsh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.342597"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.373194"], ["updated_at", "2017-01-18 13:46:15.373194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 13:46:15.387801"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-1l9t8p7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1gszga9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-godypa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.410490"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.440747"], ["updated_at", "2017-01-18 13:46:15.440747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-1ldi1p6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-f327oj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-o2sdvq.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:46:15.488361"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:46:15.518379"], ["updated_at", "2017-01-18 13:46:15.518379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-fcm32z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1muy82x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1v7cxjy.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:46:15.553366"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 13:46:15.583135"], ["updated_at", "2017-01-18 13:46:15.583135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-xu3snx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-gnl3da.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-crgszp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.625858"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.656493"], ["updated_at", "2017-01-18 13:46:15.656493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-10138-bsx022'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-dmfn0m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1u50jne.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-112n66a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-d0pqjz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1em0zy2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1gzlm37.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-1t54ig1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1irp0y1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-b31cxj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.802410"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.833714"], ["updated_at", "2017-01-18 13:46:15.833714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-1494b05' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-tel9v9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1hlk837.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.901892"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.929787"], ["updated_at", "2017-01-18 13:46:15.929787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-ohj7zw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-17cnzst.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-o0kvjp.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 13:46:15.955529"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:15.987151"], ["updated_at", "2017-01-18 13:46:15.987151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-7u4sms' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-vs8pnh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-154w6lt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:46:16.012965"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:16.043138"], ["updated_at", "2017-01-18 13:46:16.043138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-sfkoi8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-162hsgh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-iik3c7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:46:16.080221"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:16.112299"], ["updated_at", "2017-01-18 13:46:16.112299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-10138-xgnnvt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-1btlfjt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-10138-3hxiz6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:46:16.165739"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:16.193778"], ["updated_at", "2017-01-18 13:46:16.193778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 13:46:16.202751"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-10138-1e0npyj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-10138-jf72w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-10138-1g1xhv6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 13:46:16.226154"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 13:46:16.257591"], ["updated_at", "2017-01-18 13:46:16.257591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-10138-13br6m2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2c7c0d3020ae3db55a9b7ef2e17a3e4620170118-10138-b9zvlp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2c7c0d3020ae3db55a9b7ef2e17a3e4620170118-10138-ugabal.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-10138-13br6m2.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 13:46:16.308222"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 13:46:16.342003"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-1egq0wx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-14z8wmu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1dxqlzy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:32.818539"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:32.871087"], ["updated_at", "2017-01-18 18:14:32.871087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-1b9pl9k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-psntl0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1rvyqij.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:14:32.899152"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:32.931842"], ["updated_at", "2017-01-18 18:14:32.931842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-1n2zlxo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-a5kelz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1cj2p4h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:14:32.982912"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.018473"], ["updated_at", "2017-01-18 18:14:33.018473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-w7do89' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-npuavi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-tbzt4j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:33.054057"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.086453"], ["updated_at", "2017-01-18 18:14:33.086453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-1gsmi9u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-a83qnd.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-14ov5og.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:33.122856"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.155478"], ["updated_at", "2017-01-18 18:14:33.155478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-1hhs757' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-g63t77.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1kyo1my.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:33.183978"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.217242"], ["updated_at", "2017-01-18 18:14:33.217242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:14:33.229479"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 19ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-v19n36' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1jax370.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-h4xjns.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:33.265860"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.296601"], ["updated_at", "2017-01-18 18:14:33.296601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:14:33.304965"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-1y5m7iq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1d9lbke.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-wlqpd1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:33.329550"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.360663"], ["updated_at", "2017-01-18 18:14:33.360663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:14:33.370433"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-f469zl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-gyxv7i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-yj1chr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:33.394737"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.426043"], ["updated_at", "2017-01-18 18:14:33.426043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 24ms (Views: 20.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-knbhdp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1yjhu8u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-zi5f9v.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:14:33.481498"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:14:33.509245"], ["updated_at", "2017-01-18 18:14:33.509245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.6ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-n9i63r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1c5l10c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-9c3b6m.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:14:33.550609"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:14:33.580866"], ["updated_at", "2017-01-18 18:14:33.580866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-1040coe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-pa6bhv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-o4qpc4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:33.622140"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.654657"], ["updated_at", "2017-01-18 18:14:33.654657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-sfzsc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1qe1i6b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-dlhmod.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:14:33.807993"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.848445"], ["updated_at", "2017-01-18 18:14:33.848445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 18:14:33.867107"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-19400-lx1nt9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-19400-avkkkw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-19400-1x1fzsl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:14:33.909570"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:33.942474"], ["updated_at", "2017-01-18 18:14:33.942474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-19400-ra06q5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/fe8fd74dfa72b13dc3461eae40c091c320170118-19400-jk8ydl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/fe8fd74dfa72b13dc3461eae40c091c320170118-19400-13qr9rz.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-19400-ra06q5.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 18:14:33.978941"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 18:14:34.010687"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-15p1ld' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1fgzzse.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-plq05t.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:34.067573"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:34.098480"], ["updated_at", "2017-01-18 18:14:34.098480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-qrn2o1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-qwai90.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-yrywrf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:14:34.125039"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:14:34.159650"], ["updated_at", "2017-01-18 18:14:34.159650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-19400-gncdjv'  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-1ly5vbn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-10dz91t.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1ja5oov.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19400-1w47aud' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-ambu5z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19400-1meoauc.csv'  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-wvctlo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-y5zgl2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1b2yg73.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:40.926702"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:40.983283"], ["updated_at", "2017-01-18 18:15:40.983283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-1gv8gg3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1ypi1nk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-rg2q7p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:15:41.013414"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.046385"], ["updated_at", "2017-01-18 18:15:41.046385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-8m2mht' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-ppthcu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1jk6u7o.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:15:41.101491"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.134537"], ["updated_at", "2017-01-18 18:15:41.134537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.2ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-j2walo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-18rikbl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1ymnu2o.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:15:41.222180"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.256264"], ["updated_at", "2017-01-18 18:15:41.256264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 18:15:41.281792"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-19543-1l5fiap' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-19543-i1kcbd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-19543-bd9vdn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:15:41.309268"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.340931"], ["updated_at", "2017-01-18 18:15:41.340931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-19543-rfxxty.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b48ab35941a71a97761d48bfc94c846320170118-19543-x3te2a.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b48ab35941a71a97761d48bfc94c846320170118-19543-1ghi8id.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-19543-rfxxty.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 18:15:41.376571"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 18:15:41.408641"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-1r5o9mc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-17y6yl7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-3ivria.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:41.438950"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.471677"], ["updated_at", "2017-01-18 18:15:41.471677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:15:41.483620"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-36ldn6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-foslsu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1067hbv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:41.510401"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.543861"], ["updated_at", "2017-01-18 18:15:41.543861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:15:41.554286"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-n5mxgr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-156u4lj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-lu39yo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:41.580631"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.613913"], ["updated_at", "2017-01-18 18:15:41.613913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:15:41.622661"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-sr5roy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1g7dqae.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-18qjeoh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:41.647738"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.679838"], ["updated_at", "2017-01-18 18:15:41.679838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 20ms (Views: 16.6ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-1h7vlne' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-dknkv3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-84cjfk.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:15:41.743496"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:15:41.774818"], ["updated_at", "2017-01-18 18:15:41.774818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-1vysg9y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1li6p9i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1q7r9xi.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:15:41.812123"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:15:41.843414"], ["updated_at", "2017-01-18 18:15:41.843414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-ivs9d5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1rjl4vf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-36z074.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:41.873607"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.906317"], ["updated_at", "2017-01-18 18:15:41.906317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-4h1a1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-t0owo7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-tpaugi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:41.938039"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:41.970151"], ["updated_at", "2017-01-18 18:15:41.970151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-xpygw6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-1np4yjh.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-z51rsr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:41.993688"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:42.026960"], ["updated_at", "2017-01-18 18:15:42.026960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-19543-1ih2l0t'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-c7av45' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-3vswxw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-v1hm8q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-1optimi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-telzb2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-rcjxqz.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-7erd48' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-c12kll.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-25ne90.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:42.275016"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:42.306237"], ["updated_at", "2017-01-18 18:15:42.306237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19543-kunpb3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-v6bvtg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19543-3ryc1q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:15:42.348503"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:15:42.379592"], ["updated_at", "2017-01-18 18:15:42.379592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-6ayf2v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-1bi9mu2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-5xg9uz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:09.279557"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:09.329645"], ["updated_at", "2017-01-18 18:17:09.329645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-w536ft' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-pmzky9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-1i0wbob.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:17:09.396690"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:17:09.422954"], ["updated_at", "2017-01-18 18:17:09.422954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 66ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-dutvvm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-m19sx8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-1pbi8cz.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:17:09.471515"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:17:09.499074"], ["updated_at", "2017-01-18 18:17:09.499074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-1y7xs26' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-viykkr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-175pk5q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:09.536563"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:09.565659"], ["updated_at", "2017-01-18 18:17:09.565659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 15.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-121c0ew' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-9o0142.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-1zc7ji.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:09.615099"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:09.645240"], ["updated_at", "2017-01-18 18:17:09.645240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:17:09.664697"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-lnflmo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-a0g18s.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-1b3usqt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:09.686737"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:09.719137"], ["updated_at", "2017-01-18 18:17:09.719137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:17:09.727519"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-1cbdjgr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-1gaykl5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-j3axdi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:09.751804"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:09.781910"], ["updated_at", "2017-01-18 18:17:09.781910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:17:09.789801"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-11ibo5m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-3gr3vg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-vgm46h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:09.812532"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:09.845478"], ["updated_at", "2017-01-18 18:17:09.845478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-19652-1jjq7bi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-19652-1oznqld.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-19652-bqb4fs.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:17:09.879433"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:09.914054"], ["updated_at", "2017-01-18 18:17:09.914054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-19652-1neho6l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8bb7a1fc60d8ae25307bb7344040e99f20170118-19652-1yiq4hg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8bb7a1fc60d8ae25307bb7344040e99f20170118-19652-10acw2e.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-19652-1neho6l.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 18:17:09.952780"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 18:17:09.986187"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-1ud74bx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-lobqs2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-3h7za6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:17:10.014679"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:10.044582"], ["updated_at", "2017-01-18 18:17:10.044582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 18:17:10.055445"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-1oegreg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-1ihvvnb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-phb5mr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:10.103735"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:10.135279"], ["updated_at", "2017-01-18 18:17:10.135279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-nwcph' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-9298yv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-103w7fu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:10.160426"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:10.193523"], ["updated_at", "2017-01-18 18:17:10.193523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-19652-1rl63e1'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-v0xsnl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-l04rzt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-7n0mw1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-1vbpu4r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-143xko4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-1mc36ye.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-4xabmm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-vs58i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-e8prto.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:10.390129"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:10.420195"], ["updated_at", "2017-01-18 18:17:10.420195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-xmif0l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-47ezw4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-1bvodzh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:17:10.444580"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:10.475327"], ["updated_at", "2017-01-18 18:17:10.475327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-1nfgpwc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-19y70yh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-gtsns3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:17:10.526082"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:10.558219"], ["updated_at", "2017-01-18 18:17:10.558219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19652-140du9y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-lto980.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19652-16dea1f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:17:10.599955"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:17:10.643753"], ["updated_at", "2017-01-18 18:17:10.643753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.6ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-uj6nr2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-cbzxyu.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-n9eyls.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:53.968657"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:54.016062"], ["updated_at", "2017-01-18 18:18:54.016062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-ursr23' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-9ehftt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1bi0oa2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:54.103302"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:54.133624"], ["updated_at", "2017-01-18 18:18:54.133624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-qclrm4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-8m73a5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1hrm7dn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:54.158220"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:54.188493"], ["updated_at", "2017-01-18 18:18:54.188493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-19786-1koetl9'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-w145a2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1r0mh7u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-qxmbjf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-1flv2ql' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-mribpz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-vyeanm.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-19786-hkqfu0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-19786-1pinmrw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-19786-126wqxq.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:18:54.373535"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:54.407944"], ["updated_at", "2017-01-18 18:18:54.407944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-19786-rxjv36.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/dff44de1ade455c9703350543e59ed0520170118-19786-1siy18c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/dff44de1ade455c9703350543e59ed0520170118-19786-10jmqtp.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-19786-rxjv36.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 18:18:54.454526"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 18:18:54.485061"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-1tlloj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-2onbvd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1bug1g0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:18:54.512024"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:54.546211"], ["updated_at", "2017-01-18 18:18:54.546211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 18:18:54.555212"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-14q26zh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1aqzpwl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1iubhlv.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:18:54.602335"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:18:54.630995"], ["updated_at", "2017-01-18 18:18:54.630995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-1rr3ftv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-ltx3ms.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1g291em.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:18:54.666910"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:18:54.695971"], ["updated_at", "2017-01-18 18:18:54.695971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-lf1klf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-151gktq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-cw63hx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:54.725914"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:54.757294"], ["updated_at", "2017-01-18 18:18:54.757294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:18:54.766110"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-hfyvgb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1ccw8lz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1jkagfl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:54.788294"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:54.823028"], ["updated_at", "2017-01-18 18:18:54.823028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:18:54.832059"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-11frqm3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-14sv09l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-v9iqqb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:54.856014"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:54.884926"], ["updated_at", "2017-01-18 18:18:54.884926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:18:54.895628"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-1esyuy1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1pg0byf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1u3d763.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:54.923077"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:54.953169"], ["updated_at", "2017-01-18 18:18:54.953169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 15ms (Views: 12.1ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-17ts36o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-y5wvs9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-9uxl9e.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:54.996178"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:55.028433"], ["updated_at", "2017-01-18 18:18:55.028433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-1fyau2a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1ydolg5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-lt3na2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:55.060490"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:55.092180"], ["updated_at", "2017-01-18 18:18:55.092180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-1yutvte' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-gddj3w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-1vlb0ej.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:18:55.114406"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:55.146582"], ["updated_at", "2017-01-18 18:18:55.146582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-9owxih' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-bskw6h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-kf1usv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:18:55.172566"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:55.204296"], ["updated_at", "2017-01-18 18:18:55.204296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-19786-t79g3m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-q991ay.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-19786-qtgx4e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:18:55.239040"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:18:55.287306"], ["updated_at", "2017-01-18 18:18:55.287306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-20410-53zg5x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20410-lzw49y.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20410-1iyecnu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:27:49.116034"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:27:49.158309"], ["updated_at", "2017-01-18 18:27:49.158309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-20441-1psdofx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20441-lw6wuh.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20441-10xi8i5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:28:11.480599"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:28:11.526929"], ["updated_at", "2017-01-18 18:28:11.526929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.2ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-20601-1hnnfdy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20601-18peel0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20601-1v5x75i.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:32:00.872183"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:32:00.923541"], ["updated_at", "2017-01-18 18:32:00.923541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.2ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-20699-qzld7t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20699-npk6ld.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20699-k0z609.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:35:09.298714"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:35:09.350595"], ["updated_at", "2017-01-18 18:35:09.350595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-20809-o5kr2u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20809-513a4h.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-20809-1e2w2n1.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:40:11.853805"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:40:11.914006"], ["updated_at", "2017-01-18 18:40:11.914006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21093-1np6z41' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21093-txa6zl.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21093-1bd1xyd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:44:37.768357"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:44:37.809749"], ["updated_at", "2017-01-18 18:44:37.809749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21166-bj57io' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21166-sqkr3s.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21166-19g6xr3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:45:31.228696"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:45:31.274393"], ["updated_at", "2017-01-18 18:45:31.274393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21202-w0syht' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21202-1qd6s7.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21202-c4zmx1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:45:50.564679"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:45:50.607804"], ["updated_at", "2017-01-18 18:45:50.607804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.2ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21239-1d49dbf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21239-16k9vq9.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21239-3cu7el.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:46:09.829484"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:46:09.880065"], ["updated_at", "2017-01-18 18:46:09.880065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21294-103b74n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21294-1luuvqv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21294-1tkrp24.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:46:37.390581"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:46:37.440810"], ["updated_at", "2017-01-18 18:46:37.440810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21412-1vm1u62' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21412-1be2xnc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21412-1nu3pov.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:49:11.473143"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:49:11.601709"], ["updated_at", "2017-01-18 18:49:11.601709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21453-12w0a7d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21453-1rcfztj.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21453-9hfp5j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:49:37.725157"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:49:37.771584"], ["updated_at", "2017-01-18 18:49:37.771584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.2ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21498-i81mr6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21498-3fngdu.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21498-1wnij33.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:49:59.890234"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:49:59.935641"], ["updated_at", "2017-01-18 18:49:59.935641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21537-197127j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21537-1kk0m0v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21537-6qt3b8.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:50:21.291763"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:50:21.346092"], ["updated_at", "2017-01-18 18:50:21.346092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21596-1frjt9x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21596-mq4bp3.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21596-15z5xzn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:07.399129"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:07.441099"], ["updated_at", "2017-01-18 18:51:07.441099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-ji6s3l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1gbzyky.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-73yi1t.csv' SQL (1.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:57.362858"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:57.413196"], ["updated_at", "2017-01-18 18:51:57.413196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-pll3mw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-hmwwd5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-dxlkd4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:51:57.449949"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:57.483598"], ["updated_at", "2017-01-18 18:51:57.483598"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-bsy9yv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1redrxb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1iz28c2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:51:57.539187"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:57.572206"], ["updated_at", "2017-01-18 18:51:57.572206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-1nc1bbk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1ksdkfq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1i5y2ut.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:57.604109"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:57.634383"], ["updated_at", "2017-01-18 18:51:57.634383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-21648-hqi0zr'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-mp68mj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-ji92dh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1bjzn1d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-we3qzg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-9tkyzh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1mxpf9e.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-10chaqw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-196rbk3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-jrlzv8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:57.799924"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:57.832968"], ["updated_at", "2017-01-18 18:51:57.832968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-21648-4kvolp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-21648-zy0xqc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-21648-k7jkj5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:51:57.884070"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:57.917450"], ["updated_at", "2017-01-18 18:51:57.917450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-21648-ssn05e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/07ed79b1d4cbbfa45ab0b51e8343048920170118-21648-1uusqz4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/07ed79b1d4cbbfa45ab0b51e8343048920170118-21648-12ri94d.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-21648-ssn05e.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 18:51:57.954189"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 18:51:57.985460"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-x4kd8z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-ii1tqk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1g4ulf9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:51:58.015948"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:58.046219"], ["updated_at", "2017-01-18 18:51:58.046219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 18:51:58.055950"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-yagwaz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-elkiaf.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1aiz07k.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:51:58.121121"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:51:58.152922"], ["updated_at", "2017-01-18 18:51:58.152922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-1iw0l8k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-awzk6v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-11qbz8g.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:51:58.188898"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:51:58.216017"], ["updated_at", "2017-01-18 18:51:58.216017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-196g13j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-14edt8b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-101vl74.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:58.248543"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:58.281250"], ["updated_at", "2017-01-18 18:51:58.281250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 18.8ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-23yzb8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1vijcbu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1h4d9ri.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:58.328202"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:58.360185"], ["updated_at", "2017-01-18 18:51:58.360185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:51:58.368099"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-1wjk40x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-ugyco7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1suioup.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:58.393848"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:58.423193"], ["updated_at", "2017-01-18 18:51:58.423193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:51:58.431913"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-14ygvgg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-rdxnaa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-jdjlfk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:58.456295"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:58.487092"], ["updated_at", "2017-01-18 18:51:58.487092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:51:58.495147"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-1n0l3vv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1xxbwku.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-rernr2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:58.522135"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:58.553185"], ["updated_at", "2017-01-18 18:51:58.553185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-15yikkv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1jq5uk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1si4bi7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:58.594424"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:58.628730"], ["updated_at", "2017-01-18 18:51:58.628730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-21648-1xqrdc2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-1706tr9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-21648-16uvzaq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:51:58.656607"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:51:58.687694"], ["updated_at", "2017-01-18 18:51:58.687694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-1p3x9u9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-ykn8ue.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-eip04b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:35.824215"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:35.867469"], ["updated_at", "2017-01-18 18:56:35.867469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-s6e7wg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-13uu4be.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-u2udzu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:35.938422"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:35.967187"], ["updated_at", "2017-01-18 18:56:35.967187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-c5aqbi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-skljmp.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-gfu763.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:36.002540"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.033274"], ["updated_at", "2017-01-18 18:56:36.033274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-ro7cks' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-bngdpe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-4ibryc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:36.080635"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.110417"], ["updated_at", "2017-01-18 18:56:36.110417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-23496-1vsofft'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-1hztltf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-e44dii.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-wk7psu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-1m69ffn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-mare7e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-sg8tr8.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-kq2eae' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-8aungp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-6og4nx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:36.281298"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.310224"], ["updated_at", "2017-01-18 18:56:36.310224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-1glyb6g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-jl4dre.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-115f01s.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:36.337025"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.364613"], ["updated_at", "2017-01-18 18:56:36.364613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-1trwbhl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-uifqgo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-143sqw8.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:56:36.425997"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:56:36.454053"], ["updated_at", "2017-01-18 18:56:36.454053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.6ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-pgpqit' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-16hsnid.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-13on2i1.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 18:56:36.495774"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 18:56:36.527316"], ["updated_at", "2017-01-18 18:56:36.527316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-1b9gkpw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-1expf9i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-1ip9eo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:36.557363"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.588250"], ["updated_at", "2017-01-18 18:56:36.588250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-1dcvzk1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-fw2zlj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-xmngc0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:36.617922"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.648691"], ["updated_at", "2017-01-18 18:56:36.648691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:56:36.657448"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-zkxxgi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-19p02t1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-mq48q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:36.680363"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.709173"], ["updated_at", "2017-01-18 18:56:36.709173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:56:36.717457"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-103i1un' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-rasy5v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-1j93a71.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 18:56:36.742880"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.773909"], ["updated_at", "2017-01-18 18:56:36.773909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 18:56:36.783475"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-23496-1d9wbn6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-23496-e991rm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-23496-1ejd18w.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:56:36.835546"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.866525"], ["updated_at", "2017-01-18 18:56:36.866525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-23496-ddy2xt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5f676b86817949792ac1039861745fda20170118-23496-1kyft28.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5f676b86817949792ac1039861745fda20170118-23496-1txh2dc.csv' SQL (0.4ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-23496-ddy2xt.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 18:56:36.905821"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 18:56:36.938496"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-11gxjlv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-l0kfbo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-1g3cau2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:56:36.964009"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:36.996612"], ["updated_at", "2017-01-18 18:56:36.996612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 18:56:37.005898"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-1h8hjhi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-jctrzd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-qrcvdv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:56:37.033212"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:37.066951"], ["updated_at", "2017-01-18 18:56:37.066951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-23496-12ear4s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-1dx1b53.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-23496-fqp1r2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 18:56:37.122947"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 18:56:37.156341"], ["updated_at", "2017-01-18 18:56:37.156341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (2.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-pupyt1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-r2o9l7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-18ytv7x.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:28.947295"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.001089"], ["updated_at", "2017-01-18 20:35:29.001089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-1aw4pti' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-1lnf9nq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-1ot4mzd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:29.058629"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.089259"], ["updated_at", "2017-01-18 20:35:29.089259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-2zkzvv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-14lwie3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-ag0uy9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:29.124959"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.154596"], ["updated_at", "2017-01-18 20:35:29.154596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-1luct4q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-hoi039.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-1as3y9i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:29.219762"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.249897"], ["updated_at", "2017-01-18 20:35:29.249897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-1v2a5f2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-1tqw86f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-18f2z78.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:29.277966"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.312045"], ["updated_at", "2017-01-18 20:35:29.312045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-30800-1rlyvc2'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-ww13qq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-sadkuo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-o7ikq5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-1ffams7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-f0uumk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-1uqa5a3.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-im02ec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-u7o9yw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-14ypzjx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:35:29.489849"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.522265"], ["updated_at", "2017-01-18 20:35:29.522265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-kmrm7x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-vgnasl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-zb7hq6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:35:29.588688"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.618550"], ["updated_at", "2017-01-18 20:35:29.618550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-30800-1oszwnj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-30800-4obwik.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-30800-153bljl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:35:29.645685"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.679014"], ["updated_at", "2017-01-18 20:35:29.679014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-1qamx8z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-6iezf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-1rrrx0b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:35:29.711041"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.742139"], ["updated_at", "2017-01-18 20:35:29.742139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-nwjxnj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-12kfejk.csv'  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-orraeg.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:35:29.801889"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:35:29.829280"], ["updated_at", "2017-01-18 20:35:29.829280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.7ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-1l9drn6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-3lb4ep.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-6zx4ih.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:35:29.867747"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:35:29.897519"], ["updated_at", "2017-01-18 20:35:29.897519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-m7kllm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-1oowwu9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-2pyvho.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:29.925248"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:29.955028"], ["updated_at", "2017-01-18 20:35:29.955028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:35:29.965945"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-56wxgl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-z03m44.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-jih6l8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:30.005832"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:30.039448"], ["updated_at", "2017-01-18 20:35:30.039448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:35:30.051735"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-1e9ca80' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-1nzvp8s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-zvq2vs.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:30.080492"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:30.110094"], ["updated_at", "2017-01-18 20:35:30.110094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:35:30.121605"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-7fgwee' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-c749z3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-qs237h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:30.147172"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:30.182246"], ["updated_at", "2017-01-18 20:35:30.182246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 14.4ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30800-ngyic7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-69iyh1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30800-2v11of.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:30.228591"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:30.261794"], ["updated_at", "2017-01-18 20:35:30.261794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (3.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-1lun3n2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1d571rn.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-16if4zo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:57.712600"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:57.763279"], ["updated_at", "2017-01-18 20:35:57.763279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-30892-miuhvc'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-bu4nfn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-py7uxk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-pf3t0m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-1y5m8s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1jywn0g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-madoou.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-5viogq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-16ihbcu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1r2crny.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:57.929528"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:57.963728"], ["updated_at", "2017-01-18 20:35:57.963728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-87dj00' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1ferova.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1jb2cyg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:57.992280"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.023764"], ["updated_at", "2017-01-18 20:35:58.023764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-s3xdhe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-193hc9n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-8man9c.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:35:58.085090"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.116784"], ["updated_at", "2017-01-18 20:35:58.116784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-1e4sk86' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1b8vjkx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-crrrf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:35:58.158418"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.190207"], ["updated_at", "2017-01-18 20:35:58.190207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-1ov0jlj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1gi23gg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-zsp8fq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:58.266151"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.298961"], ["updated_at", "2017-01-18 20:35:58.298961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-12zjc3q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-78j6sm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1gv58ok.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:58.327281"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.359030"], ["updated_at", "2017-01-18 20:35:58.359030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-2y5gr7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1y2mdla.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-i9sfkc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:35:58.381302"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.414061"], ["updated_at", "2017-01-18 20:35:58.414061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:35:58.423199"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-30892-18izizu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-30892-1jfu58g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-30892-uo6g5x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:35:58.446739"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.478633"], ["updated_at", "2017-01-18 20:35:58.478633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-30892-1c27rs4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/301e465db44c9ee3f7fe3cc33b1964ac20170118-30892-ll0x1c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/301e465db44c9ee3f7fe3cc33b1964ac20170118-30892-1wgunks.csv' SQL (0.1ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-30892-1c27rs4.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:35:58.509855"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:35:58.540491"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-9dhqy2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1jpswxz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-2vjysn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:58.571086"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.604098"], ["updated_at", "2017-01-18 20:35:58.604098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:35:58.614375"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-1tij37z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-my898x.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-dh3ojw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:58.638740"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.669811"], ["updated_at", "2017-01-18 20:35:58.669811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:35:58.678646"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-iw8e8u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1vf95xe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1aaagf8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:58.706105"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.736691"], ["updated_at", "2017-01-18 20:35:58.736691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:35:58.744753"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-9h8crk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1xuc0k9.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-lyl26c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:58.768463"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:58.803983"], ["updated_at", "2017-01-18 20:35:58.803983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 12.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-cl57vm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1itbd0r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-1a2v6hf.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:35:58.854359"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:35:58.884915"], ["updated_at", "2017-01-18 20:35:58.884915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-14psf4w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-i4ook4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-kj8o26.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:35:58.923168"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:35:58.953113"], ["updated_at", "2017-01-18 20:35:58.953113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30892-1ow0r75' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-126e85w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30892-2ceg4c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:35:58.994563"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:35:59.026716"], ["updated_at", "2017-01-18 20:35:59.026716"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-rkpj94' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-d2d8rq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-ko8lfq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:11.683219"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:11.727061"], ["updated_at", "2017-01-18 20:36:11.727061"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1uxg2sf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-sdyhhv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-8twjuc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:36:11.755655"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:11.789141"], ["updated_at", "2017-01-18 20:36:11.789141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-l7bhxe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-14r97zy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-17yzrpt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:36:11.843445"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:11.875790"], ["updated_at", "2017-01-18 20:36:11.875790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-30994-wi73gx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-30994-jmdqsy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-30994-a67po0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:36:11.923658"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:11.956285"], ["updated_at", "2017-01-18 20:36:11.956285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-30994-qfqs3h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5c60fbc69699204b711af19d90376c5d20170118-30994-aq2d3o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5c60fbc69699204b711af19d90376c5d20170118-30994-dkqm20.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-30994-qfqs3h.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:36:12.000051"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:36:12.028415"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-11pq1fr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1sfwcwo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-pm0oth.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:36:12.055877"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:12.086369"], ["updated_at", "2017-01-18 20:36:12.086369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:36:12.094937"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1nnyl3y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-11pkfwd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1nphjw8.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:36:12.143974"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:36:12.173071"], ["updated_at", "2017-01-18 20:36:12.173071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1ewsmxe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-j1gnqh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1qnqczn.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:36:12.207719"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:36:12.237389"], ["updated_at", "2017-01-18 20:36:12.237389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-11mqyl1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1z0kp60.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-qu38mr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:12.273463"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:12.305333"], ["updated_at", "2017-01-18 20:36:12.305333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1uqttcw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-r1uz41.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1ge49hf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:12.347399"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:12.375718"], ["updated_at", "2017-01-18 20:36:12.375718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-2d85w0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-32z0ag.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-qyk8ph.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:12.410080"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:12.442076"], ["updated_at", "2017-01-18 20:36:12.442076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:36:12.450402"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1sctmqz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-q4hdh4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1fsqt52.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:12.475864"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:12.510449"], ["updated_at", "2017-01-18 20:36:12.510449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:36:12.522540"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1cy6yqc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1sggusz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1xjrqb2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:12.546548"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:12.579021"], ["updated_at", "2017-01-18 20:36:12.579021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:36:12.592853"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1tou5b3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-do91kk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1au00ae.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:12.658528"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:12.690726"], ["updated_at", "2017-01-18 20:36:12.690726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-30994-cdbpyx'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-ud8mcm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-fdccj8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-vkfk9c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1hgdmxn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-yvb97a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-jqoz08.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1ple2ts' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1e4x5f4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-sx197t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:12.854348"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:12.890403"], ["updated_at", "2017-01-18 20:36:12.890403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1eay3gz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1y22327.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1kwcvkl.csv' SQL (1.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:12.978914"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:13.027088"], ["updated_at", "2017-01-18 20:36:13.027088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-30994-1znob1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1qhqb2b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-30994-1ojcbkf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:36:13.053577"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:36:13.088076"], ["updated_at", "2017-01-18 20:36:13.088076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-31625-1t1ks31' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31625-ljv876.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31625-17wuxjy.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:42:13.586784"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:42:13.638422"], ["updated_at", "2017-01-18 20:42:13.638422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-31659-1sshqar' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31659-1dsatro.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31659-deiu79.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:42:30.043914"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:42:30.093654"], ["updated_at", "2017-01-18 20:42:30.093654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-31701-cio30s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31701-20opv2.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31701-1c1iuv0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:42:48.799571"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:42:48.849911"], ["updated_at", "2017-01-18 20:42:48.849911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-31746-10io2bi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31746-1ofl18o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31746-vny3nj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:43:05.465081"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:43:05.509337"], ["updated_at", "2017-01-18 20:43:05.509337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-31792-1nix8ef' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31792-1l70r64.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31792-g0ib23.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:43:35.706279"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:43:35.756701"], ["updated_at", "2017-01-18 20:43:35.756701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-31855-r408ah' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31855-1l6jng0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31855-odee3b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:44:51.108503"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:44:51.161960"], ["updated_at", "2017-01-18 20:44:51.161960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-31905-155xlav' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31905-1xi3bl8.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31905-hsxiod.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:45:19.855076"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:45:19.897789"], ["updated_at", "2017-01-18 20:45:19.897789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-31946-1frtaaw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31946-96hy3a.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-31946-t6hbsn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:45:43.276159"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:45:43.321297"], ["updated_at", "2017-01-18 20:45:43.321297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32032-1gwam2k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32032-1wdtesf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32032-zh9uup.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:47:21.361213"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:47:21.413163"], ["updated_at", "2017-01-18 20:47:21.413163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32082-tlfgzn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32082-1h14d26.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32082-d199rv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:48:02.620661"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:48:02.669290"], ["updated_at", "2017-01-18 20:48:02.669290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32135-1gt29qa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32135-2vxlfo.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32135-7bw126.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:49:09.503486"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:49:09.549469"], ["updated_at", "2017-01-18 20:49:09.549469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32184-z4qzrw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32184-ehc88g.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32184-1asg4ij.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:49:31.178082"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:49:31.222903"], ["updated_at", "2017-01-18 20:49:31.222903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32223-17fpvia' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32223-95429t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32223-9zx1de.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:49:50.903739"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:49:50.952326"], ["updated_at", "2017-01-18 20:49:50.952326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32261-11w9pq3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32261-1eq2yod.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32261-cisbpd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:50:09.834473"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:50:09.886635"], ["updated_at", "2017-01-18 20:50:09.886635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32306-13poxp3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32306-1yzn926.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32306-qa2o48.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:50:34.421195"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:50:34.467047"], ["updated_at", "2017-01-18 20:50:34.467047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-1pakd1y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1pqgmmo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-firddq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:38.014465"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.066001"], ["updated_at", "2017-01-18 20:51:38.066001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-32470-alcx61' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32470-sa1ihl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32470-1pwtvil.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:51:38.161194"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.196112"], ["updated_at", "2017-01-18 20:51:38.196112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-32470-1mk1udp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f0604cb973dbf0c69ffa8c6c9b1d5bb720170118-32470-cdji50.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f0604cb973dbf0c69ffa8c6c9b1d5bb720170118-32470-7v33c8.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-32470-1mk1udp.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:51:38.264856"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:51:38.293187"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-15mev0c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-17dzfkc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-15afcdt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:51:38.321028"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.353007"], ["updated_at", "2017-01-18 20:51:38.353007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:51:38.361934"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-g8bvz7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1ooeyg8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-wcg6w2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:51:38.384622"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.418331"], ["updated_at", "2017-01-18 20:51:38.418331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-h3nhyn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-14r9efk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-a384en.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:51:38.450223"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.481901"], ["updated_at", "2017-01-18 20:51:38.481901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-1v1pyge' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1dhvwjo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-19iuawf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:38.528805"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.558458"], ["updated_at", "2017-01-18 20:51:38.558458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 23ms (Views: 19.2ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-1pi6vx5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1e4v042.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-9edgdr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:38.613968"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.643721"], ["updated_at", "2017-01-18 20:51:38.643721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:51:38.652509"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-iwduz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-a0khmr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1uzljni.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:38.678051"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.715303"], ["updated_at", "2017-01-18 20:51:38.715303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:51:38.724139"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-kcydx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-taom6p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-2az9u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:38.749648"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.784403"], ["updated_at", "2017-01-18 20:51:38.784403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:51:38.793701"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-r8imr4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1hy9tj9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-cn7ssk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:38.816878"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:38.851564"], ["updated_at", "2017-01-18 20:51:38.851564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-hh3axn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1u59awl.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1urb8r9.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:51:38.887024"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:51:38.918869"], ["updated_at", "2017-01-18 20:51:38.918869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-1ayden6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-m74lyc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-j32b76.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:51:38.952590"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:51:38.980796"], ["updated_at", "2017-01-18 20:51:38.980796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-cq5qxd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1fs8m33.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1sp7dj1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:39.021219"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:39.051677"], ["updated_at", "2017-01-18 20:51:39.051677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-8rr3nq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1blpoo9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-sr6l37.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:39.075774"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:39.106378"], ["updated_at", "2017-01-18 20:51:39.106378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-32470-130gfbm'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-1wraeib' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-44fq46.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1lxqdg1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-vcb7f1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1ek96b8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1fpq6t9.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-1v4hz5z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-14qgxe3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-b6nxob.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:39.260278"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:39.290709"], ["updated_at", "2017-01-18 20:51:39.290709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32470-w8k11x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-1dh8o00.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32470-7hduil.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:51:39.397411"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:51:39.429399"], ["updated_at", "2017-01-18 20:51:39.429399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-1hqk3y2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-c4y3js.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-jk4z6w.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:19.995317"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:20.041451"], ["updated_at", "2017-01-18 20:52:20.041451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-1btjqqa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-fm5kqy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-17v291q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:20.068761"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:20.101373"], ["updated_at", "2017-01-18 20:52:20.101373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 33ms (Views: 12.1ms | ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-1th1q91' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-zeyytz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-qclu7g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:20.165392"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:20.198780"], ["updated_at", "2017-01-18 20:52:20.198780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:52:20.209201"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-1hiwa49' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-jb6v3z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-ur6fkb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:20.235977"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:20.267100"], ["updated_at", "2017-01-18 20:52:20.267100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:52:20.275378"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-19r5jyw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-14as2dr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-r7delv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:20.302100"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:20.332464"], ["updated_at", "2017-01-18 20:52:20.332464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:52:20.346754"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-a8pw4e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-1m1qyc1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-x6gfmo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:20.370498"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:20.403370"], ["updated_at", "2017-01-18 20:52:20.403370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-131fk6s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-8ehi6t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-imvbhy.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:52:20.451926"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:52:20.479424"], ["updated_at", "2017-01-18 20:52:20.479424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-eoutb0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-148jy8i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-1d0eghf.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:52:20.517592"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:52:20.548190"], ["updated_at", "2017-01-18 20:52:20.548190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-onx2ow' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-1kj1nuu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-19f7pgj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:20.640705"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:20.673784"], ["updated_at", "2017-01-18 20:52:20.673784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-1y0cg2h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-1u8cl5e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-12rvf4d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:20.696581"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:20.725628"], ["updated_at", "2017-01-18 20:52:20.725628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-32582-2o4iih'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-1oa9a4w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-u8rkem.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-qgvyrp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-1anocmz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-loffqx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-eze75a.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-29ksg7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-1upv5nf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-1ynw7tb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:20.895403"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:20.926750"], ["updated_at", "2017-01-18 20:52:20.926750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-1xbibf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-1m8a5h1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-miuevs.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:52:20.971081"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:21.005753"], ["updated_at", "2017-01-18 20:52:21.005753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32582-1wyt8te' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-nyr5dg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32582-14kzmll.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:52:21.057310"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:21.094622"], ["updated_at", "2017-01-18 20:52:21.094622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-32582-1eedrw7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32582-n67ke9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32582-ynwhfo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:52:21.135968"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:52:21.167581"], ["updated_at", "2017-01-18 20:52:21.167581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-1yrvsvu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-gckl62.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-ki4zzx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:40.147245"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:40.195412"], ["updated_at", "2017-01-18 20:53:40.195412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-hxxgll' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-58ws5c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1i5cozi.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:53:40.250839"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:53:40.277732"], ["updated_at", "2017-01-18 20:53:40.277732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 72ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-17rziwv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-kycos2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1iqtwoj.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:53:40.331962"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:53:40.360847"], ["updated_at", "2017-01-18 20:53:40.360847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-2um2pj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1k9kkbx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1utw558.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:40.406318"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:40.438810"], ["updated_at", "2017-01-18 20:53:40.438810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:53:40.454676"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-s30vj5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-748i06.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1sg7q29.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:40.482537"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:40.512394"], ["updated_at", "2017-01-18 20:53:40.512394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:53:40.524794"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-zs0m72' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-3vgde1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1ni2uym.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:40.550786"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:40.582331"], ["updated_at", "2017-01-18 20:53:40.582331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:53:40.591861"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-1bwi0w5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1yukew3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1p7xwo2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:40.616640"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:40.650793"], ["updated_at", "2017-01-18 20:53:40.650793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 12.3ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-1rimzfa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1q5na6m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-129c7r5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:40.694714"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:40.727466"], ["updated_at", "2017-01-18 20:53:40.727466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-32716-1csooiz'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-w35vv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-171q7ys.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1d86hg2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-oiz2xv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1bfvin2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1jmh9go.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-13n8sqg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-pbwe61.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1bpa7c1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:40.902704"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:40.933351"], ["updated_at", "2017-01-18 20:53:40.933351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-2lc51j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1rkovfp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1rteqb1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:41.005924"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:41.035802"], ["updated_at", "2017-01-18 20:53:41.035802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-c9y5bg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-8v7829.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1ei0qhu.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:53:41.118850"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:41.159838"], ["updated_at", "2017-01-18 20:53:41.159838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-uq3oj0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-n7vsg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-9n4ur.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:53:41.197082"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:41.228610"], ["updated_at", "2017-01-18 20:53:41.228610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.3ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-v3dinn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-3pheoi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-4kfm2l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:41.265827"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:41.298790"], ["updated_at", "2017-01-18 20:53:41.298790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-dbelhw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1nurulr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-w24pmk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:41.329502"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:41.364142"], ["updated_at", "2017-01-18 20:53:41.364142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-32716-ysuqvx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32716-4cq45d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32716-l003t7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:53:41.392175"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:41.427119"], ["updated_at", "2017-01-18 20:53:41.427119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-32716-13g9myq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0eea60274d273617a8c254c9c909b5c820170118-32716-1xs4yz9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0eea60274d273617a8c254c9c909b5c820170118-32716-akhbvy.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-32716-13g9myq.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:53:41.469957"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:53:41.501070"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32716-1r1yv6a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-1l3jxox.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32716-bqpand.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:53:41.530486"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:41.563594"], ["updated_at", "2017-01-18 20:53:41.563594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:53:41.574239"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1my42by' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-eubm9o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-b2xqgp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:55.056932"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:55.102554"], ["updated_at", "2017-01-18 20:53:55.102554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-blxtf2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-39qh8c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-uurgnd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:55.128697"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:55.162306"], ["updated_at", "2017-01-18 20:53:55.162306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-32807-1d45t0q'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1vbn3yu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-qhi0fg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-t9mh9l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1wto46s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-s2g7o9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-pv8sil.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-y3789t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-g6h6be.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-1u47bv0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:55.338684"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:55.369198"], ["updated_at", "2017-01-18 20:53:55.369198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-32807-zhwtwc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32807-5c5efm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32807-1sojtbg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:53:55.464525"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:55.501178"], ["updated_at", "2017-01-18 20:53:55.501178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-32807-12b8cgg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4937e19caae9380ccf102104beeec95520170118-32807-sc1jlt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4937e19caae9380ccf102104beeec95520170118-32807-2u6fq.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-32807-12b8cgg.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:53:55.553178"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:53:55.581055"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-w0nrdc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-w34a08.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-1q4iwba.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:53:55.608791"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:55.640847"], ["updated_at", "2017-01-18 20:53:55.640847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:53:55.648728"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1p1381i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-1hfx8sd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-whzgo0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:53:55.671231"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:55.702957"], ["updated_at", "2017-01-18 20:53:55.702957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1jjo728' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-1pxa7ls.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-1r9yh0d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:53:55.737643"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:55.767290"], ["updated_at", "2017-01-18 20:53:55.767290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.2ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-196od81' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-1l443fm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-ykrdxa.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:55.817059"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:55.853319"], ["updated_at", "2017-01-18 20:53:55.853319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1fckigq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-9i0z4c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-18o0h9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:55.876088"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:55.908429"], ["updated_at", "2017-01-18 20:53:55.908429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1giqz24' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-s4fd4y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-14ypsp5.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:53:55.953663"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:53:55.980854"], ["updated_at", "2017-01-18 20:53:55.980854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1tr6yn7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-fdxk1q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-xnpr98.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:53:56.036007"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:53:56.069033"], ["updated_at", "2017-01-18 20:53:56.069033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 77ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1kph4sw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-139josg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-1hlwss5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:56.100761"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:56.133052"], ["updated_at", "2017-01-18 20:53:56.133052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 15.3ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1lsck5x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-1rs056m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-wccv8k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:56.179817"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:56.213501"], ["updated_at", "2017-01-18 20:53:56.213501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:53:56.225960"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-mecyx2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-39p4cf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-1enr2cv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:56.252102"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:56.283380"], ["updated_at", "2017-01-18 20:53:56.283380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:53:56.294281"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-3f2ftr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-b3scvx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-12zrx7l.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:56.318726"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:56.353125"], ["updated_at", "2017-01-18 20:53:56.353125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:53:56.362694"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32807-1i4huxb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-gp3kez.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32807-2kuohg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:53:56.388161"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:53:56.417895"], ["updated_at", "2017-01-18 20:53:56.417895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-1l33ydz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-ff1hv7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-8th7yh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:15.895531"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:15.941018"], ["updated_at", "2017-01-18 20:54:15.941018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-5coaf6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-eftnkd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-18iy4s2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:15.980755"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.011680"], ["updated_at", "2017-01-18 20:54:16.011680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-1p44ibv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-150wodx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1v7nixv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:16.046786"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.077005"], ["updated_at", "2017-01-18 20:54:16.077005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-32901-xi2haz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32901-2kvbkb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32901-1apk5kf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:16.126558"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.159197"], ["updated_at", "2017-01-18 20:54:16.159197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-32901-1vp2axx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f6e645764678fdae9c8f9b4ce8e9de4c20170118-32901-1uf8tc4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f6e645764678fdae9c8f9b4ce8e9de4c20170118-32901-qbjgvr.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-32901-1vp2axx.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:54:16.220525"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:54:16.251543"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-5bpi8k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-5dm77m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1dz4w37.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:16.279654"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.315624"], ["updated_at", "2017-01-18 20:54:16.315624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:54:16.324723"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-12f1k0a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-4iwp78.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-9yegwl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:16.361719"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.395562"], ["updated_at", "2017-01-18 20:54:16.395562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 18ms (Views: 14.0ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-1gz23f8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-ypjqlf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1yjrxa5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:16.448847"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.481182"], ["updated_at", "2017-01-18 20:54:16.481182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:54:16.491037"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-fx3cka' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-z59kde.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-kibv8a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:16.521909"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.553882"], ["updated_at", "2017-01-18 20:54:16.553882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:54:16.562595"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-elgnmo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-19kcunx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-17s2bt8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:16.589309"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.621693"], ["updated_at", "2017-01-18 20:54:16.621693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:54:16.630232"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-g5v9n3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-25k1d4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1lcznxc.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:54:16.660276"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:54:16.692031"], ["updated_at", "2017-01-18 20:54:16.692031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-1uqhjgl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1fc2tmh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-13vgrsl.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:54:16.726618"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:54:16.755794"], ["updated_at", "2017-01-18 20:54:16.755794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-q9vz0a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1sbtmjy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-etlqfd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:16.801205"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.833260"], ["updated_at", "2017-01-18 20:54:16.833260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-1jetnnw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1c9lon7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-5lmvhc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:16.863170"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:16.899085"], ["updated_at", "2017-01-18 20:54:16.899085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-mip1ry' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1jdevj1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-5qjh0y.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:16.988765"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:17.023767"], ["updated_at", "2017-01-18 20:54:17.023767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-32901-o0wwbf'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-7tls65' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-kmeifd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1jrs55n.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-o8pfqh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1847dc9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-x66ajh.csv'  (0.1ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-14t1s1h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-s2xn6a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-czx6l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:17.264695"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:17.302718"], ["updated_at", "2017-01-18 20:54:17.302718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32901-1ff7poa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1hd44vg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32901-1v0fohi.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:17.346006"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:17.385578"], ["updated_at", "2017-01-18 20:54:17.385578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.3ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-1k6mf27' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-14uxole.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-1z3obm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:24.098429"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:24.143989"], ["updated_at", "2017-01-18 20:54:24.143989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-32992-82u5em' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32992-69hw8g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-32992-1spednr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:24.166989"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:24.201893"], ["updated_at", "2017-01-18 20:54:24.201893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-32992-1jwfjfd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/961cbaf3086802760fa5ad70fef81d2720170118-32992-147w30v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/961cbaf3086802760fa5ad70fef81d2720170118-32992-gtc066.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-32992-1jwfjfd.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:54:24.256561"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:54:24.288286"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-1s235jy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-ndwxzq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-uepi4e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:24.315106"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:24.346575"], ["updated_at", "2017-01-18 20:54:24.346575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:54:24.356614"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-22p6jf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-cu5ti0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-nkcm9a.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:24.418592"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:24.450471"], ["updated_at", "2017-01-18 20:54:24.450471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-32992-10xno4h'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-16ferp5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-19gju6g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-12ypgkl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-n2n867' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-3h5gkv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-w6g1ya.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-gx62hs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-yww6nu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-121a3p2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:24.655538"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:24.687651"], ["updated_at", "2017-01-18 20:54:24.687651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-b6l8yt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-l9ohw9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-i37u8u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:24.727696"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:24.761959"], ["updated_at", "2017-01-18 20:54:24.761959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-1qswaou' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-8un4kc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-1gu95k0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:24.793843"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:24.825399"], ["updated_at", "2017-01-18 20:54:24.825399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-ywjn5o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-1kj41d2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-6fphl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:24.861834"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:24.894277"], ["updated_at", "2017-01-18 20:54:24.894277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-rvcdjd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-15cic94.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-1agcizu.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:54:24.944229"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:54:24.972715"], ["updated_at", "2017-01-18 20:54:24.972715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-jz4yf2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-19om07w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-1ov82pe.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:54:25.008847"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:54:25.053502"], ["updated_at", "2017-01-18 20:54:25.053502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 74ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-1lgtm7u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-p9hg3b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-1s0l5no.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:25.101501"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:25.132748"], ["updated_at", "2017-01-18 20:54:25.132748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:54:25.146587"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-11n4tzv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-1x7s98d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-13z2tnh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:25.173977"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:25.210257"], ["updated_at", "2017-01-18 20:54:25.210257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:54:25.223260"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-8vbmsv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-bft3c1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-hh3ri5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:25.254005"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:25.286245"], ["updated_at", "2017-01-18 20:54:25.286245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:54:25.295259"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-9cmw1y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-o1z7a4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-1c60rld.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:25.320718"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:25.357127"], ["updated_at", "2017-01-18 20:54:25.357127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-1w8172n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-1m5qnth.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-17vw6ka.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:25.390140"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:25.424635"], ["updated_at", "2017-01-18 20:54:25.424635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-32992-1k89t7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-2pmpp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-32992-fhqx8e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:25.450182"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:25.481700"], ["updated_at", "2017-01-18 20:54:25.481700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-1be1fq9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-171v5in.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-6yuxs0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:36.036634"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.084475"], ["updated_at", "2017-01-18 20:54:36.084475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-33081-10rbqrj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-33081-xafk00.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-33081-fj7wd5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:36.120369"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.151729"], ["updated_at", "2017-01-18 20:54:36.151729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-33081-1j1d591.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/99338d6451df6568a333068e4e1055cd20170118-33081-ppsdf1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/99338d6451df6568a333068e4e1055cd20170118-33081-17ow7d1.csv' SQL (0.1ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-33081-1j1d591.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:54:36.212214"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:54:36.240707"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-yew01a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1fw2x2w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1t8nfco.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:36.266474"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.296921"], ["updated_at", "2017-01-18 20:54:36.296921"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:54:36.305292"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-17dj81x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1urq9ta.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-hf579f.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:36.327423"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.360641"], ["updated_at", "2017-01-18 20:54:36.360641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-a1vft3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-x0xnv1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-xmvixk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:54:36.394361"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.426705"], ["updated_at", "2017-01-18 20:54:36.426705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-1k5lxcy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-cpku2p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-nat861.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:36.472670"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.502408"], ["updated_at", "2017-01-18 20:54:36.502408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-91dca7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-yhmqrf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-15zredu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:36.529520"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.559653"], ["updated_at", "2017-01-18 20:54:36.559653"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-m1zvz5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1r3qoai.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-8kssf6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:36.634785"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.665841"], ["updated_at", "2017-01-18 20:54:36.665841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:54:36.677034"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-exmzjm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-7lg62.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-al6rua.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:36.703128"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.733370"], ["updated_at", "2017-01-18 20:54:36.733370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:54:36.742404"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-xc0qqn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1n15wif.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1m14ydl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:36.767459"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.799216"], ["updated_at", "2017-01-18 20:54:36.799216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:54:36.807630"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-1p7zr2t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-p07bgc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-z6bq69.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:36.832435"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:36.866479"], ["updated_at", "2017-01-18 20:54:36.866479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 17ms (Views: 13.4ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-1reixtw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-yd6twc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1w0dcn2.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:54:36.925301"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:54:36.956938"], ["updated_at", "2017-01-18 20:54:36.956938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.5ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-ayffb5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1ioljlr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-cyh8ge.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:54:36.995493"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:54:37.023998"], ["updated_at", "2017-01-18 20:54:37.023998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-1hj7n52' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-11ej2lr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1vdzjfg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:37.053122"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:37.084428"], ["updated_at", "2017-01-18 20:54:37.084428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-dv4pup' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-wwg8mn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-ax6buh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:37.138462"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:37.172454"], ["updated_at", "2017-01-18 20:54:37.172454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-g849pn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-oldp5k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1dydoan.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:54:37.194988"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:54:37.228421"], ["updated_at", "2017-01-18 20:54:37.228421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-33081-juiwqq'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-1pu87y6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-md6651.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-8zl072.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33081-1orrhal' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-x6si6y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33081-1orsx9c.csv'  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-c48pxi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-yaaot3.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1t2vyxj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:05.000614"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.045100"], ["updated_at", "2017-01-18 20:55:05.045100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-u4q2eo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1sa08o2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1n92wc6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:05.093601"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.126322"], ["updated_at", "2017-01-18 20:55:05.126322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:55:05.143993"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 22ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-qrb33' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-6zskbp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-gzojxf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:05.181522"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.211070"], ["updated_at", "2017-01-18 20:55:05.211070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:55:05.219758"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-r96rjv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-8duq3g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-y8pd0k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:05.243952"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.276996"], ["updated_at", "2017-01-18 20:55:05.276996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:55:05.285553"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-r9wlqd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-172un34.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1wwufhp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:05.311163"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.345091"], ["updated_at", "2017-01-18 20:55:05.345091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 11.9ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-6t8280' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-hym1p4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1hsozn6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:05.387619"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.419869"], ["updated_at", "2017-01-18 20:55:05.419869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-15gx76e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-t3qtka.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-gg1gl2.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:55:05.466074"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:55:05.496668"], ["updated_at", "2017-01-18 20:55:05.496668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-llp1cr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-123sug8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-r5j3rr.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:55:05.530959"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:55:05.562746"], ["updated_at", "2017-01-18 20:55:05.562746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-1ruyu1c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1o5q79y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-epqtht.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:55:05.605288"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.640186"], ["updated_at", "2017-01-18 20:55:05.640186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-1hu1rdy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-c8693g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-no4fum.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:55:05.676062"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.711044"], ["updated_at", "2017-01-18 20:55:05.711044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-f1ufas' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-sax7c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1oel9so.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:05.745649"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.779939"], ["updated_at", "2017-01-18 20:55:05.779939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-33180-wo409'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-1y33v27' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-5murvs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1nrjxmt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-1ytljdr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-93o23s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1x0yqy8.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-1tgzvsl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-fjny6i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-m9yesz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:05.934017"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:05.967699"], ["updated_at", "2017-01-18 20:55:05.967699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-1jv9hux' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-fj6qvz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1sre1yh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:06.039588"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:06.070439"], ["updated_at", "2017-01-18 20:55:06.070439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-2jwogi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-5609wy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-17q45qj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:06.094660"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:06.127597"], ["updated_at", "2017-01-18 20:55:06.127597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-33180-1duwrbx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-33180-14wnp6y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-33180-1gl7eqg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:55:06.175935"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:06.209003"], ["updated_at", "2017-01-18 20:55:06.209003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-33180-36l1t8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f2ea4199ab24c711e54de30ccdb60c4f20170118-33180-f8wa6t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f2ea4199ab24c711e54de30ccdb60c4f20170118-33180-1fr271.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-33180-36l1t8.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:55:06.258064"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:55:06.288506"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33180-gbocjd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-11ttfxx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33180-1w2mr9w.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:55:06.315486"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:06.352286"], ["updated_at", "2017-01-18 20:55:06.352286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:55:06.365191"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1p89m55' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-bnfbbe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-t93t2d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:51.818839"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:51.863738"], ["updated_at", "2017-01-18 20:55:51.863738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-iwbxjy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-3iakjk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-atse97.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:55:51.894627"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:51.926172"], ["updated_at", "2017-01-18 20:55:51.926172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-gg424k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-jvy454.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1r7f2jl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:55:51.974246"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.007726"], ["updated_at", "2017-01-18 20:55:52.007726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1p0fpmi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-n7jes8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-2i7pig.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:55:52.096543"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:55:52.126399"], ["updated_at", "2017-01-18 20:55:52.126399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 63ms (ActiveRecord: 0.5ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-oybobc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-g3zh5v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1e5igic.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 20:55:52.173561"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 20:55:52.202457"], ["updated_at", "2017-01-18 20:55:52.202457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-dssxaf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1bnezz1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-taucu7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:52.239387"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.270551"], ["updated_at", "2017-01-18 20:55:52.270551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-13zmham' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-kph2uk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-j2043.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:52.316762"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.348893"], ["updated_at", "2017-01-18 20:55:52.348893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:55:52.363114"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1sif7o3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-um31so.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-xvsrq3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:52.390317"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.422184"], ["updated_at", "2017-01-18 20:55:52.422184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:55:52.430048"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1ksimkk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-wqay45.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1mn1v6w.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:52.454788"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.488522"], ["updated_at", "2017-01-18 20:55:52.488522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 20:55:52.497916"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1hvrdu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-r0f9be.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1q6kvq6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:52.526739"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.557602"], ["updated_at", "2017-01-18 20:55:52.557602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-33299-nk4hlz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-33299-1p3up74.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-33299-8zlykp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:55:52.588030"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.618882"], ["updated_at", "2017-01-18 20:55:52.618882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-33299-13p8l1x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ebbf674c85dfaef764f40745eb206d6e20170118-33299-40y7pk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ebbf674c85dfaef764f40745eb206d6e20170118-33299-hej1pi.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-33299-13p8l1x.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 20:55:52.650248"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 20:55:52.678461"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-j9jpcr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1091zmr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-10ho1fx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 20:55:52.701977"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.733938"], ["updated_at", "2017-01-18 20:55:52.733938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 20:55:52.742591"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1n354wf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-22588g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1w3bq21.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:52.776904"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.809181"], ["updated_at", "2017-01-18 20:55:52.809181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1j1ie3k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-s6pahu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1dv6jb2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:52.833815"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:52.864446"], ["updated_at", "2017-01-18 20:55:52.864446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.4ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-33299-1vcnkto'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1jxfxzw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1lq0ls0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1b96xpg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-fu44qm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1l6s6tz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-3wl08p.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1hhtzfq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-11oi0g6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-17a276r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:53.069182"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:53.102800"], ["updated_at", "2017-01-18 20:55:53.102800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33299-1bgczj9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1qutmza.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33299-1bpjstt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:55:53.128371"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:55:53.163874"], ["updated_at", "2017-01-18 20:55:53.163874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33422-174dz6n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33422-6uskrb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33422-xkkhvp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:56:43.476812"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:56:43.533658"], ["updated_at", "2017-01-18 20:56:43.533658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33619-1w22fqm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33619-1mysl9c.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33619-1h95jk.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 20:59:33.940049"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 20:59:33.989030"], ["updated_at", "2017-01-18 20:59:33.989030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33675-irvnti' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33675-1m5ymg0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33675-1yxmfse.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:00:19.016892"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:00:19.067661"], ["updated_at", "2017-01-18 21:00:19.067661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.3ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33724-mpzj8l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33724-1ren03j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33724-1hisavt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:00:53.980458"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:00:54.034666"], ["updated_at", "2017-01-18 21:00:54.034666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33772-1r9rrzm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33772-1h90xu3.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33772-zliyut.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:01:36.260500"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:01:36.303081"], ["updated_at", "2017-01-18 21:01:36.303081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33813-317w3b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33813-yht4ec.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33813-qoluwz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:02:00.432172"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:02:00.477688"], ["updated_at", "2017-01-18 21:02:00.477688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33931-dqrq2d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33931-1hjxnle.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33931-q2h2cf.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:04:22.534794"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:04:22.591674"], ["updated_at", "2017-01-18 21:04:22.591674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-33972-1eeue93' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33972-1oc9ura.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-33972-1jhhn5c.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:04:39.431967"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:04:39.479019"], ["updated_at", "2017-01-18 21:04:39.479019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34099-mxqnpp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34099-1qezupt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34099-1x18vmw.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:06:38.920295"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:06:38.970036"], ["updated_at", "2017-01-18 21:06:38.970036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34156-1g90peq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34156-2vh3xy.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34156-1pg37xw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:07:04.101110"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:07:04.148740"], ["updated_at", "2017-01-18 21:07:04.148740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34220-1akianb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34220-1aegdeu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34220-16n2u0q.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:08:10.009078"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:08:10.063002"], ["updated_at", "2017-01-18 21:08:10.063002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34281-w8nwg4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34281-yl3lp7.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34281-ry17kw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:08:40.046652"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:08:40.091232"], ["updated_at", "2017-01-18 21:08:40.091232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34321-15vjlka' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34321-1mda9ri.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34321-6tdoev.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:08:54.841373"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:08:54.890128"], ["updated_at", "2017-01-18 21:08:54.890128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34541-4ebmnx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34541-33i6mw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34541-7zslsx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:13:12.984069"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:13:13.034301"], ["updated_at", "2017-01-18 21:13:13.034301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34572-181imar' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34572-jm9srv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34572-17uzfuf.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:13:21.935268"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:13:21.989859"], ["updated_at", "2017-01-18 21:13:21.989859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34610-1y3f821' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34610-dn51sm.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34610-h5g7wh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:13:32.192594"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:13:32.238961"], ["updated_at", "2017-01-18 21:13:32.238961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34644-1072p5w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34644-6k5o3y.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34644-kufqrc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:13:47.290090"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:13:47.334075"], ["updated_at", "2017-01-18 21:13:47.334075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34681-1b3omk9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34681-1wp3l8v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34681-e7xr19.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:13:59.446416"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:13:59.492495"], ["updated_at", "2017-01-18 21:13:59.492495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34761-1sq6v3o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34761-iddwsk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34761-t4jrw5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:15:19.500018"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:15:19.546430"], ["updated_at", "2017-01-18 21:15:19.546430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34803-1ayoft8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34803-r4tgis.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34803-h5t9lv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:15:48.503338"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:15:48.550328"], ["updated_at", "2017-01-18 21:15:48.550328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34852-1kxguul' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34852-1ael17g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34852-jsqyfc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:16:20.643400"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:16:20.689232"], ["updated_at", "2017-01-18 21:16:20.689232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34886-wehpi1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34886-fzjr1r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34886-1iatq5e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:16:34.219766"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:16:34.264615"], ["updated_at", "2017-01-18 21:16:34.264615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-34925-1w5iza6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34925-13vl429.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-34925-gikonu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:16:48.655635"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:16:48.700268"], ["updated_at", "2017-01-18 21:16:48.700268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-35044-1blrfg9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-35044-1b8jtk1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-35044-4g78jw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:18:26.730945"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:18:26.783293"], ["updated_at", "2017-01-18 21:18:26.783293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-35108-19srgxg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-35108-44dbzl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-35108-1oij7d2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:18:49.778721"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:18:49.831326"], ["updated_at", "2017-01-18 21:18:49.831326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.2ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-35154-1lbp62k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-35154-1vqtkgc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-35154-1see0vk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:19:11.660706"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:19:11.704568"], ["updated_at", "2017-01-18 21:19:11.704568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-36879-1xgu8x1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-36879-1oxj4im.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-36879-3hstae.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:39:44.324539"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:39:44.378342"], ["updated_at", "2017-01-18 21:39:44.378342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-36928-a4ixjq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-36928-8gvkl9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-36928-1t03nsm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:40:08.874013"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:40:08.927206"], ["updated_at", "2017-01-18 21:40:08.927206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37037-pj4oow' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37037-1jl9r4.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37037-11fn88a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:41:23.372897"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:41:23.419551"], ["updated_at", "2017-01-18 21:41:23.419551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37084-q79ubs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37084-18j1ah8.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37084-agqmk9.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:41:42.073720"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:41:42.120598"], ["updated_at", "2017-01-18 21:41:42.120598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37129-1x7ybjm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37129-o50ga6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37129-19nv8x5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:42:09.831765"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:42:09.875746"], ["updated_at", "2017-01-18 21:42:09.875746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37204-acobpf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37204-e07mbt.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37204-y7r910.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:42:55.535110"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:42:55.580734"], ["updated_at", "2017-01-18 21:42:55.580734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37372-17winn9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37372-1iznasd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37372-c4sz1m.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:46:49.484904"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:46:49.532738"], ["updated_at", "2017-01-18 21:46:49.532738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37459-bax6he' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37459-gyh6y7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37459-1k8dbt9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:47:46.398464"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:47:46.443726"], ["updated_at", "2017-01-18 21:47:46.443726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37488-1wuaqqy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37488-qmh8eq.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37488-1uc4cs0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:47:56.155024"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:47:56.202422"], ["updated_at", "2017-01-18 21:47:56.202422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37518-1vhjqqq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37518-rviqz1.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37518-1g0spfp.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:48:14.464882"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:48:14.510340"], ["updated_at", "2017-01-18 21:48:14.510340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37559-me4x1v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37559-1o74ds2.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37559-mt9b1c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:48:34.669177"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:48:34.715174"], ["updated_at", "2017-01-18 21:48:34.715174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37593-11gn61' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37593-ksvyt1.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37593-1vvcpqf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:48:45.907789"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:48:45.952730"], ["updated_at", "2017-01-18 21:48:45.952730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37623-18oghky' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37623-15dj4sy.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37623-tdq7p5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:48:56.234864"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:48:56.282008"], ["updated_at", "2017-01-18 21:48:56.282008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37665-8qcvve' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37665-182jjcl.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37665-1qaq9w5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:49:06.035531"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:49:06.083061"], ["updated_at", "2017-01-18 21:49:06.083061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37704-kpcjmr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37704-v34x49.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37704-1g3b5zb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:49:31.117608"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:49:31.169938"], ["updated_at", "2017-01-18 21:49:31.169938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37739-1b4x43d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37739-1oi3f8k.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37739-1dgj2dd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:49:42.688340"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:49:42.733465"], ["updated_at", "2017-01-18 21:49:42.733465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37777-xgp6ct' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37777-150vcyr.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37777-vrmha8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:49:58.208431"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:49:58.250396"], ["updated_at", "2017-01-18 21:49:58.250396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37858-qdp8vg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37858-1b7jer1.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37858-1vvpyc8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:50:36.236541"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:50:36.282857"], ["updated_at", "2017-01-18 21:50:36.282857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37892-r93hj6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37892-1ljnwcl.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37892-13t7bdg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:50:52.230845"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:50:52.275014"], ["updated_at", "2017-01-18 21:50:52.275014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-37932-1qc36mi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37932-1j9hlv0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-37932-t7ckui.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 21:51:07.618602"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 21:51:07.662582"], ["updated_at", "2017-01-18 21:51:07.662582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38329-10w91vi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38329-1s399n2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38329-4amnoo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:12:08.302324"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:12:08.351875"], ["updated_at", "2017-01-18 22:12:08.351875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38456-14io7q4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38456-1koi9wb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38456-c16wqt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:13:35.984710"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:13:36.037963"], ["updated_at", "2017-01-18 22:13:36.037963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38529-12mc5h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38529-r1vhe7.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38529-do2xad.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:14:03.726313"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:14:03.774854"], ["updated_at", "2017-01-18 22:14:03.774854"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38566-18btif6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38566-16z16ol.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38566-z7rvbe.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:14:21.699193"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:14:21.750473"], ["updated_at", "2017-01-18 22:14:21.750473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.3ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-12sl48d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-j9befb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1bxci8m.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:48.112283"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:48.164335"], ["updated_at", "2017-01-18 22:15:48.164335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-9w4r8t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-t5vs47.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1wkn85k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:15:48.190329"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:48.224730"], ["updated_at", "2017-01-18 22:15:48.224730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:15:48.267298"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-38626-1170pi5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-38626-3jxsry.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-38626-hsy1xc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:15:48.293892"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:48.329386"], ["updated_at", "2017-01-18 22:15:48.329386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-38626-sigf3m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9bb2f2e418e817b01506b9e765a9343f20170118-38626-9fqmin.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9bb2f2e418e817b01506b9e765a9343f20170118-38626-y8r1ly.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-38626-sigf3m.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:15:48.368393"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:15:48.402726"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-qnx53f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1ome7vs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1ltrj0s.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:48.572271"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:48.612594"], ["updated_at", "2017-01-18 22:15:48.612594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-ml8rmu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-319dqu.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1at0ybr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:48.668511"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:48.702995"], ["updated_at", "2017-01-18 22:15:48.702995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-e7o98c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-dtvsaq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1pzhx5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:48.740734"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:48.775820"], ["updated_at", "2017-01-18 22:15:48.775820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:15:48.786819"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-146ytkp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-zhs8o7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1vdtqu8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:48.812424"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:48.844490"], ["updated_at", "2017-01-18 22:15:48.844490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:15:48.854752"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-1aecr5u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1jx609c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-rx4nra.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:48.881908"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:48.913467"], ["updated_at", "2017-01-18 22:15:48.913467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:15:48.920957"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-11uj58l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-as9fwd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-5r9ybd.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:15:48.953734"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:15:48.983236"], ["updated_at", "2017-01-18 22:15:48.983236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms) Importer Load (0.4ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-mfbxjl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-4hbufv.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1tpd3uw.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:15:49.023642"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:15:49.057782"], ["updated_at", "2017-01-18 22:15:49.057782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-19jnbij' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1avcuic.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-r523lt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:49.099009"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:49.132304"], ["updated_at", "2017-01-18 22:15:49.132304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-55x73e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1wdn4yq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-pyvt0g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:49.155407"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:49.187875"], ["updated_at", "2017-01-18 22:15:49.187875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-2n9pb7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-93grgs.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-8l9wtr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:15:49.223506"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:49.275975"], ["updated_at", "2017-01-18 22:15:49.275975"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-ezb6j2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1hi7tjx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-109moln.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:15:49.315060"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:49.347422"], ["updated_at", "2017-01-18 22:15:49.347422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-14md8hv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-tmfaoj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1hx8hld.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:49.412606"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:49.445026"], ["updated_at", "2017-01-18 22:15:49.445026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-38626-14hyf4g'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-y8ug4u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-4xgbzq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1rjaszp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-5oqpm8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-frc0l7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-fkunpz.csv'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38626-fhqrbi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-1lfj5jv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38626-xdls9z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:15:49.651531"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:15:49.682641"], ["updated_at", "2017-01-18 22:15:49.682641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-1y3ikkm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-q9ls1n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-6j6xm.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:55.070505"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:55.124721"], ["updated_at", "2017-01-18 22:17:55.124721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-1dstenw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-16rgmaz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-w7oyc3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:55.165225"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:55.198206"], ["updated_at", "2017-01-18 22:17:55.198206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 22ms (Views: 14.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-15vjv5y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-1a2k2rd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-ygvm6k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:55.261128"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:55.294570"], ["updated_at", "2017-01-18 22:17:55.294570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:17:55.305854"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 21ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-9xk7p8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-b332ly.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-xgzt4q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:55.351108"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:55.383027"], ["updated_at", "2017-01-18 22:17:55.383027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:17:55.391529"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-he3qx7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-mi5djp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-vl7b2r.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:55.416876"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:55.451902"], ["updated_at", "2017-01-18 22:17:55.451902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:17:55.468924"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-1jrtktm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-1k1v4x3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-1wll4wz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:55.490713"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:55.526199"], ["updated_at", "2017-01-18 22:17:55.526199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-og3ksf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-muexml.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-oj8ehr.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:17:55.577471"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:17:55.607910"], ["updated_at", "2017-01-18 22:17:55.607910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-7gsvgc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-1vak6l3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-amdway.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:17:55.642716"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:17:55.673876"], ["updated_at", "2017-01-18 22:17:55.673876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-1h3ttoi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-plqq7i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-6eedfu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:55.752361"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:55.786053"], ["updated_at", "2017-01-18 22:17:55.786053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-38797-1s7m1k'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-1r84gmg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-1s93uy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-4mt788.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-1v4xc37' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-1crhyro.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-1uwk65o.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-r9bwcg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-lxfk9p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-m7iytn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:55.946697"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:55.978204"], ["updated_at", "2017-01-18 22:17:55.978204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-11dcr13' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-yuuwu2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-tw2gfk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:56.004481"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:56.037991"], ["updated_at", "2017-01-18 22:17:56.037991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-1fz9rc5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-vnicpe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-1arhf68.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:17:56.065740"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:56.097185"], ["updated_at", "2017-01-18 22:17:56.097185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-tjb6fy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-sd7o92.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-f0jf7m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:17:56.209933"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:56.247029"], ["updated_at", "2017-01-18 22:17:56.247029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.3ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-iv1rhi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-6d4inc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-140z2mq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:17:56.288690"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:56.322912"], ["updated_at", "2017-01-18 22:17:56.322912"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.5ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-38797-ybi292' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-ga9p1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-38797-13ouymu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:17:56.372100"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:56.405752"], ["updated_at", "2017-01-18 22:17:56.405752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:17:56.419818"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-38797-chofjp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-38797-1uys7dv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-38797-99ifcq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:17:56.443741"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:17:56.476786"], ["updated_at", "2017-01-18 22:17:56.476786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-38797-1kqkwkw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8a7c0da5e621913b9d67932854eb949120170118-38797-hk5s05.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8a7c0da5e621913b9d67932854eb949120170118-38797-1rq94f4.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-38797-1kqkwkw.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:17:56.523689"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:17:56.556253"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-1tk80tw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-6zjhlt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1nmhu5g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:23.147047"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.194628"], ["updated_at", "2017-01-18 22:20:23.194628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-33bom6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-eay15w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-bmxc98.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:20:23.304684"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.336260"], ["updated_at", "2017-01-18 22:20:23.336260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-1g17xk0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-8vl3qp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-svqkxz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:20:23.386548"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.416983"], ["updated_at", "2017-01-18 22:20:23.416983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-12qgw8g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-oioext.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-kbbih7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:23.463728"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.493771"], ["updated_at", "2017-01-18 22:20:23.493771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-1w51noh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1r04qq8.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-dfaw97.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:23.526376"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.557548"], ["updated_at", "2017-01-18 22:20:23.557548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-1l1l2n5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-zq0ibw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-b4wkdp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:20:23.578717"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.610495"], ["updated_at", "2017-01-18 22:20:23.610495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:20:23.632767"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-39057-o5kfha' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39057-18gvahb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39057-8ksxx8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:20:23.656441"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.688963"], ["updated_at", "2017-01-18 22:20:23.688963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-39057-1x8b2fn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/82f4212d72883b8e7234fb513dc8a8c420170118-39057-o9oacz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/82f4212d72883b8e7234fb513dc8a8c420170118-39057-g3gkdh.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-39057-1x8b2fn.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:20:23.721368"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:20:23.751429"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-xkukzi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1dawaxp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1xzc551.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:23.784618"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.816637"], ["updated_at", "2017-01-18 22:20:23.816637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-ehptr6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-x2fujm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-77o8rj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:23.862920"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.894872"], ["updated_at", "2017-01-18 22:20:23.894872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:20:23.903097"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-lgrs89' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1v08frz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-189q2ul.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:23.928073"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:23.959577"], ["updated_at", "2017-01-18 22:20:23.959577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:20:23.968016"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-19utagj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-f4o06o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1j4n6ba.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:23.989847"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:24.026493"], ["updated_at", "2017-01-18 22:20:24.026493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:20:24.037469"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-d8h3hj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-2230j6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-imf36e.csv' SQL (0.6ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:20:24.071518"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:20:24.106083"], ["updated_at", "2017-01-18 22:20:24.106083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 87ms (ActiveRecord: 0.9ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-1j724va' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-7dacbw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1ejw8nx.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:20:24.171738"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:20:24.202089"], ["updated_at", "2017-01-18 22:20:24.202089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-smcem7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-k5fgtj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-h3i1g6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:24.245863"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:24.279020"], ["updated_at", "2017-01-18 22:20:24.279020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-39057-3646u7'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-10mguft' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1qb6wqa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1gkxrz9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-1xilda1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1eiem40.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-yghanj.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-17ghoyh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1gphe5u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1mue7an.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:24.463527"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:24.495844"], ["updated_at", "2017-01-18 22:20:24.495844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39057-1bwogjd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1qgrx88.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39057-1yy9w5b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:24.525977"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:24.557317"], ["updated_at", "2017-01-18 22:20:24.557317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-19midkn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-5tw6gb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-18x4toi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:39.689057"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:39.734225"], ["updated_at", "2017-01-18 22:20:39.734225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-39157-1rltrqp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39157-1ms0k0k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39157-1ij5j91.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:20:39.756479"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:39.788079"], ["updated_at", "2017-01-18 22:20:39.788079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-39157-1087rtq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d4f47def1b9fcffe6b1cdfb67b93486920170118-39157-8fek8k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d4f47def1b9fcffe6b1cdfb67b93486920170118-39157-1ky49nf.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-39157-1087rtq.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:20:39.843219"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:20:39.871659"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-oqx09v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-girkej.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1cslagq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:20:39.899119"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:39.931878"], ["updated_at", "2017-01-18 22:20:39.931878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:20:39.939940"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-64qb5b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1z18mr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1r32c26.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:39.966323"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:39.996443"], ["updated_at", "2017-01-18 22:20:39.996443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:20:40.007995"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-1gvvx04' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-111wm4s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1vsm9xt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:40.036287"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:40.067914"], ["updated_at", "2017-01-18 22:20:40.067914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:20:40.081850"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-daqwz4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-cgpls8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-lsx8km.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:40.106490"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:40.138503"], ["updated_at", "2017-01-18 22:20:40.138503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:20:40.146448"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-gnqquz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-n1lu7s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1ogab0v.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:40.170990"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:40.202021"], ["updated_at", "2017-01-18 22:20:40.202021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-137g43m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-16d30gn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1yyxnc3.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:20:40.259763"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:20:40.292975"], ["updated_at", "2017-01-18 22:20:40.292975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-5q1qqa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-c96ja8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1gyf9l2.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:20:40.327101"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:20:40.360112"], ["updated_at", "2017-01-18 22:20:40.360112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-h65kh0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-izzq64.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-l8ha6p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:40.389804"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:40.423211"], ["updated_at", "2017-01-18 22:20:40.423211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-1ifkc4c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1e8w6fa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-13ia8jo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:40.559079"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:40.590169"], ["updated_at", "2017-01-18 22:20:40.590169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-1pry1v4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-ghmig6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-4bte7c.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:40.614902"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:40.653796"], ["updated_at", "2017-01-18 22:20:40.653796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-1nu6rko' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-19bcmul.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-4l1ip8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:20:40.697715"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:40.729616"], ["updated_at", "2017-01-18 22:20:40.729616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-15vhb3f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-11hbeme.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-14q48my.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:20:40.765995"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:40.801081"], ["updated_at", "2017-01-18 22:20:40.801081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-39157-1upev4x'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-tls9bs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-k8vp7l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-pdaxv0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-1m2krek' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-sq1yj0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1p01s2w.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-rhie0e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-1gylgjh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-gxs5ek.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:40.984263"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:41.017741"], ["updated_at", "2017-01-18 22:20:41.017741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39157-1qo0awp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-12zvs29.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39157-17or8ca.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:20:41.043785"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:20:41.077585"], ["updated_at", "2017-01-18 22:20:41.077585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-13rba81' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1b4jizg.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-11amj2g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:12.076979"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.124553"], ["updated_at", "2017-01-18 22:21:12.124553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-1cvo18n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1b44gtl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-bkig7y.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:12.147466"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.179197"], ["updated_at", "2017-01-18 22:21:12.179197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-5lps20' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-mpxp12.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-iyizl3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:12.214841"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.244521"], ["updated_at", "2017-01-18 22:21:12.244521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-1p22yvv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1nw97e0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-qeu5td.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:12.335551"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.368434"], ["updated_at", "2017-01-18 22:21:12.368434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-1juwbbl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-h1lok8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-2r0aud.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:21:12.424342"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:21:12.455121"], ["updated_at", "2017-01-18 22:21:12.455121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 63ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-1bn2j2r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1d6oyop.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1pzccxd.csv' SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:21:12.501961"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:21:12.535127"], ["updated_at", "2017-01-18 22:21:12.535127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-92quar' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-up4rpw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1yyf1l8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:12.575034"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.604495"], ["updated_at", "2017-01-18 22:21:12.604495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-123q80y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-a58oxt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1i5dl7f.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:12.636917"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.669690"], ["updated_at", "2017-01-18 22:21:12.669690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:21:12.678923"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-1dv78l8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1a637ua.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1cfgjyo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:12.702044"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.734486"], ["updated_at", "2017-01-18 22:21:12.734486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:21:12.744399"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-1nlt1re' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1998lph.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-11ku5br.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:12.772534"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.803997"], ["updated_at", "2017-01-18 22:21:12.803997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:21:12.812610"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-p4w8q0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-uaxly.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-9oxiv7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:21:12.836986"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.871658"], ["updated_at", "2017-01-18 22:21:12.871658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.6ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-1h2jltw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1tlp77t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1pl470u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:21:12.909309"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:12.939785"], ["updated_at", "2017-01-18 22:21:12.939785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-esvyxd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-arat57.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-19s7a3z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:12.993832"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:13.024877"], ["updated_at", "2017-01-18 22:21:13.024877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-s10wvj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1b0oceb.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-lf7lpz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:13.065684"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:13.102927"], ["updated_at", "2017-01-18 22:21:13.102927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-39268-91uez2'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-bclvyb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-8mdwfs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1uglsm1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-10o740i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1vw4cx7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-1blkteh.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39268-1eqa38x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-gv3sm7.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39268-ib7603.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:21:13.329848"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:13.364660"], ["updated_at", "2017-01-18 22:21:13.364660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:21:13.377196"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-39268-b6ylpq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39268-sfu1de.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39268-17ue9cs.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:21:13.402376"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:13.435765"], ["updated_at", "2017-01-18 22:21:13.435765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-39268-168s29f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6f2355db5707cdfd6829b8526009a75620170118-39268-1h83ogr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6f2355db5707cdfd6829b8526009a75620170118-39268-1rbo8k4.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-39268-168s29f.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:21:13.469255"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:21:13.501534"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (2.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-1n7mpy4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-nkv8gn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1ltf9ep.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:28.303597"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:28.345151"], ["updated_at", "2017-01-18 22:21:28.345151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-39355-18zevma'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-1sk6lbk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1md20ql.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-gme2d9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-1yatcn9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-yznh1w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1x1id9o.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-og8ma6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-le9i0v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1vdrv61.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:28.508016"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:28.543209"], ["updated_at", "2017-01-18 22:21:28.543209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-uuta1l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-17akmrr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1vuj5mx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:28.571760"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:28.607572"], ["updated_at", "2017-01-18 22:21:28.607572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-1f09ysk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-pahg0g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-t4mqjp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:28.635181"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:28.669708"], ["updated_at", "2017-01-18 22:21:28.669708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 21ms (Views: 12.9ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-pwtkud' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1b4al8n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-149eyrg.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:21:28.749219"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:21:28.779355"], ["updated_at", "2017-01-18 22:21:28.779355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-1jadsxt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1ot9w71.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-13gr7d7.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:21:28.812304"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:21:28.840406"], ["updated_at", "2017-01-18 22:21:28.840406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-bl9ghc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-byfq4k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1624wyb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:28.872141"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:28.905265"], ["updated_at", "2017-01-18 22:21:28.905265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-1h5oo2c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-187hrko.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-19xycip.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:28.938563"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:28.972380"], ["updated_at", "2017-01-18 22:21:28.972380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:21:28.981082"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 8ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-aufv7t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-uufrc5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-14zcvba.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:29.010242"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:29.041706"], ["updated_at", "2017-01-18 22:21:29.041706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:21:29.056106"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-45dffn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-dxpwq7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-4ewgq4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:29.078223"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:29.108633"], ["updated_at", "2017-01-18 22:21:29.108633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:21:29.117031"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-4meaqk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-4otzxs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-x7ogma.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:29.140000"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:29.172866"], ["updated_at", "2017-01-18 22:21:29.172866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-1ffgb4r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-nie83n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-19s2v89.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:21:29.199197"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:29.230633"], ["updated_at", "2017-01-18 22:21:29.230633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-1tacvg9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1k47qjy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-oxv95x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:21:29.264525"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:29.295411"], ["updated_at", "2017-01-18 22:21:29.295411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:21:29.305215"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-39355-zf31pt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39355-63tcrh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39355-e76nj2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:21:29.328904"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:29.360815"], ["updated_at", "2017-01-18 22:21:29.360815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-39355-s8x1si.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ed5ee815282ec298e6703bc60b852dd720170118-39355-nadm96.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ed5ee815282ec298e6703bc60b852dd720170118-39355-f1v01c.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-39355-s8x1si.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:21:29.393801"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:21:29.427695"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-m253lm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1mi74o5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-2wh082.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:21:29.491218"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:29.524367"], ["updated_at", "2017-01-18 22:21:29.524367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "companies"  (0.2ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39355-dzk172' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-1vzp9t8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39355-g42hgj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:21:29.556962"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:21:29.588254"], ["updated_at", "2017-01-18 22:21:29.588254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.5ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-12ypcxx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1c3lazm.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1bmmjy6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:07.161698"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:07.211918"], ["updated_at", "2017-01-18 22:22:07.211918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-39483-greck7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39483-3dhst8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-39483-1enacfl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:22:07.236681"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:07.269659"], ["updated_at", "2017-01-18 22:22:07.269659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-39483-r08bs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c071cdb3600b2f8f9e947e841e6ed7a520170118-39483-1nyvffn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c071cdb3600b2f8f9e947e841e6ed7a520170118-39483-1kx3btl.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-39483-r08bs.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:22:07.326911"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:22:07.356717"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-1jpcc71' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1i5cjhr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1nv0n2p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:22:07.384152"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:07.416578"], ["updated_at", "2017-01-18 22:22:07.416578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:22:07.424603"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-119yyko' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-19wtwry.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-629fkk.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:22:07.462068"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:22:07.489859"], ["updated_at", "2017-01-18 22:22:07.489859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-3h33u2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1q1s3ap.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1kbfl7d.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:22:07.528380"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:22:07.559668"], ["updated_at", "2017-01-18 22:22:07.559668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-t3rddv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-ze1265.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-6ybuge.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:07.598034"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:07.627981"], ["updated_at", "2017-01-18 22:22:07.627981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 16ms (Views: 13.2ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-15wvq6f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1eyqm9n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1d0tebj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:07.672317"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:07.702737"], ["updated_at", "2017-01-18 22:22:07.702737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:22:07.712871"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-1xxwkmw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-g90gi1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-ehczyx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:07.737934"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:07.773935"], ["updated_at", "2017-01-18 22:22:07.773935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:22:07.783148"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-pasula' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-917h54.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-2s1yb3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:07.807605"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:07.840418"], ["updated_at", "2017-01-18 22:22:07.840418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:22:07.858060"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-yeiibf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-szz7ut.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-nv794k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:07.883859"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:07.913285"], ["updated_at", "2017-01-18 22:22:07.913285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-ctno38' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1gtlhvc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-x5vinv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:07.953451"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:07.983225"], ["updated_at", "2017-01-18 22:22:07.983225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-11nr2g1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-kd8vv8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-hu8yoq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:08.009966"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:08.042443"], ["updated_at", "2017-01-18 22:22:08.042443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-39483-x2jq7v'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-ljrpd9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-ywf6mq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-t0cgxj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-qarck4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-4v7ni9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-zcgnhe.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-jmspyt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-10u4c95.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-vtqme8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:08.261908"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:08.297583"], ["updated_at", "2017-01-18 22:22:08.297583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-m9bxos' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1uscfw2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1214y9y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:22:08.322167"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:08.352022"], ["updated_at", "2017-01-18 22:22:08.352022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-7b0ezu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-6qfvb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-183xa6p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:22:08.389596"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:08.422481"], ["updated_at", "2017-01-18 22:22:08.422481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-39483-19czm4u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-1h6g5hm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-39483-a7av6q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:22:08.472625"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:22:08.504969"], ["updated_at", "2017-01-18 22:22:08.504969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-1umsdss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1qo268y.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-y16bpz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:40.079485"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.123937"], ["updated_at", "2017-01-18 22:28:40.123937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-1uid4xm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-mhmq43.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1rjytpc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:40.162831"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.193871"], ["updated_at", "2017-01-18 22:28:40.193871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 34ms (Views: 12.6ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-177aw5e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-y2n1la.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1r25ji1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:40.258613"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.288466"], ["updated_at", "2017-01-18 22:28:40.288466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:28:40.304263"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-1qxmbs3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-is9fbn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-ra2ave.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:40.329456"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.362719"], ["updated_at", "2017-01-18 22:28:40.362719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:28:40.372995"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-v4t10j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-cg15na.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1xnkar0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:40.398977"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.427660"], ["updated_at", "2017-01-18 22:28:40.427660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:28:40.436687"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-3adghk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1defrpo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1e7xks0.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:28:40.478527"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:28:40.507728"], ["updated_at", "2017-01-18 22:28:40.507728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 68ms (ActiveRecord: 0.8ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-1t4uqf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-m8pg7s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-2gnunv.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:28:40.558376"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:28:40.585958"], ["updated_at", "2017-01-18 22:28:40.585958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-4o96x4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1chic97.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-gskskb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:40.616464"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.650450"], ["updated_at", "2017-01-18 22:28:40.650450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-40181-vjysbs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-40181-1nnlavb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-40181-1jcz4c0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:28:40.681874"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.717814"], ["updated_at", "2017-01-18 22:28:40.717814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-40181-vdjtbv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bc29b34344bb144f15c9330438f7bab220170118-40181-k5qivl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bc29b34344bb144f15c9330438f7bab220170118-40181-1bi5n8a.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-40181-vdjtbv.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:28:40.751630"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:28:40.781080"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-r84lhc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1ske8x4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1u8uumu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:28:40.804810"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.837290"], ["updated_at", "2017-01-18 22:28:40.837290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:28:40.845375"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-7krtds' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-kufvt2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-13d8mhg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:40.868726"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.900316"], ["updated_at", "2017-01-18 22:28:40.900316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-1wze4ox' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-sph97o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1h5j6l9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:40.924170"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:40.955668"], ["updated_at", "2017-01-18 22:28:40.955668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-7r2hfh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1b2c0dn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-88aii6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:28:41.003941"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:41.038317"], ["updated_at", "2017-01-18 22:28:41.038317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-kb7yva' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1j1udlb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-eoa3ez.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:28:41.075297"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:41.106373"], ["updated_at", "2017-01-18 22:28:41.106373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-p3351q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-zk9x5s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1pwexdo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:41.142134"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:41.174034"], ["updated_at", "2017-01-18 22:28:41.174034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-1qb8hdr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-2a7yst.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-yb0pmo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:28:41.200733"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:28:41.231006"], ["updated_at", "2017-01-18 22:28:41.231006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-40181-1xyzrhc'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-1ynki45' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-hb6tpm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1p6yhri.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-40181-1eck1iz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-3r5jdn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40181-1tcv0bw.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-1oydz94' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-qgs684.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-kj3ytu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:11.289483"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:11.343048"], ["updated_at", "2017-01-18 22:52:11.343048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-1libiql' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-3iq2di.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-15g7vec.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:11.449259"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:11.482187"], ["updated_at", "2017-01-18 22:52:11.482187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-l1sle0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1jgos5d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-jwrmcp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:11.529880"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:11.561054"], ["updated_at", "2017-01-18 22:52:11.561054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-42041-scs61l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-42041-1w8bc6g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-42041-qv096.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:52:11.588592"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:11.622946"], ["updated_at", "2017-01-18 22:52:11.622946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-42041-w1imo1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/34042ac796539e513156d4354d31008e20170118-42041-oqw9eg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/34042ac796539e513156d4354d31008e20170118-42041-1ocw021.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-42041-w1imo1.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:52:11.679715"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:52:11.709903"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-1yl96rs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1uxzd4z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-ad9xiy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:52:11.740908"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:11.774795"], ["updated_at", "2017-01-18 22:52:11.774795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:52:11.782986"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-h17aii' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1r18916.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-nk5olv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:52:11.807311"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:11.839361"], ["updated_at", "2017-01-18 22:52:11.839361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-y01cr3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1teqp0e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-7pzltt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:52:11.873312"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:11.906403"], ["updated_at", "2017-01-18 22:52:11.906403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-19rfdyk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-9srrvn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1ul561c.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:11.970280"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:12.004088"], ["updated_at", "2017-01-18 22:52:12.004088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-42041-1x730ki'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-vrlmk5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-3hyjlt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-jg2h4o.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-7rzz6j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-18dtloo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-4pky8e.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-1t9rp5p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-dwp3ao.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-qh43n7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:12.163818"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:12.194800"], ["updated_at", "2017-01-18 22:52:12.194800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-vlmj9r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-odh82u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1ld0lvc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:12.280729"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:12.316476"], ["updated_at", "2017-01-18 22:52:12.316476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.1ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-1u414fb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-t7oph1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1opbrbj.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:52:12.405958"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:52:12.440039"], ["updated_at", "2017-01-18 22:52:12.440039"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-7qwgb2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-fxogh6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-zh1qm1.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:52:12.475431"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:52:12.507241"], ["updated_at", "2017-01-18 22:52:12.507241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-w6wgs8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1m8mkzt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-3fzwh.csv' SQL (1.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:12.542642"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:12.575134"], ["updated_at", "2017-01-18 22:52:12.575134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:52:12.585641"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-byu59s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1cijp2x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-50b3zd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:12.615826"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:12.647049"], ["updated_at", "2017-01-18 22:52:12.647049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:52:12.656753"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-1lzr57w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-310m8g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-fvbh57.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:12.699179"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:12.730445"], ["updated_at", "2017-01-18 22:52:12.730445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:52:12.740038"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-17oqi9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-6xlop6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-lzvpb1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:12.764000"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:12.795348"], ["updated_at", "2017-01-18 22:52:12.795348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42041-1xalor0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-zqce7k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42041-1x4v28v.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:12.829165"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:12.863413"], ["updated_at", "2017-01-18 22:52:12.863413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (3.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42126-196ccgh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42126-j625ie.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42126-12wbgnu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:52:35.567385"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:52:35.615228"], ["updated_at", "2017-01-18 22:52:35.615228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42167-1o1ejkk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42167-1gfa8w1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42167-1rma539.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:06.086475"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:06.132702"], ["updated_at", "2017-01-18 22:53:06.132702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42209-1nmni6u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42209-yvm6mt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42209-fujm5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:25.511114"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:25.559245"], ["updated_at", "2017-01-18 22:53:25.559245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-18ub432' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-4fwkpl.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-uqedzq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:30.137135"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:30.181264"], ["updated_at", "2017-01-18 22:53:30.181264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-1qj9iv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-pqvtf7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1acqicb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:30.206008"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:30.235965"], ["updated_at", "2017-01-18 22:53:30.235965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-r72pzg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-15xgj68.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-18xdldw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:30.290905"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:30.322879"], ["updated_at", "2017-01-18 22:53:30.322879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-kvr9z6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1rsq4z3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1pks26a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:30.353837"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:30.386231"], ["updated_at", "2017-01-18 22:53:30.386231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-ul0fku' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-jejjw9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-yrx5gk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:30.424634"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:30.456483"], ["updated_at", "2017-01-18 22:53:30.456483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:53:30.464306"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-1r7fuqe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-74rzv2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-4gkcip.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:30.494563"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:30.531428"], ["updated_at", "2017-01-18 22:53:30.531428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:53:30.540876"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 12ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-ln1k6e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-10xbp7f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-4m9iwx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:30.643089"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:30.678209"], ["updated_at", "2017-01-18 22:53:30.678209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:53:30.694206"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-cav4eb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-13s0jvn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1ddrb7b.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:53:30.725695"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:53:30.758780"], ["updated_at", "2017-01-18 22:53:30.758780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 64ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-5e3r8t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-5cuuut.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1wgayh5.csv' SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:53:30.806376"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:53:30.838472"], ["updated_at", "2017-01-18 22:53:30.838472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-dlg7km' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1jp8a4s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-lt03nm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:53:30.891102"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:30.923178"], ["updated_at", "2017-01-18 22:53:30.923178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-1dtevrk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1wu7sl0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-64p2ez.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:53:30.959712"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:30.992402"], ["updated_at", "2017-01-18 22:53:30.992402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-1jumi31' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1f7k35m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1bvle5q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:53:31.058143"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:31.090594"], ["updated_at", "2017-01-18 22:53:31.090594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:53:31.101396"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-42229-1pge4ru' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-42229-jm0lyn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-42229-1rr8jc8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:53:31.123516"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:31.159783"], ["updated_at", "2017-01-18 22:53:31.159783"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-42229-1e22hz4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d91b7588394055dbbc9fff71bb96f15020170118-42229-y4vjwg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d91b7588394055dbbc9fff71bb96f15020170118-42229-vzfxyi.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-42229-1e22hz4.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:53:31.207364"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:53:31.243543"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-42229-1mamj25'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-y6p0er' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-2cm2k8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1xaytg2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-1ff780x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-scfq4m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-z1vjlv.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-u4eafg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1tunewl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-4cy91p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:31.423611"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:31.457542"], ["updated_at", "2017-01-18 22:53:31.457542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-1h1pixm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-16jwb0q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1cj4vnz.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:31.486718"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:31.522484"], ["updated_at", "2017-01-18 22:53:31.522484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-1x8a34b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-199ev0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-sroykf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (1.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:31.627761"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:31.661601"], ["updated_at", "2017-01-18 22:53:31.661601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42229-12ytr7n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-14apvj3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42229-1a5ke8m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:31.693700"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:31.727851"], ["updated_at", "2017-01-18 22:53:31.727851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42309-wtchnx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-1ptm2nx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-op6pm5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:41.529603"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:41.579762"], ["updated_at", "2017-01-18 22:53:41.579762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42309-b3p3p6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-s7hjh6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-1u7mkt5.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:41.606555"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:41.639602"], ["updated_at", "2017-01-18 22:53:41.639602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 20ms (Views: 13.1ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42309-1nihef2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-7iqy2e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-eeij9w.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:41.698081"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:41.732923"], ["updated_at", "2017-01-18 22:53:41.732923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:53:41.741984"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 20ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42309-1vxkjos' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-8rko83.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-1wkit3a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:41.828713"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:41.861024"], ["updated_at", "2017-01-18 22:53:41.861024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:53:41.869236"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42309-cwj8pd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-z33r1a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-1m5feao.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:41.898185"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:41.928053"], ["updated_at", "2017-01-18 22:53:41.928053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:53:41.943138"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42309-q4somz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-ejqmd7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-1geh3fz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:41.970225"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:42.001059"], ["updated_at", "2017-01-18 22:53:42.001059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42309-xahrmt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-uu4dm3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-p8jidw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:53:42.030599"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:53:42.061720"], ["updated_at", "2017-01-18 22:53:42.061720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42309-1ercri6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-tmkmmi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-15y9l58.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:53:42.116312"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:53:42.143489"], ["updated_at", "2017-01-18 22:53:42.143489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42309-16qdgaq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-2pw9ph.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42309-15c6i2g.csv' SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:53:42.178014"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:53:42.205789"], ["updated_at", "2017-01-18 22:53:42.205789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42384-1ajwo9j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-1823z9r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-122jpw3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:21.538026"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:21.586152"], ["updated_at", "2017-01-18 22:54:21.586152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42384-7hivqo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-1xwvujx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-fzzjlz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:21.613445"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:21.645518"], ["updated_at", "2017-01-18 22:54:21.645518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 12.2ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42384-czpqhz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-14y0wte.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-1uyea58.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:54:21.761590"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:54:21.791726"], ["updated_at", "2017-01-18 22:54:21.791726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 67ms (ActiveRecord: 0.7ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42384-c134k0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-1kefe3t.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-xpqe3j.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:54:21.842216"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:54:21.869929"], ["updated_at", "2017-01-18 22:54:21.869929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42384-1phe4jz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-9q92r6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-1y5xgba.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:21.899464"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:21.931317"], ["updated_at", "2017-01-18 22:54:21.931317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42384-uzl3x6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-bqntau.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-qguinz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:21.965248"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:21.996154"], ["updated_at", "2017-01-18 22:54:21.996154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:54:22.008819"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42384-6x14pv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-yydm8y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-1hpi92k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:22.035914"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:22.066707"], ["updated_at", "2017-01-18 22:54:22.066707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:54:22.074724"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42384-z0exg9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-ioh978.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-1b0jyoh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:22.110907"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:22.143179"], ["updated_at", "2017-01-18 22:54:22.143179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:54:22.152418"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42384-1yd212p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-9dnlb7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42384-1til4qi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:22.178312"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:22.212613"], ["updated_at", "2017-01-18 22:54:22.212613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (3.1ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42448-aen09t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-35aj7v.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-hcpsvf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:58.379787"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:58.425078"], ["updated_at", "2017-01-18 22:54:58.425078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42448-1n1kpka' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-qp8dfs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-2bqekf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:58.450681"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:58.481694"], ["updated_at", "2017-01-18 22:54:58.481694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42448-mj9wif' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-8zx46j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-5xet2c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:58.537301"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:58.571740"], ["updated_at", "2017-01-18 22:54:58.571740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:54:58.581310"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 21ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42448-19kdd1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-1oej4vl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-1em9ltq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:58.624662"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:58.655516"], ["updated_at", "2017-01-18 22:54:58.655516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:54:58.669888"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42448-18r2tat' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-ybetn6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-69jpn7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:58.695875"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:58.727270"], ["updated_at", "2017-01-18 22:54:58.727270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:54:58.735263"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42448-1ps53rd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-d3wiur.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-1sldx7i.csv' SQL (1.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:58.796981"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:58.829635"], ["updated_at", "2017-01-18 22:54:58.829635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42448-12drcne' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-11hygbw.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-18oalkt.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:54:58.867624"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:54:58.900025"], ["updated_at", "2017-01-18 22:54:58.900025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42448-1h8uxhw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-wvgltq.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-hmg2z5.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:54:58.936631"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:54:58.969186"], ["updated_at", "2017-01-18 22:54:58.969186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42448-dkjufz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-1by38ms.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42448-fozd1j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:54:59.019289"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:54:59.052554"], ["updated_at", "2017-01-18 22:54:59.052554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42521-lt5knf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-xb2pwi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-83f7yz.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:55:20.751355"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:55:20.803017"], ["updated_at", "2017-01-18 22:55:20.803017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42521-jfp60b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-zqqizb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-1yzfnd2.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:55:20.828986"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:55:20.860201"], ["updated_at", "2017-01-18 22:55:20.860201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 26ms (Views: 17.4ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42521-1v8ne9t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-11ttsyl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-11z0g2j.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:55:20.987164"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:55:21.015670"], ["updated_at", "2017-01-18 22:55:21.015670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.6ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42521-t6k8gg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-147sela.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-jep23s.csv' SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:55:21.067205"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:55:21.093314"], ["updated_at", "2017-01-18 22:55:21.093314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42521-9yfyf6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-1not9bo.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-13sjge3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:55:21.131662"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:55:21.170927"], ["updated_at", "2017-01-18 22:55:21.170927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:55:21.188785"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42521-1mas1p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-7nl4xy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-1nyx9gk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:55:21.215588"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:55:21.246463"], ["updated_at", "2017-01-18 22:55:21.246463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:55:21.254754"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42521-r3w0p9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-1tzrit1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-cmmr06.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:55:21.282367"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:55:21.315628"], ["updated_at", "2017-01-18 22:55:21.315628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:55:21.324106"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42521-evx0lr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-q5n56h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-qvx7ot.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:55:21.352459"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:55:21.383420"], ["updated_at", "2017-01-18 22:55:21.383420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42521-p1gg9t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-1vty9oj.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42521-9f2wu4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:55:21.420361"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:55:21.454543"], ["updated_at", "2017-01-18 22:55:21.454543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42639-j6jzu9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-1gv0bvk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-kasons.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:28.097620"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:28.146967"], ["updated_at", "2017-01-18 22:56:28.146967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42639-b6k4dh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-3guif0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-1hqw4bw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:28.172791"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:28.204259"], ["updated_at", "2017-01-18 22:56:28.204259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 40ms (Views: 16.5ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42639-10m7rto' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-w51rpi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-jv5emd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:28.280039"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:28.313676"], ["updated_at", "2017-01-18 22:56:28.313676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:56:28.332424"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42639-bt2h8o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-15ssjdh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-zuv9gn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:28.355671"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:28.387067"], ["updated_at", "2017-01-18 22:56:28.387067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:56:28.396596"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42639-16xhkat' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-10qc8f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-9ka2r1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:28.425237"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:28.459031"], ["updated_at", "2017-01-18 22:56:28.459031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:56:28.468456"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42639-qg1xhv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-18tgu36.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-1ln75q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:28.499156"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:28.531877"], ["updated_at", "2017-01-18 22:56:28.531877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42639-bvsdft' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-1ryiaqr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-8sm0z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:28.569408"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:28.597726"], ["updated_at", "2017-01-18 22:56:28.597726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42639-1q9rb2y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-1tr7j14.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-18zm9py.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:56:28.682739"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:56:28.711705"], ["updated_at", "2017-01-18 22:56:28.711705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42639-f1838k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-1l9aqrm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42639-1559j4d.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:56:28.749911"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:56:28.778924"], ["updated_at", "2017-01-18 22:56:28.778924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42697-dtfr8q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-w5hwob.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-1x8qj73.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:44.454923"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:44.496905"], ["updated_at", "2017-01-18 22:56:44.496905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42697-m5g9zs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-zxe13d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-131zpbc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:44.523028"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:44.553839"], ["updated_at", "2017-01-18 22:56:44.553839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 16ms (Views: 10.6ms | ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42697-slk9v3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-110nrqw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-wb340x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:44.607755"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:44.642273"], ["updated_at", "2017-01-18 22:56:44.642273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42697-15r2jsc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-115zkfc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-1833kbt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:44.683652"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:44.714077"], ["updated_at", "2017-01-18 22:56:44.714077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:56:44.722075"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 12ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42697-18ztioi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-x2fcwu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-c0skw0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:44.754223"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:44.785305"], ["updated_at", "2017-01-18 22:56:44.785305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:56:44.793444"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42697-xpr97p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-1az3aco.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-wsjx1a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:44.823637"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:44.855209"], ["updated_at", "2017-01-18 22:56:44.855209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:56:44.869054"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42697-1k4t6rv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-l5f4ua.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-1or4ib6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:56:44.896158"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:56:44.926848"], ["updated_at", "2017-01-18 22:56:44.926848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42697-p0hfhu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-hvjp1n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-7lwepb.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:56:45.009553"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:56:45.038764"], ["updated_at", "2017-01-18 22:56:45.038764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42697-juw6aw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-9vngn5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42697-1xa067y.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:56:45.075371"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:56:45.105913"], ["updated_at", "2017-01-18 22:56:45.105913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42804-1lvzzhi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-u2bvmf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-hmv7t9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:57:42.846641"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:57:42.895592"], ["updated_at", "2017-01-18 22:57:42.895592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42804-16ue7io' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-10km96j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-13necdy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:57:42.923800"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:57:42.956225"], ["updated_at", "2017-01-18 22:57:42.956225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 26ms (Views: 16.8ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42804-iq50by' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-1su6j3c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-s0eei9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:57:43.023174"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:57:43.054081"], ["updated_at", "2017-01-18 22:57:43.054081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:57:43.062606"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 21ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42804-g10ljm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-3zr15.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-42r2po.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:57:43.107759"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:57:43.138104"], ["updated_at", "2017-01-18 22:57:43.138104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:57:43.146142"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42804-1t8h4qq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-snk31m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-drkdda.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:57:43.174962"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:57:43.206608"], ["updated_at", "2017-01-18 22:57:43.206608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:57:43.226676"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42804-1drdx0f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-by8ilg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-7v9by9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:57:43.253546"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:57:43.285393"], ["updated_at", "2017-01-18 22:57:43.285393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42804-1sofo8n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-g6ccnd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-qc4t54.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:57:43.328353"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:57:43.361376"], ["updated_at", "2017-01-18 22:57:43.361376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42804-16irz7e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-1k6cf68.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-1vofonn.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:57:43.394803"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:57:43.422951"], ["updated_at", "2017-01-18 22:57:43.422951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42804-1kl9p7j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-1wo2128.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42804-1ql7din.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:57:43.506423"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:57:43.539576"], ["updated_at", "2017-01-18 22:57:43.539576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42879-1w2tu6h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-1ave3oq.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-jwjfig.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:58:24.834364"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:58:24.878559"], ["updated_at", "2017-01-18 22:58:24.878559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42879-vyfxly' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-nupt6r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-10a9i7f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:58:24.905466"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:58:24.935430"], ["updated_at", "2017-01-18 22:58:24.935430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 30ms (Views: 11.9ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42879-12otznr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-19resth.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-18xbwz1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:58:24.997138"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:58:25.030594"], ["updated_at", "2017-01-18 22:58:25.030594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:58:25.045566"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42879-12l67ky' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-1r6afkb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-13o4383.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:58:25.070391"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:58:25.099244"], ["updated_at", "2017-01-18 22:58:25.099244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:58:25.107495"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42879-9tpq2p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-1gxp8cx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-3sfq8b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:58:25.136713"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:58:25.165460"], ["updated_at", "2017-01-18 22:58:25.165460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:58:25.173626"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42879-wgliwt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-jvh030.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-xvo5mn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:58:25.200994"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:58:25.230521"], ["updated_at", "2017-01-18 22:58:25.230521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42879-rsrjby' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-1gzqp62.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-1k22t9r.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:58:25.265746"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:58:25.299239"], ["updated_at", "2017-01-18 22:58:25.299239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42879-3itqjh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-t0ltnh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-1un1f72.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:58:25.340175"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:58:25.369089"], ["updated_at", "2017-01-18 22:58:25.369089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42879-1crp6hu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-1cu5wqw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42879-1ehwwqg.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:58:25.404678"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:58:25.432925"], ["updated_at", "2017-01-18 22:58:25.432925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://test.com/sessions/new Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42954-1mm3q3h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-1xomez0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-1b9amyw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:11.289282"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:11.338210"], ["updated_at", "2017-01-18 22:59:11.338210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42954-vijn2d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-fmbwnc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-1yai1l2.csv' SQL (0.9ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:11.366911"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:11.400934"], ["updated_at", "2017-01-18 22:59:11.400934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:59:11.421281"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 20ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42954-rpqzb2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-25hqeo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-1h1yyp6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:11.454382"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:11.485548"], ["updated_at", "2017-01-18 22:59:11.485548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:59:11.493734"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42954-1msko5y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-4ls9fe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-1kugc2h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:11.525814"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:11.556868"], ["updated_at", "2017-01-18 22:59:11.556868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:59:11.565475"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42954-16qmn0s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-uvdx6y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-5qocqg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:11.592590"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:11.622909"], ["updated_at", "2017-01-18 22:59:11.622909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 11.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42954-93yhvd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-gha5ye.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-dphorl.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:59:11.676130"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:59:11.702856"], ["updated_at", "2017-01-18 22:59:11.702856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 64ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42954-1utfibi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-hb0o7i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-icg30r.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:59:11.749260"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:59:11.781264"], ["updated_at", "2017-01-18 22:59:11.781264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42954-1vzv2dg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-1rsdxig.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-171w8l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:11.823439"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:11.853796"], ["updated_at", "2017-01-18 22:59:11.853796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42954-g4krna' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-ic7bmr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42954-ykvi6x.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:11.884244"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:11.919518"], ["updated_at", "2017-01-18 22:59:11.919518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-w9ti4q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1cv8exu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-qomhmh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:19.194794"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:19.245314"], ["updated_at", "2017-01-18 22:59:19.245314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-42996-17s6c54' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-42996-1t3l1x6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-42996-104id10.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:59:19.269160"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:19.301495"], ["updated_at", "2017-01-18 22:59:19.301495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-42996-9neptt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9d84e61a5a5ad6ef621d7f77d7c34aa720170118-42996-c5wv2l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9d84e61a5a5ad6ef621d7f77d7c34aa720170118-42996-dtnsiz.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-42996-9neptt.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:59:19.355004"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:59:19.385143"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-e9v25h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-awp1ir.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-uawtqw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:59:19.414339"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:19.448035"], ["updated_at", "2017-01-18 22:59:19.448035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 22:59:19.456268"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-eo6n2x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1gs2trf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-b7awq6.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:19.479341"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:19.518173"], ["updated_at", "2017-01-18 22:59:19.518173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-1djmnor' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-ce3b22.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1ywfl2i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:19.548664"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:19.579851"], ["updated_at", "2017-01-18 22:59:19.579851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-11ouq11' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-ep4e0h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-uuylxt.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:59:19.638616"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:59:19.669109"], ["updated_at", "2017-01-18 22:59:19.669109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-1hadnne' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-kwzm4m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1txcfu4.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:59:19.702175"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 22:59:19.729618"], ["updated_at", "2017-01-18 22:59:19.729618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-cezbu8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-112zbre.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-12wxxzb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:19.772762"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:19.804652"], ["updated_at", "2017-01-18 22:59:19.804652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-1e84d7w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-reb67a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1791tcx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:19.844406"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:19.877085"], ["updated_at", "2017-01-18 22:59:19.877085"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:59:19.886765"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-sfheee' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1wf04mb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-m8q9fh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:19.915855"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:19.947104"], ["updated_at", "2017-01-18 22:59:19.947104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:59:19.955624"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-tki7ib' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-qypcw9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1cqc2m7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:19.982596"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:20.013807"], ["updated_at", "2017-01-18 22:59:20.013807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 22:59:20.023785"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-lbjof7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-14if38x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-tbcp9e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:20.048927"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:20.079464"], ["updated_at", "2017-01-18 22:59:20.079464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-a7dw6v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1qfhhwl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-ol5lsc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:20.112640"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:20.145524"], ["updated_at", "2017-01-18 22:59:20.145524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-1tnr0r6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-e0o4s1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1onw0za.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:20.178658"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:20.211050"], ["updated_at", "2017-01-18 22:59:20.211050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-42996-1bhg1op'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-1n9xk07' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1qhycfc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-vv63bc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-103x18c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-14madw6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-gt5k4l.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-1xb5f3z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1ipwu62.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-omyjpj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 22:59:20.366554"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:20.397597"], ["updated_at", "2017-01-18 22:59:20.397597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-j8o5un' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-b5dafv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-1vsobkz.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:59:20.513111"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:20.545325"], ["updated_at", "2017-01-18 22:59:20.545325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-42996-hugjt7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-18h5538.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-42996-174r7kl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 22:59:20.590089"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 22:59:20.625979"], ["updated_at", "2017-01-18 22:59:20.625979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.2ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-1w0jshy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1qhj1mk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-mvk54n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:29.963670"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.014995"], ["updated_at", "2017-01-18 23:15:30.014995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-43889-127xoo0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-43889-75xddy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-43889-13ugxbk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 23:15:30.093131"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.124529"], ["updated_at", "2017-01-18 23:15:30.124529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-43889-584l0q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/03e8d5fd11ec62a6e4d08c001897f93920170118-43889-1r6di2a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/03e8d5fd11ec62a6e4d08c001897f93920170118-43889-16gp7wl.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-43889-584l0q.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 23:15:30.191677"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 23:15:30.222356"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-cf59s4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1g0z9xt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-s3lb5l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 23:15:30.250669"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.283903"], ["updated_at", "2017-01-18 23:15:30.283903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 23:15:30.293123"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-lioy0b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-fhxm4f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-6g6s2x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:30.352881"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.381387"], ["updated_at", "2017-01-18 23:15:30.381387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-7k293p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-wqczex.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-bd6d9l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:30.404217"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.434512"], ["updated_at", "2017-01-18 23:15:30.434512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-13u09cn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-ezoz8p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1mda7fz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:30.483287"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.515892"], ["updated_at", "2017-01-18 23:15:30.515892"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-43889-t3yb6d'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-1aeyvfw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1rescu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-19ym11p.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-yqu32y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-kcbqb6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-rkx71b.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-rwyep4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1vng481.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1dbppat.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:30.671748"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.704088"], ["updated_at", "2017-01-18 23:15:30.704088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-19elyv5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-qnwk0h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1df4oc1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:30.732843"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.765490"], ["updated_at", "2017-01-18 23:15:30.765490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 23:15:30.778989"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-hu4s16' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1j8ra7h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1bf1p41.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:30.807229"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.836248"], ["updated_at", "2017-01-18 23:15:30.836248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 23:15:30.845213"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-flxbo1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-15gxfgp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-xdbtwh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:30.871973"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.901605"], ["updated_at", "2017-01-18 23:15:30.901605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 23:15:30.911353"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-gabb5s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1055s1c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1q2g6qs.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:30.938262"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:30.969448"], ["updated_at", "2017-01-18 23:15:30.969448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-u2p2wf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1wco4i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-jslgin.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:31.013675"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:31.042802"], ["updated_at", "2017-01-18 23:15:31.042802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-1h5qjqh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1ph2x2h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-gu4skd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:15:31.076281"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:31.105939"], ["updated_at", "2017-01-18 23:15:31.105939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.3ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-bsy94q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-19zxo8m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-pocvux.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 23:15:31.152016"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 23:15:31.181208"], ["updated_at", "2017-01-18 23:15:31.181208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-luhhoe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-l04t8i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1oy5pzf.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 23:15:31.217553"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 23:15:31.262024"], ["updated_at", "2017-01-18 23:15:31.262024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 71ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-137ws95' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1cg199w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1uyezs0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 23:15:31.293692"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:31.329671"], ["updated_at", "2017-01-18 23:15:31.329671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.3ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.3ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-43889-emmwty' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-uu6keb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-43889-1x40403.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 23:15:31.367926"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 23:15:31.405579"], ["updated_at", "2017-01-18 23:15:31.405579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.3ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-1312txw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-x63yqh.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-ystrw7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:41.427264"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:41.471420"], ["updated_at", "2017-01-18 23:17:41.471420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-9x8yk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-41qdxe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-6wsv2h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 23:17:41.516589"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:41.547732"], ["updated_at", "2017-01-18 23:17:41.547732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-xwen75' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-16nypek.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1nixr05.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 23:17:41.595229"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:41.626859"], ["updated_at", "2017-01-18 23:17:41.626859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-crtcec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-ivm3do.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-330h51.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:41.667426"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:41.698360"], ["updated_at", "2017-01-18 23:17:41.698360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170118-44738-blny3x'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-t2pcgt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-xxrag7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-17vomcl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-r1h2tw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-61nvcp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-nihump.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-1xujy2w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1v0k4zp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-69k3nb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:41.870099"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:41.899914"], ["updated_at", "2017-01-18 23:17:41.899914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-x79z2d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1k9y833.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1kr5kf4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:41.927631"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:41.957633"], ["updated_at", "2017-01-18 23:17:41.957633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 12ms (Views: 11.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-nuw90c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-xo93n1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1a8n1ub.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:41.997653"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:42.029829"], ["updated_at", "2017-01-18 23:17:42.029829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-60ovrp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-q21q9r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-svwanu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:42.058940"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:42.088902"], ["updated_at", "2017-01-18 23:17:42.088902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 23:17:42.097371"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-vkqfss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1sq1rk0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-3yiu3d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:42.126985"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:42.159110"], ["updated_at", "2017-01-18 23:17:42.159110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 23:17:42.167691"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-c4xeh2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1hlc61m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-3k3rbp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:42.196199"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:42.227872"], ["updated_at", "2017-01-18 23:17:42.227872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-18 23:17:42.241360"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-1no3c1w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1sgrafj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-9gd2u5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:42.267855"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:42.299138"], ["updated_at", "2017-01-18 23:17:42.299138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-7tkpka' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-68fm5s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1wc39ph.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 23:17:42.333800"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 23:17:42.364603"], ["updated_at", "2017-01-18 23:17:42.364603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-yt3897' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-45560f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-t5iiy6.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 23:17:42.400638"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-18 23:17:42.429346"], ["updated_at", "2017-01-18 23:17:42.429346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-1o5rzs5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-16uc6uy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1dkoobg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:42.498093"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:42.529158"], ["updated_at", "2017-01-18 23:17:42.529158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-6ffq9e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-1j0r28v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-40tx7w.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-18 23:17:42.555432"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:42.590128"], ["updated_at", "2017-01-18 23:17:42.590128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170118-44738-1p99ggk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-14ep806.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-44738-iynta9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 23:17:42.638051"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:42.674257"], ["updated_at", "2017-01-18 23:17:42.674257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["error", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-18 23:17:42.699575"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170118-44738-gxyhs7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-44738-1o3zah6.csv'  (0.6ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-44738-8wtjr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-18 23:17:42.724716"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-18 23:17:42.761404"], ["updated_at", "2017-01-18 23:17:42.761404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-44738-ew2i2a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bafd98941b8567435e272f84bbc4206e20170118-44738-x0bl6j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bafd98941b8567435e272f84bbc4206e20170118-44738-ullvzc.csv' SQL (0.2ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-44738-ew2i2a.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 23:17:42.801806"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 23:17:42.835476"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.4ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "status" varchar DEFAULT 'pending', "country" varchar, "active" boolean) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (0.9ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar, "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.8ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "status" varchar DEFAULT 'pending', "country" varchar, "active" boolean)   (1.0ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20170112125734')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145652')  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145657') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.0ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "status" varchar DEFAULT 'pending', "country" varchar, "active" boolean)   (1.1ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20170112125734')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145657') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (1.1ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.9ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-oftuth' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1oy9fc0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1gs0eb5.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:30.097528"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:30.145142"], ["updated_at", "2017-01-19 02:46:30.145142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-1u77o3i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1ganwya.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1bpkdw2.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:30.330175"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:30.360087"], ["updated_at", "2017-01-19 02:46:30.360087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-55788-9dkbt6'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-j6mofo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-n6qyyx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-14v9ap.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-1nc5juw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1wnayru.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1el0inu.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-necgng' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1i8srda.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1xqqfbm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:30.538463"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:30.568930"], ["updated_at", "2017-01-19 02:46:30.568930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-45gnt3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-wgg9vg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-ktuqew.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:46:30.596900"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:30.628824"], ["updated_at", "2017-01-19 02:46:30.628824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-55788-1o8v0k0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-55788-uhgrgn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-55788-7ldxje.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:46:30.662084"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:30.698168"], ["updated_at", "2017-01-19 02:46:30.698168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-2jz24q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1h718tl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-dx0se4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:46:30.726227"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:30.759596"], ["updated_at", "2017-01-19 02:46:30.759596"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-1s9z5he' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-10zdikp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-5vr2am.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:46:30.816190"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:30.851094"], ["updated_at", "2017-01-19 02:46:30.851094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-1it3ydt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1m3xpsv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1c66xur.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:30.897195"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:30.942701"], ["updated_at", "2017-01-19 02:46:30.942701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-1jaokzi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-jmks2g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-xfikbm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:30.968697"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:30.999651"], ["updated_at", "2017-01-19 02:46:30.999651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-19 02:46:31.004429"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-oykwdg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-svo11f.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-3sgsgc.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:46:31.134444"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:46:31.166009"], ["updated_at", "2017-01-19 02:46:31.166009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-d4vvaa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-rervf6.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-s1eso5.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:46:31.208270"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:46:31.236500"], ["updated_at", "2017-01-19 02:46:31.236500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-gj9i7y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1e17flv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-16kr8pn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:31.268316"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:31.301462"], ["updated_at", "2017-01-19 02:46:31.301462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-1kbnu02' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-ogi7fy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-osmw5v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:31.345845"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:31.380631"], ["updated_at", "2017-01-19 02:46:31.380631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-prvnr1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1gr2bcu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-k0z2sa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:31.415391"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:31.452013"], ["updated_at", "2017-01-19 02:46:31.452013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:46:31.463813"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-wat3t5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-7po7ce.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-p2zao4.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:31.492759"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:31.543953"], ["updated_at", "2017-01-19 02:46:31.543953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:46:31.560145"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-mhfopu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1fn0e2j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-wfpvoe.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:31.595712"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:31.628580"], ["updated_at", "2017-01-19 02:46:31.628580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:46:31.639568"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55788-12rm2kh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-1h5tv0e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55788-j3j3jj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:31.664350"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:31.696543"], ["updated_at", "2017-01-19 02:46:31.696543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-16qheo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1mfoaxl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1a1kb22.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:51.100221"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:51.157373"], ["updated_at", "2017-01-19 02:46:51.157373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-1hqyeus' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1yjgjev.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-xx27le.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:46:51.195040"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:51.225774"], ["updated_at", "2017-01-19 02:46:51.225774"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-b5ugga' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1ffhcba.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-17u8l80.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:46:51.335819"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:51.370174"], ["updated_at", "2017-01-19 02:46:51.370174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-1d6s91i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-hh0wvd.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1gq8euj.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:46:51.415054"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:46:51.458891"], ["updated_at", "2017-01-19 02:46:51.458891"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 83ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-10lef52' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-pj11hz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-z1wl1o.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:46:51.518387"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:46:51.555714"], ["updated_at", "2017-01-19 02:46:51.555714"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 70ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-1rz4ah2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-6xk1p6.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-ei0fb0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:51.598652"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:51.629842"], ["updated_at", "2017-01-19 02:46:51.629842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-18a46wk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1f44x6n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1cvpx0f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:51.671146"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:51.703913"], ["updated_at", "2017-01-19 02:46:51.703913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-1jr7jd4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1r5icu3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1vd40w1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:51.737023"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:51.766724"], ["updated_at", "2017-01-19 02:46:51.766724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:46:51.783438"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-u4t8y5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-19onwxi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-tbb96t.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:51.808502"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:51.841401"], ["updated_at", "2017-01-19 02:46:51.841401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:46:51.851103"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-cdex1p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1yw3f24.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-oohkjk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:51.905233"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:51.937263"], ["updated_at", "2017-01-19 02:46:51.937263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:46:51.945269"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-fbc0nr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-eyu682.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-lzst9l.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:51.973711"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:52.011345"], ["updated_at", "2017-01-19 02:46:52.011345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-f2kkxi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-g1jdxs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-mtg6zh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:52.056694"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:52.090901"], ["updated_at", "2017-01-19 02:46:52.090901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-55886-1x2wvir'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-1gyfgyv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1di19gw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-17jcndm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-hc3bu6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-b7ezfy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-308zqt.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-kodsxq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-fpzrg5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-11sok04.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:52.245478"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:52.282084"], ["updated_at", "2017-01-19 02:46:52.282084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-1vw5s3o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1uy8t6g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1tc5pex.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:52.363839"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:52.399383"], ["updated_at", "2017-01-19 02:46:52.399383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-19 02:46:52.406857"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-1ow8eci' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-wcuz4m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-qa1qn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:46:52.429614"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:52.478965"], ["updated_at", "2017-01-19 02:46:52.478965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-55886-1sdol57' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-55886-ov17o1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-55886-1wknts0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:46:52.602718"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:52.637826"], ["updated_at", "2017-01-19 02:46:52.637826"]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-55886-1nslaez' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-1asvseu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55886-p3uim7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:46:52.675810"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:46:52.710231"], ["updated_at", "2017-01-19 02:46:52.710231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-46mww9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-4tkngw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1mfjqzw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:40.877885"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:40.922563"], ["updated_at", "2017-01-19 02:47:40.922563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-jpn5w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1fs1668.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-odra9a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:47:41.027019"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.067466"], ["updated_at", "2017-01-19 02:47:41.067466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-1borut7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-193po6p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-8rqlya.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:47:41.118524"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.153771"], ["updated_at", "2017-01-19 02:47:41.153771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-56031-9d87s0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-56031-lvy08t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-56031-1tml5i8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:47:41.189393"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.221393"], ["updated_at", "2017-01-19 02:47:41.221393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-56031-votbjp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/fc8c768b008b07ccf005ec715cc3263320170119-56031-1ogbh73.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/fc8c768b008b07ccf005ec715cc3263320170119-56031-1o081xi.csv' 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", "failures20170119-56031-votbjp.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-19 02:47:41.261268"], ["updated_at", "2017-01-19 02:47:41.291429"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-9fgqib' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1h6d246.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1peaf4b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:47:41.317449"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.355096"], ["updated_at", "2017-01-19 02:47:41.355096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 02:47:41.364920"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-6h5k14' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-a3n4ra.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-cxzm7o.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:41.391883"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.423373"], ["updated_at", "2017-01-19 02:47:41.423373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 12.7ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-1p60yo8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-bbuz3z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-ogeub1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:41.472809"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.504325"], ["updated_at", "2017-01-19 02:47:41.504325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:47:41.513124"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-1yuam8p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1a5wct8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1g9c4jq.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:41.542255"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.572816"], ["updated_at", "2017-01-19 02:47:41.572816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:47:41.581176"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-179eilh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-8d88eq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1yh21d6.csv' SQL (2.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:41.610075"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.643850"], ["updated_at", "2017-01-19 02:47:41.643850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:47:41.653247"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-mr4opy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-bguufu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-11zv6z0.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:41.678429"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.712355"], ["updated_at", "2017-01-19 02:47:41.712355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-b45pvr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-sbibro.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-j0ps9z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:41.743500"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:41.773870"], ["updated_at", "2017-01-19 02:47:41.773870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-1v49tcd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1l9er5g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1p00qps.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:47:41.819556"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:47:41.848679"], ["updated_at", "2017-01-19 02:47:41.848679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 70ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-10x1cbb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-fkm4e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-b7faly.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:47:41.899563"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:47:41.928392"], ["updated_at", "2017-01-19 02:47:41.928392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-1oy8slw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-exa5l2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-y4l58s.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:41.997928"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:42.032274"], ["updated_at", "2017-01-19 02:47:42.032274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-19 02:47:42.038214"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-5s0t15' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-hoedew.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-14cug9i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:42.058161"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:42.090595"], ["updated_at", "2017-01-19 02:47:42.090595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-56031-1d4lh6q'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-1nlwsny' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-bnocsp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-6vyzru.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-1nwv6gt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-v239js.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1wq9vy2.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-rb6wu4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-9my12l.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1674nbg.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:42.267587"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:42.303795"], ["updated_at", "2017-01-19 02:47:42.303795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56031-1pekfgi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-cn372m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56031-1f1z2v2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:47:42.330688"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:47:42.361221"], ["updated_at", "2017-01-19 02:47:42.361221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-69g79m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1ps1qqd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1ylz9o2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:03.644352"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:03.688044"], ["updated_at", "2017-01-19 02:48:03.688044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-1o5gbd0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-c487wk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1fyj4i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:03.716446"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:03.747916"], ["updated_at", "2017-01-19 02:48:03.747916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-qw94c4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-qgwnzs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1rdv2ef.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:03.778310"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:03.816294"], ["updated_at", "2017-01-19 02:48:03.816294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-56135-1f2yr21'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-gl2kof' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1fkgzm8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1tk0ija.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-1pw2a6j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-70y1a1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-bzhhdb.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-56135-173l9kh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-56135-tcvkez.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-56135-1w12t55.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:48:03.982065"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.057899"], ["updated_at", "2017-01-19 02:48:04.057899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-56135-j5mcgr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b6471535eaceca7fca645bfaee10f73720170119-56135-1q468m4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b6471535eaceca7fca645bfaee10f73720170119-56135-6mn5d.csv' 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", "failures20170119-56135-j5mcgr.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-19 02:48:04.121200"], ["updated_at", "2017-01-19 02:48:04.149090"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-uvt5j6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-xc8oow.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-15bh3b4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:48:04.175064"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.204772"], ["updated_at", "2017-01-19 02:48:04.204772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 02:48:04.214387"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-e1kn8g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1mlrsl4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-il6c3t.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:04.249874"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.279694"], ["updated_at", "2017-01-19 02:48:04.279694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-19 02:48:04.292521"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-1t9am2b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-ljbk0f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1ts60ch.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:04.312408"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.344030"], ["updated_at", "2017-01-19 02:48:04.344030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-14y1jse' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-22bgn7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1uk1m6w.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:48:04.369194"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.401594"], ["updated_at", "2017-01-19 02:48:04.401594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-18e1c6m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-eitacs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1r5qlu4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:48:04.433378"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.467947"], ["updated_at", "2017-01-19 02:48:04.467947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-1j644uv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1k09ku.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1bynqxt.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:48:04.627861"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:48:04.655514"], ["updated_at", "2017-01-19 02:48:04.655514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-1jveipm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-cxg4wn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-2nchjn.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:48:04.691551"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:48:04.719453"], ["updated_at", "2017-01-19 02:48:04.719453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-1pmb33i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-6l6bx8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-17uvdoa.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:04.761899"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.790784"], ["updated_at", "2017-01-19 02:48:04.790784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-13ve7zx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-yc6qir.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-10a5n37.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:04.833557"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.863608"], ["updated_at", "2017-01-19 02:48:04.863608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-t71exm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-o59c9o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-35kyrg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:04.894863"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.924290"], ["updated_at", "2017-01-19 02:48:04.924290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:48:04.936026"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-yjkxbn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1rnhi6b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-wh7ekq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:04.963050"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:04.994399"], ["updated_at", "2017-01-19 02:48:04.994399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:48:05.024449"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.5ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-otu4s2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-vvz6gh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-1un1zfk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:05.053339"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:05.085711"], ["updated_at", "2017-01-19 02:48:05.085711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:48:05.098201"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56135-12j49s6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-3gq5xg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56135-f4gcvz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:48:05.126985"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:48:05.159343"], ["updated_at", "2017-01-19 02:48:05.159343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-6cw9i6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-nzlz4p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-hs2cb8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:32.573190"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:32.617734"], ["updated_at", "2017-01-19 02:49:32.617734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-dy98mt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-si360z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-16v6q1c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:49:32.678572"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:32.710372"], ["updated_at", "2017-01-19 02:49:32.710372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-1rl7ms5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-8f97r6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-3kkn48.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:49:32.761615"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:32.794335"], ["updated_at", "2017-01-19 02:49:32.794335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-r5lghx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-gb25yq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-5q3gdi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:32.827378"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:32.857758"], ["updated_at", "2017-01-19 02:49:32.857758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-56240-tfgoxw'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-1kpn9o0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1fyszn3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1492sc8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-1ly3c7f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-fsz1a7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1gpepol.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-y4hqai' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1le9xbc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-13lipcw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:33.038617"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.072478"], ["updated_at", "2017-01-19 02:49:33.072478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-56240-1c5v46l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-56240-1qw4do4.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-56240-e9pigk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:49:33.108318"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.140178"], ["updated_at", "2017-01-19 02:49:33.140178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-56240-l2w835.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/068e9dd58acc143f025410df73eb8fbf20170119-56240-1hcqllx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/068e9dd58acc143f025410df73eb8fbf20170119-56240-dmldad.csv' 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", "failures20170119-56240-l2w835.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-19 02:49:33.172423"], ["updated_at", "2017-01-19 02:49:33.200408"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-ij839o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-ph97ka.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-urfi8l.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:49:33.228434"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.261896"], ["updated_at", "2017-01-19 02:49:33.261896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 02:49:33.270174"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-1b37swk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1mqk26f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-dog0ym.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:33.312758"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.345484"], ["updated_at", "2017-01-19 02:49:33.345484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-183vv2d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-ngro7j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1mla223.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:33.372483"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.402901"], ["updated_at", "2017-01-19 02:49:33.402901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-19 02:49:33.407276"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-1wmh37h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-8xoat0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-17pmmxh.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:49:33.474619"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:49:33.502288"], ["updated_at", "2017-01-19 02:49:33.502288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.6ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-6rutgk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-15ffhkb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-bv1r70.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:49:33.555069"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:49:33.587618"], ["updated_at", "2017-01-19 02:49:33.587618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 68ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-qm7euw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-htkpzn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1fihg4n.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:33.619649"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.650069"], ["updated_at", "2017-01-19 02:49:33.650069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-8r8eoq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1vg1frh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-3puq6r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:33.693171"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.722520"], ["updated_at", "2017-01-19 02:49:33.722520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-1i3wnur' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-doa7rd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-19q3sg3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:33.754739"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.787764"], ["updated_at", "2017-01-19 02:49:33.787764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:49:33.796401"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-1yjs1jz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1jazjuw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-4e1t4u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:33.824008"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.856223"], ["updated_at", "2017-01-19 02:49:33.856223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:49:33.883944"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.4ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-5lnwdc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1fo04o9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-t45pt2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:33.911609"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:33.942396"], ["updated_at", "2017-01-19 02:49:33.942396"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:49:33.955872"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-56240-1o6j936' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-1ot4xyb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-56240-13m8jby.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:49:33.984560"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:49:34.015909"], ["updated_at", "2017-01-19 02:49:34.015909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-bcr62c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-jtyb6c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-icenzj.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:18.046927"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.098874"], ["updated_at", "2017-01-19 02:54:18.098874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-57815-timsf0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-57815-ksqxd4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-57815-3iglwm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:54:18.156803"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.188871"], ["updated_at", "2017-01-19 02:54:18.188871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-57815-i1ahvu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0ada745fb2b499c2c2b6a79053dbaef020170119-57815-n6l7cx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0ada745fb2b499c2c2b6a79053dbaef020170119-57815-re7vt7.csv' 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", "failures20170119-57815-i1ahvu.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-19 02:54:18.255018"], ["updated_at", "2017-01-19 02:54:18.283170"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-lqh9t8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-t5iwvd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1nprvpn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:54:18.310792"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.343014"], ["updated_at", "2017-01-19 02:54:18.343014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 02:54:18.351310"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-57815-1jeqj37'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-14hiylm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-hurp7v.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-hkg0sz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-1b89sei' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1o26r2x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-ca6e1j.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-7zohet' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-s2z778.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-2l5pc4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:18.547599"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.579493"], ["updated_at", "2017-01-19 02:54:18.579493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-3o5c97' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-19hkg15.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-7ff6p2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:18.603107"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.635620"], ["updated_at", "2017-01-19 02:54:18.635620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-xjvk9l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1mg5w8n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1flzlty.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:54:18.663821"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.695059"], ["updated_at", "2017-01-19 02:54:18.695059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.3ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-14wy9x4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-dsm45.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-z4zf1b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:54:18.728352"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.758315"], ["updated_at", "2017-01-19 02:54:18.758315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-8gn9fl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-zhmyrj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-m60s8m.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:18.814254"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.847339"], ["updated_at", "2017-01-19 02:54:18.847339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 14.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-p17rcr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-xk3lzt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-mle2p7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:18.894012"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.925374"], ["updated_at", "2017-01-19 02:54:18.925374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:54:18.934516"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-q7c0rt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-nqg2zh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1ezi5ma.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:18.963412"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:18.992354"], ["updated_at", "2017-01-19 02:54:18.992354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:54:19.000395"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-m9895s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1m7y2cz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1nccmi9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:19.026694"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:19.056705"], ["updated_at", "2017-01-19 02:54:19.056705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:54:19.065530"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-1yy2ezp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-m0784y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-7n1ayp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:19.090654"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:19.124143"], ["updated_at", "2017-01-19 02:54:19.124143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-1yxr64n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-eb3rl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-10snizp.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:54:19.180590"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:54:19.212889"], ["updated_at", "2017-01-19 02:54:19.212889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 77ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-9a3a69' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-5nttti.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1h37czo.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:54:19.250488"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:54:19.281930"], ["updated_at", "2017-01-19 02:54:19.281930"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-r9jjln' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-16duc7z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1jx9h0u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:19.326970"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:19.361222"], ["updated_at", "2017-01-19 02:54:19.361222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-162az10' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1iktfuj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-1fl34v4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:19.393102"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:19.429299"], ["updated_at", "2017-01-19 02:54:19.429299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-19 02:54:19.435089"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-57815-6swlgy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-cpge2w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-57815-ei8wo9.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:54:19.458584"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:54:19.494305"], ["updated_at", "2017-01-19 02:54:19.494305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-v0rzb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-cglem8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1pzdi15.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:41.863464"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:41.912028"], ["updated_at", "2017-01-19 02:55:41.912028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-14wc1ht' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-6xwh84.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1hnifsu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:41.933848"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:41.970000"], ["updated_at", "2017-01-19 02:55:41.970000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-19 02:55:41.997080"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-wr9jlx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-xmtwzz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1f3ds09.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:42.018222"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.047617"], ["updated_at", "2017-01-19 02:55:42.047617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-cou3u6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-jzb18i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-dbomsq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:42.076549"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.110413"], ["updated_at", "2017-01-19 02:55:42.110413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-58056-xno085'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-ok35ne' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1dwo6nv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-ru4yuh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-hrqlpz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-eew9lf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1tjhpgx.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-2n0t8m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1swuod0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-kr9uad.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:42.270292"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.303578"], ["updated_at", "2017-01-19 02:55:42.303578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-fmcznd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-j8etnw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-w06cmu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:42.335016"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.364086"], ["updated_at", "2017-01-19 02:55:42.364086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-6bvv4e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-salx6c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-3h08u9.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:55:42.411869"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:55:42.443401"], ["updated_at", "2017-01-19 02:55:42.443401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-19m5xmy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1x5geox.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1r3fqtn.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:55:42.481032"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:55:42.509901"], ["updated_at", "2017-01-19 02:55:42.509901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-178nf3e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-19g9yu8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-us3ggo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:42.558355"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.590007"], ["updated_at", "2017-01-19 02:55:42.590007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:55:42.598908"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-865qpt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-hwsktp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1hmldoh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:42.633262"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.664348"], ["updated_at", "2017-01-19 02:55:42.664348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:55:42.675044"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-1mbfj55' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-uhn6qg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-x6qn0q.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:42.704242"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.736304"], ["updated_at", "2017-01-19 02:55:42.736304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:55:42.744454"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-fkbclp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1e14qbv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-qkfj2t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:42.771215"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.806087"], ["updated_at", "2017-01-19 02:55:42.806087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-wf3vd2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-8t4i84.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-llct09.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:42.840440"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.871829"], ["updated_at", "2017-01-19 02:55:42.871829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-1s7pxpk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1kloez2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1d7zzq4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:55:42.941698"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:42.975305"], ["updated_at", "2017-01-19 02:55:42.975305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-173yz4f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-n9ds1d.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-km62oe.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:55:43.019329"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:43.049737"], ["updated_at", "2017-01-19 02:55:43.049737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-58056-12okca4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-58056-zc24bp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-58056-1cwj3fk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:55:43.122230"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:43.160297"], ["updated_at", "2017-01-19 02:55:43.160297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-58056-66wtac.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8b58863b803dd66dc9603f3bba15dade20170119-58056-da2nzl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8b58863b803dd66dc9603f3bba15dade20170119-58056-kdvukh.csv' 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", "failures20170119-58056-66wtac.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-19 02:55:43.196096"], ["updated_at", "2017-01-19 02:55:43.230352"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.5ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58056-j5cpaz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-7knl02.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58056-1xez0oh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:55:43.260159"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:43.292239"], ["updated_at", "2017-01-19 02:55:43.292239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 02:55:43.306110"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-d4omgk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-13mrjw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1xufo9n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:55.413829"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:55.455676"], ["updated_at", "2017-01-19 02:55:55.455676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-hvyzxl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1o1l7px.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-nlk9wx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:55.503909"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:55.536155"], ["updated_at", "2017-01-19 02:55:55.536155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-jfs9fg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-x3yq27.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-3r7u8z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.5ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:55.567996"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:55.601009"], ["updated_at", "2017-01-19 02:55:55.601009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-19 02:55:55.623533"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-58268-s0byd4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-58268-1n63gxw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-58268-1wmhvr2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:55:55.655594"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:55.687709"], ["updated_at", "2017-01-19 02:55:55.687709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-58268-1dty7ny.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/42564285e81bd748c02dc219a76de33b20170119-58268-73dat3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/42564285e81bd748c02dc219a76de33b20170119-58268-105dmfe.csv' 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", "failures20170119-58268-1dty7ny.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-19 02:55:55.733439"], ["updated_at", "2017-01-19 02:55:55.761084"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-hn7wxm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-hcuofp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-sidgv5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:55:55.791446"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:55.821675"], ["updated_at", "2017-01-19 02:55:55.821675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 02:55:55.829254"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-d7zmmz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-4gyft.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-16y0fmv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:55:55.850931"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:55.882141"], ["updated_at", "2017-01-19 02:55:55.882141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-1xufuea' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-35yvib.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1e2oiqb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 02:55:55.915575"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:55.944874"], ["updated_at", "2017-01-19 02:55:55.944874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-58268-bdow9i'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-pvwtpr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1vi40zf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-3lbfbf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-820u0i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1dbs5mt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-r52zut.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-1hrxx1n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1l3y49h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-vts40n.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:56.111891"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:56.143385"], ["updated_at", "2017-01-19 02:55:56.143385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-j71xjd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-u8sdju.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-72x9mv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:56.166729"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:56.198445"], ["updated_at", "2017-01-19 02:55:56.198445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-1kr47vk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-153oukv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1oyi77i.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:56.224202"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:56.252867"], ["updated_at", "2017-01-19 02:55:56.252867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-1i6ljdf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-f695qn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-i65flu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:56.300116"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:56.331771"], ["updated_at", "2017-01-19 02:55:56.331771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-s64413' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1u8h4e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-180x6el.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:56.364514"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:56.393343"], ["updated_at", "2017-01-19 02:55:56.393343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:55:56.401863"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-1bor9fz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-9qdv96.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1cis0je.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:56.429681"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:56.460694"], ["updated_at", "2017-01-19 02:55:56.460694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:55:56.468821"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-7jiy00' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1ogoq2g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-ui2xju.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:56.494606"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:56.525301"], ["updated_at", "2017-01-19 02:55:56.525301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 02:55:56.534250"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-uesjth' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-16n8x7l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1oju757.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 02:55:56.563926"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 02:55:56.598108"], ["updated_at", "2017-01-19 02:55:56.598108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-1l756lh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1qjt8ul.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-zv4muh.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:55:56.632780"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:55:56.663329"], ["updated_at", "2017-01-19 02:55:56.663329"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.7ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-58268-170zdn5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1n98q9g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-58268-1e9qp1q.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:55:56.720670"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 02:55:56.753021"], ["updated_at", "2017-01-19 02:55:56.753021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 65ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61147-14takyw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61147-8m9ggf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61147-1tczk5b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:09:54.998898"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:09:55.053314"], ["updated_at", "2017-01-19 03:09:55.053314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61200-nzlo8l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61200-1pywr0j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61200-1jjwbv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:10:32.418370"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:10:32.470850"], ["updated_at", "2017-01-19 03:10:32.470850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61309-1cp0h6p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61309-bxi8cg.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61309-aufmeq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:12:06.786617"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:12:06.828294"], ["updated_at", "2017-01-19 03:12:06.828294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61382-ctyn00' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61382-lwpbvz.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61382-t7iwx2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:13:14.973044"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:13:15.017623"], ["updated_at", "2017-01-19 03:13:15.017623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61453-1no7u0b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61453-3z2jrs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61453-9gjv1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:14:43.754317"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:14:43.800083"], ["updated_at", "2017-01-19 03:14:43.800083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61509-mx97fm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61509-19ox7j8.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61509-1jpe3vp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:15:15.050084"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:15:15.094601"], ["updated_at", "2017-01-19 03:15:15.094601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61565-y8y3k8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61565-111x5ug.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61565-1eq3e7e.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:16:23.812876"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:16:23.857389"], ["updated_at", "2017-01-19 03:16:23.857389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61596-14hy576' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61596-gll44n.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61596-3sathb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:16:33.146978"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:16:33.189324"], ["updated_at", "2017-01-19 03:16:33.189324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61637-195hgi1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61637-orxycb.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61637-1f9gt2a.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:16:49.378375"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:16:49.422236"], ["updated_at", "2017-01-19 03:16:49.422236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61687-qrmg6w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61687-1r2ook7.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61687-pipo6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:17:06.231907"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:17:06.278882"], ["updated_at", "2017-01-19 03:17:06.278882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61731-1rttzos' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61731-1cfmiql.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61731-1i9g4nr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:17:40.689178"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:17:40.737806"], ["updated_at", "2017-01-19 03:17:40.737806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61760-8iqx7g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61760-9mje6n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61760-18tbk5w.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:17:48.955745"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:17:49.001400"], ["updated_at", "2017-01-19 03:17:49.001400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61793-153xd07' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61793-ld9q34.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61793-uzpido.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:17:55.956456"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:17:56.003933"], ["updated_at", "2017-01-19 03:17:56.003933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61837-2cv4c9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61837-1wluc5n.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61837-vmj3qo.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:18:18.304356"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:18:18.349791"], ["updated_at", "2017-01-19 03:18:18.349791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61885-nukkcu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61885-j5zazq.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61885-pq4hwg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:18:31.727518"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:18:31.770453"], ["updated_at", "2017-01-19 03:18:31.770453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-61965-1gtjbuk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61965-17cvb30.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-61965-fzcubt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:20:24.086863"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:20:24.133203"], ["updated_at", "2017-01-19 03:20:24.133203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62002-stgx1a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62002-1e2n5g3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62002-86gtjd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:20:51.503848"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:20:51.551996"], ["updated_at", "2017-01-19 03:20:51.551996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62032-41yp9t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62032-1ioq9gf.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62032-26hrtv.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:21:01.273739"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:21:01.324751"], ["updated_at", "2017-01-19 03:21:01.324751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62085-1b3fiy8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62085-11vg2gr.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62085-bp40r3.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:21:23.982696"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:21:24.029358"], ["updated_at", "2017-01-19 03:21:24.029358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62258-1ouef71' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62258-1wn8jex.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62258-wj8pgg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:23:48.426428"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:23:48.470365"], ["updated_at", "2017-01-19 03:23:48.470365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62302-1ouef71' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62302-1wn8jex.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62302-wj8pgg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:24:14.941128"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:24:14.989132"], ["updated_at", "2017-01-19 03:24:14.989132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62331-1hqnxvt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62331-1el1vdi.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62331-18f06qf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:24:25.119747"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:24:25.162584"], ["updated_at", "2017-01-19 03:24:25.162584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62388-1j1jq9e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62388-15yqg2x.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62388-167hc4a.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:24:59.117864"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:24:59.165125"], ["updated_at", "2017-01-19 03:24:59.165125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62432-18wg82p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62432-s3yf5l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62432-1yc4m78.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:25:14.188515"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:25:14.235732"], ["updated_at", "2017-01-19 03:25:14.235732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62504-1hvorm4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62504-18vnwui.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62504-1dcz1cw.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:25:40.034959"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:25:40.077844"], ["updated_at", "2017-01-19 03:25:40.077844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62557-1ezdlf3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62557-7h1ifr.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62557-1h89wao.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:25:58.402475"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:25:58.450650"], ["updated_at", "2017-01-19 03:25:58.450650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62658-1xrxk8p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62658-1obvchx.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62658-1by203e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:27:12.480077"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:27:12.523948"], ["updated_at", "2017-01-19 03:27:12.523948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62699-7621ea' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62699-2fe5yo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62699-sttb8q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:27:22.757994"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:27:22.803128"], ["updated_at", "2017-01-19 03:27:22.803128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62744-wi208j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62744-1nihfwh.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62744-go7ta0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:27:58.976496"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:27:59.018918"], ["updated_at", "2017-01-19 03:27:59.018918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62807-1gur0vl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62807-n4udev.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62807-wmc68e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:28:52.621436"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:28:52.663751"], ["updated_at", "2017-01-19 03:28:52.663751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62855-1uxlhy3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62855-cmuycq.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62855-1seu2et.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:29:11.196104"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:29:11.242768"], ["updated_at", "2017-01-19 03:29:11.242768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62933-vbn8u7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62933-121pv5y.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62933-1jmdthz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:29:47.473254"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:29:47.522567"], ["updated_at", "2017-01-19 03:29:47.522567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-62970-fsz8aq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62970-7z2mss.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-62970-o997z5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:30:10.581572"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:30:10.630238"], ["updated_at", "2017-01-19 03:30:10.630238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (3.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63009-oaet51' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63009-16z5oj6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63009-kow71v.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:30:29.518316"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:30:29.561609"], ["updated_at", "2017-01-19 03:30:29.561609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63043-14399bb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63043-1akip2k.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63043-1aaup60.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:30:42.383745"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:30:42.430553"], ["updated_at", "2017-01-19 03:30:42.430553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63125-7pymhh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63125-33l632.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63125-1l5duuu.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:31:48.324710"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:31:48.372641"], ["updated_at", "2017-01-19 03:31:48.372641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63159-1o7omsi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63159-1n56vux.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63159-6ikum2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:31:57.572859"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:31:57.620701"], ["updated_at", "2017-01-19 03:31:57.620701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63279-164278j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63279-19bvk8e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63279-12i67w9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:33:18.820021"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:33:18.868980"], ["updated_at", "2017-01-19 03:33:18.868980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63345-68hund' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63345-akpsiu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63345-1kreflt.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:34:25.488157"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:34:25.544210"], ["updated_at", "2017-01-19 03:34:25.544210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63388-l8uzaf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63388-1qajhmg.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63388-x3znvq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:35:18.626752"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:35:18.669319"], ["updated_at", "2017-01-19 03:35:18.669319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63421-ooaiv0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63421-1dttg2w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63421-pfwz3u.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:35:38.971942"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:35:39.022482"], ["updated_at", "2017-01-19 03:35:39.022482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63484-1tsl7f6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63484-1k12fgt.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63484-16y1a51.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:36:44.333966"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:36:44.381389"], ["updated_at", "2017-01-19 03:36:44.381389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63530-19fj4ew' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63530-e9c8uh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63530-1rehhk5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:37:16.351422"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:37:16.394384"], ["updated_at", "2017-01-19 03:37:16.394384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63612-13nyud0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63612-uuajrh.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63612-i0rwew.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:38:25.973141"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:38:26.022426"], ["updated_at", "2017-01-19 03:38:26.022426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63666-1ecmxn8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63666-1slgzwy.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63666-19wjhu8.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:38:58.935287"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:38:58.979859"], ["updated_at", "2017-01-19 03:38:58.979859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.3ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63683-rrn3b0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63683-xqqlq7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63683-gtiy9c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:39:05.414721"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:39:05.460556"], ["updated_at", "2017-01-19 03:39:05.460556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63785-96uczq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63785-1dmtig0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63785-10td65r.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:07.207201"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:07.254296"], ["updated_at", "2017-01-19 03:40:07.254296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-sbhbrd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-17zg8hj.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-16qabbk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:16.802287"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:16.853275"], ["updated_at", "2017-01-19 03:40:16.853275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-63803-58f089'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-rpornu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1e2gem0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-aia6p7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-15bws3w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1tpc8sp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1d63idc.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-zm77jo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-13lkfc3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1dl58nr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.042106"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.075835"], ["updated_at", "2017-01-19 03:40:17.075835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-oo69es' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-10a97d6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-x93lei.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.101969"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.134614"], ["updated_at", "2017-01-19 03:40:17.134614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-1d7u4sg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-sfcmc9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-12dg4ek.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.163857"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.194571"], ["updated_at", "2017-01-19 03:40:17.194571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-19 03:40:17.217473"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-gc3e8j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-al9hhm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-uszhdq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.240528"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.270973"], ["updated_at", "2017-01-19 03:40:17.270973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-twzb1r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1cqp82a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-mnkkfd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 03:40:17.305071"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.336985"], ["updated_at", "2017-01-19 03:40:17.336985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-1bc09x9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1kj3hoc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-v44nav.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 03:40:17.381462"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.415162"], ["updated_at", "2017-01-19 03:40:17.415162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-djc18y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1j5y2rb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-wi5fw0.csv' SQL (0.9ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.506517"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.548004"], ["updated_at", "2017-01-19 03:40:17.548004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 03:40:17.561045"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-lc2t8x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1f8itcz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-4crfto.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.586323"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.620937"], ["updated_at", "2017-01-19 03:40:17.620937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 03:40:17.630046"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-1f2u7l8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-190ar7a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-l1l0qo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.661007"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.690328"], ["updated_at", "2017-01-19 03:40:17.690328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 03:40:17.698975"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 16ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-orkbee' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1acsd7x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-19c6zrk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.737751"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.770413"], ["updated_at", "2017-01-19 03:40:17.770413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 15.1ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-1beunux' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1v5kj2r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-6xb83b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.814021"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.850603"], ["updated_at", "2017-01-19 03:40:17.850603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-cmz70k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-5ys0f0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1pf5yc7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 03:40:17.880070"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:17.914400"], ["updated_at", "2017-01-19 03:40:17.914400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-af2xyc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-8gh50m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-ar26m5.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 03:40:17.958351"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 03:40:17.986526"], ["updated_at", "2017-01-19 03:40:17.986526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 51ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-1un4wci' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-wqf13l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-errzb0.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 03:40:18.018602"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 03:40:18.049632"], ["updated_at", "2017-01-19 03:40:18.049632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-63803-r63zay' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-63803-8rbk06.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-63803-et1x9e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 03:40:18.082227"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:18.115781"], ["updated_at", "2017-01-19 03:40:18.115781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-63803-1mc7fo4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/769f1cebd19252c6407416d63540c12620170119-63803-1ftrzv5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/769f1cebd19252c6407416d63540c12620170119-63803-adx70w.csv' SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170119-63803-1mc7fo4.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-19 03:40:18.169341"], ["updated_at", "2017-01-19 03:40:18.196574"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-63803-1u9xzy5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-1ui3jzm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-63803-qvz4hd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 03:40:18.226172"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 03:40:18.257956"], ["updated_at", "2017-01-19 03:40:18.257956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 03:40:18.269896"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-ig9ubq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-jo5f7d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1x39g99.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:13.965959"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.015220"], ["updated_at", "2017-01-19 11:46:14.015220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-g8y58o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-k4tto0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-q4sg9j.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:14.088508"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.122181"], ["updated_at", "2017-01-19 11:46:14.122181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 24ms (Views: 13.2ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-tg3aw5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-2aff1q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-18m11pa.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:14.178616"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.213409"], ["updated_at", "2017-01-19 11:46:14.213409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 23ms (Views: 4.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-8nneq7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1tyjctn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-vril0k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:14.263889"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.297997"], ["updated_at", "2017-01-19 11:46:14.297997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 11:46:14.306267"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-1ws0dyb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1pozld.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-8mr1tj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:14.337426"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.370731"], ["updated_at", "2017-01-19 11:46:14.370731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 11:46:14.379655"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-maaxdq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-ebacmo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1klp3c8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:14.408969"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.441279"], ["updated_at", "2017-01-19 11:46:14.441279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 11:46:14.449517"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-1ksw1qc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1i5nh70.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-13tj1d8.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 11:46:14.480564"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 11:46:14.509823"], ["updated_at", "2017-01-19 11:46:14.509823"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 64ms (ActiveRecord: 0.8ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-f8mhna' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-79s0mf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-16z1qb6.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 11:46:14.559273"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 11:46:14.587448"], ["updated_at", "2017-01-19 11:46:14.587448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-1pki2ll' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-egmk9m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1mw2ztq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:14.629033"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.661579"], ["updated_at", "2017-01-19 11:46:14.661579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-2j5c2k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1yuoeda.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1ipd68x.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:14.690665"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.725802"], ["updated_at", "2017-01-19 11:46:14.725802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-74528-zq7la9'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-1rjwnfr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-zr0nq7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1k3dj87.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-1k38qvl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-12uv6gm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-k08pvs.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-riudzp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-uvgbnh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-3lykgq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:14.883634"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.915770"], ["updated_at", "2017-01-19 11:46:14.915770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-74528-169g7vw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-74528-7mi2mc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-74528-1g5oicm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 11:46:14.952915"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:14.985562"], ["updated_at", "2017-01-19 11:46:14.985562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-74528-duefru.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/cb2ad3f2086af129f3fead3b58dd975820170119-74528-1qhmf6f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/cb2ad3f2086af129f3fead3b58dd975820170119-74528-1ovv393.csv' 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", "failures20170119-74528-duefru.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-19 11:46:15.023753"], ["updated_at", "2017-01-19 11:46:15.057581"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-y24ur1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1xuy38z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-aw56tx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 11:46:15.084977"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:15.120620"], ["updated_at", "2017-01-19 11:46:15.120620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 11:46:15.128906"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-hen1c0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-2mqc82.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-10nw6d8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 11:46:15.197817"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:15.234115"], ["updated_at", "2017-01-19 11:46:15.234115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.2ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-13icbut' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1z0padu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1heu3xk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 11:46:15.286547"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:15.318595"], ["updated_at", "2017-01-19 11:46:15.318595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-4rb039' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-1e0ed60.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-yaax7c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:15.357671"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:15.390681"], ["updated_at", "2017-01-19 11:46:15.390681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-19 11:46:15.397413"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-74528-1ny8oni' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-c8q98k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-74528-8lk0mt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 11:46:15.419895"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 11:46:15.452721"], ["updated_at", "2017-01-19 11:46:15.452721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.5ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-mn2j3a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-ap6ka5.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-xsvh2t.csv' SQL (0.9ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:13.440271"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:13.489534"], ["updated_at", "2017-01-19 14:03:13.489534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-6092wl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-15smnwj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1vhnpb1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:13.518710"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:13.551025"], ["updated_at", "2017-01-19 14:03:13.551025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-5zdg8f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1getmuf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1yq20ap.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:13.625517"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:13.657144"], ["updated_at", "2017-01-19 14:03:13.657144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-1ep7335' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-nquj3a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1y8dd9m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:03:13.761677"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:13.795064"], ["updated_at", "2017-01-19 14:03:13.795064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 14:03:13.836396"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-82575-gcgpxo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-82575-4gogh8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-82575-1fhjbf7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:03:13.863630"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:13.897288"], ["updated_at", "2017-01-19 14:03:13.897288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-14p177k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-16yha9e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1d1kfqr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:13.936958"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:13.970136"], ["updated_at", "2017-01-19 14:03:13.970136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-ci3o21' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1b7f9hm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-xkseaz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:14.020555"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:14.052770"], ["updated_at", "2017-01-19 14:03:14.052770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 9ms (Views: 4.3ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-ykeyzd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-sjjoui.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-11eq5en.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:14.096984"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:14.129904"], ["updated_at", "2017-01-19 14:03:14.129904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:03:14.138382"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-1kq137i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-7ycgfy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-gk00mn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:14.166377"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:14.202173"], ["updated_at", "2017-01-19 14:03:14.202173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:03:14.211169"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-k7aa6s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-wajxok.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-10h3n3d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:14.258276"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:14.296297"], ["updated_at", "2017-01-19 14:03:14.296297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:03:14.306521"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 15ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-11p6ami' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-l1l7dv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-11qj3u5.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:03:14.377592"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:03:14.408988"], ["updated_at", "2017-01-19 14:03:14.408988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.6ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-15clodp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-374iqs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1j9ylg9.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:03:14.449218"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:03:14.478603"], ["updated_at", "2017-01-19 14:03:14.478603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-z5e7x3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-fmgb23.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1cuhp07.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:14.509133"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:14.549718"], ["updated_at", "2017-01-19 14:03:14.549718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-82575-1r54lvc'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-1us5h9l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1dupbui.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-538340.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-1rvnbcj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1i2yf2o.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1bo4g3k.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-13w0zxn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1i30lux.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-175l549.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:14.745920"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:14.780487"], ["updated_at", "2017-01-19 14:03:14.780487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-wdknjz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-1y5okqc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-106910e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:14.803619"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:14.838175"], ["updated_at", "2017-01-19 14:03:14.838175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-e04clx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-okxj93.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-nhnws0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:03:14.879065"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:14.914639"], ["updated_at", "2017-01-19 14:03:14.914639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82575-1s469ub' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-97vm81.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82575-p3ecf0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:03:14.952792"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:14.986787"], ["updated_at", "2017-01-19 14:03:14.986787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (2.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-1qxbpzi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1ge9fh9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-ruu00e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:53.273097"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:53.331975"], ["updated_at", "2017-01-19 14:03:53.331975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-1h94rnn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-dkrqq7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1uq80sm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:53.377401"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:53.411222"], ["updated_at", "2017-01-19 14:03:53.411222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-ebyg1u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1298q9j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-vqfm6t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:53.435752"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:53.468796"], ["updated_at", "2017-01-19 14:03:53.468796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-82684-kncooi'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-lxir6d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-cyc8hy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-j8ys32.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-bp44i7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-xdmpat.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-momauy.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-1np7h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1bszuae.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1al7v8r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:53.650844"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:53.681117"], ["updated_at", "2017-01-19 14:03:53.681117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 25ms (Views: 16.4ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-15l2cqx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-e7dxsn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1kj8avr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:53.735975"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:53.766480"], ["updated_at", "2017-01-19 14:03:53.766480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-rtuj2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1cuoa1e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1bagg8w.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:53.808978"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:53.841566"], ["updated_at", "2017-01-19 14:03:53.841566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:03:53.849980"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-6oqcwx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-vnuwp9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-jl6ybo.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:53.882106"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:53.916707"], ["updated_at", "2017-01-19 14:03:53.916707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:03:53.928180"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-1tqkft8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-mk2uqf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1ve1mry.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:54.009499"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:54.043283"], ["updated_at", "2017-01-19 14:03:54.043283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:03:54.055669"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-1kdm4m3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-11k2mfn.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1wivueq.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:54.083848"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:54.119167"], ["updated_at", "2017-01-19 14:03:54.119167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-w7dh4e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1sdgz72.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-jogfwf.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:03:54.159891"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:03:54.191433"], ["updated_at", "2017-01-19 14:03:54.191433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-1kfbwnn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-4d2vq1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1o1yb7y.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:03:54.236640"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:03:54.266171"], ["updated_at", "2017-01-19 14:03:54.266171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-1v4sc2h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1dqeksj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-13e42bg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:03:54.307104"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:54.340536"], ["updated_at", "2017-01-19 14:03:54.340536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.4ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-121fq4g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-o86vj4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-amscg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:03:54.402067"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:54.440320"], ["updated_at", "2017-01-19 14:03:54.440320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-82684-pyd7b4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-82684-kwrh9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-82684-4he7pm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:03:54.556841"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:54.590021"], ["updated_at", "2017-01-19 14:03:54.590021"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-82684-glhzzy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2bacec112f677b5c0f523ac823b5dc2720170119-82684-lhgvx3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2bacec112f677b5c0f523ac823b5dc2720170119-82684-133h7yd.csv' 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", "failures20170119-82684-glhzzy.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 14:03:54.634570"], ["updated_at", "2017-01-19 14:03:54.671628"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-3mwftc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1cqkk2v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1owlbw3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:03:54.703382"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:54.742282"], ["updated_at", "2017-01-19 14:03:54.742282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 14:03:54.753419"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-cw6c7x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-15xgpkf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-upq1gw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:54.778413"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:54.814652"], ["updated_at", "2017-01-19 14:03:54.814652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82684-6sonhd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-1wqtv0w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82684-e35gij.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:03:54.844720"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:03:54.877613"], ["updated_at", "2017-01-19 14:03:54.877613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-1drd9rm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1qcbktq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1agwidz.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:06.441428"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:06.485902"], ["updated_at", "2017-01-19 14:05:06.485902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-5mbxsd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-ejfbo7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-b24kjt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:05:06.596457"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:06.631030"], ["updated_at", "2017-01-19 14:05:06.631030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-w4t6hn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1tmlc48.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1s0a6js.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:05:06.681005"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:06.713333"], ["updated_at", "2017-01-19 14:05:06.713333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-act794' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1broul8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-19dolrb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:06.752828"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:06.783658"], ["updated_at", "2017-01-19 14:05:06.783658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 24ms (Views: 11.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-1kzgrtf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-178lhwj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-qjz9n0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:06.839356"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:06.870509"], ["updated_at", "2017-01-19 14:05:06.870509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:05:06.885317"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-a5qi8c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-dak037.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-gy1i98.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:06.954509"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:06.984516"], ["updated_at", "2017-01-19 14:05:06.984516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:05:06.992687"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-4bwk7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-e82pim.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1f5nl0s.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:07.027860"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:07.061619"], ["updated_at", "2017-01-19 14:05:07.061619"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:05:07.070453"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-emsmtq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-9xpc1x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-ygdrqa.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:05:07.113435"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:05:07.141490"], ["updated_at", "2017-01-19 14:05:07.141490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.5ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-1eynawj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1pusw9l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-11n6vt3.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:05:07.178299"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:05:07.206059"], ["updated_at", "2017-01-19 14:05:07.206059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 51ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-gx5syy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-wuivz6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-5i6o1y.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:07.233818"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:07.270334"], ["updated_at", "2017-01-19 14:05:07.270334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-1awedks' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-10ew88s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1560hsv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:07.302624"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:07.353060"], ["updated_at", "2017-01-19 14:05:07.353060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-1y1excg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1dhs2fr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-yj2ht8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:07.407115"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:07.440829"], ["updated_at", "2017-01-19 14:05:07.440829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-1hh9zfp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-iocxyy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1ijuh7k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:07.463157"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:07.497206"], ["updated_at", "2017-01-19 14:05:07.497206"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-82810-37eb1r'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-3ctyfi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-plvqzq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-149q6a5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-mpqdnj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-111xc7s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-111hfoc.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-1xsnzl1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-141vahl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1kwdshp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:07.673999"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:07.703753"], ["updated_at", "2017-01-19 14:05:07.703753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-1lwxihb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-309hx6.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-1bzyz41.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:07.735252"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:07.771860"], ["updated_at", "2017-01-19 14:05:07.771860"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82810-1pbvh3h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-ynv034.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82810-bowrwh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:05:07.807728"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:07.846461"], ["updated_at", "2017-01-19 14:05:07.846461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 14:05:07.859777"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-82810-1dc8s3u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-82810-h2l0cd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-82810-8zcmtx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:05:07.885419"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:07.917784"], ["updated_at", "2017-01-19 14:05:07.917784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-82810-wamt7d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/73d2ffc1cc7ec5c75ae14641b246c45720170119-82810-1k8uk27.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/73d2ffc1cc7ec5c75ae14641b246c45720170119-82810-1wh7457.csv' 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", "failures20170119-82810-wamt7d.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 14:05:07.960196"], ["updated_at", "2017-01-19 14:05:07.989502"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-zckxz9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-140dpl4.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-n9541e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:48.582074"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:48.627753"], ["updated_at", "2017-01-19 14:05:48.627753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-1zquki' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1emfct.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1cwynmh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:05:48.657058"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:48.688513"], ["updated_at", "2017-01-19 14:05:48.688513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-16w8ens' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1stqrlv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-o0vkrj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:05:48.738698"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:48.769400"], ["updated_at", "2017-01-19 14:05:48.769400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-1gy0bu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1q8zqa5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1p7qglg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:48.811644"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:48.843626"], ["updated_at", "2017-01-19 14:05:48.843626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-82946-2mo76k'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-1vc7i1z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-10h8go.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-kt82k4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-13zm61e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1dp7l6j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-zu3o0h.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-uz6axm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1pkm1bu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-gp19n4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:49.017221"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:49.051008"], ["updated_at", "2017-01-19 14:05:49.051008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-82946-9dqug2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-82946-100xg0p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-82946-ohxet9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:05:49.075143"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:49.105629"], ["updated_at", "2017-01-19 14:05:49.105629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-82946-1vdlbhd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2e7d8fd96ceb476de5d392e3a33e353020170119-82946-geotgb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2e7d8fd96ceb476de5d392e3a33e353020170119-82946-19z0433.csv' 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", "failures20170119-82946-1vdlbhd.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 14:05:49.140892"], ["updated_at", "2017-01-19 14:05:49.169491"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-plt5f7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1sz5dht.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1khuq5f.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:05:49.196881"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:49.230434"], ["updated_at", "2017-01-19 14:05:49.230434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 14:05:49.238547"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-b84niu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1n5gm25.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-t1a92x.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:49.260985"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:49.292877"], ["updated_at", "2017-01-19 14:05:49.292877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-19 14:05:49.305807"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-a7ha9g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1832nti.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1xq8kt8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:49.327642"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:49.358189"], ["updated_at", "2017-01-19 14:05:49.358189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-p0tis7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-y2bh2j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-tgt7t6.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:05:49.525242"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:05:49.558787"], ["updated_at", "2017-01-19 14:05:49.558787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.5ms) Importer Load (0.5ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-uls45y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-xvi0ym.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-vfwlib.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:05:49.598930"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:05:49.628898"], ["updated_at", "2017-01-19 14:05:49.628898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-mn4k40' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1m2vbuw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1fy5lqn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:49.669482"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:49.701779"], ["updated_at", "2017-01-19 14:05:49.701779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:05:49.714053"], ["id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.8ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-1l6ul0g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-cnzss6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-uzszzn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:49.745857"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:49.779394"], ["updated_at", "2017-01-19 14:05:49.779394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:05:49.790153"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-dgzjov' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-pv25pa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1lu1yst.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:49.816710"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:49.846325"], ["updated_at", "2017-01-19 14:05:49.846325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:05:49.858119"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-gdrsrk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1b6vhg2.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1a9bzc6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:49.896182"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:49.933959"], ["updated_at", "2017-01-19 14:05:49.933959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 13.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-1w8tps2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-qkkjve.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1ftlbm9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:49.984706"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:50.016894"], ["updated_at", "2017-01-19 14:05:50.016894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-82946-3jhq0q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1ve3g7w.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-82946-1ss29sb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:05:50.051842"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:05:50.088747"], ["updated_at", "2017-01-19 14:05:50.088747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-ahiuer' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-12m0fx3.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-lld8tm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:32.051823"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:32.104222"], ["updated_at", "2017-01-19 14:06:32.104222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-18fd9kw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1z0k7bf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-qq9cqx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:32.158614"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:32.189065"], ["updated_at", "2017-01-19 14:06:32.189065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-1tbqk14' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-5oru1p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-zw68er.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:32.215299"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:32.248652"], ["updated_at", "2017-01-19 14:06:32.248652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-19 14:06:32.270745"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-scg85s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1hdh3zc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-esu5sh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:32.340480"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:32.375180"], ["updated_at", "2017-01-19 14:06:32.375180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-avleev' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-aiycui.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-x8yzmk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:32.404672"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:32.438054"], ["updated_at", "2017-01-19 14:06:32.438054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-83065-7euovt'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-nbg0d9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-p617w0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-n2x7io.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-1oodky2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-h5i59.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1odih4l.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-d5r6n1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-mhssrm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1lc3vfv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:32.605658"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:32.637504"], ["updated_at", "2017-01-19 14:06:32.637504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-th8a33' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1pj43rg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-15f3hxp.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:06:32.698696"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:06:32.729033"], ["updated_at", "2017-01-19 14:06:32.729033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-1kgvcch' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-sdcnt6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1l2nkab.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:06:32.770743"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:06:32.799659"], ["updated_at", "2017-01-19 14:06:32.799659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-3z7frx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-k6qvl6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1ann8sx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:32.831906"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:32.862908"], ["updated_at", "2017-01-19 14:06:32.862908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-1yy0ok' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1iqzq6f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1s41pn6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:32.900556"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:32.931664"], ["updated_at", "2017-01-19 14:06:32.931664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:06:32.940176"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-164m63q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-k397oa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1i2dr2g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:32.968086"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:33.001259"], ["updated_at", "2017-01-19 14:06:33.001259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:06:33.009891"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-1y2mye8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-k7jsdh.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-gjwo89.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:33.036398"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:33.070167"], ["updated_at", "2017-01-19 14:06:33.070167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:06:33.078781"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-1jeujlv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-11obxsy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-jbbvit.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:33.165077"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:33.197487"], ["updated_at", "2017-01-19 14:06:33.197487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-83065-z6zmsg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-83065-5p6vhq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-83065-1k9by22.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:06:33.232979"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:33.273194"], ["updated_at", "2017-01-19 14:06:33.273194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-83065-1u153xf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/50eb7faa93489d55b5986a500e6f5d2220170119-83065-dbl1vj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/50eb7faa93489d55b5986a500e6f5d2220170119-83065-1wq9te4.csv' 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", "failures20170119-83065-1u153xf.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 14:06:33.314651"], ["updated_at", "2017-01-19 14:06:33.346467"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-161l1sc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-svmqr1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1tfx74n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:06:33.371457"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:33.402771"], ["updated_at", "2017-01-19 14:06:33.402771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 14:06:33.414617"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-119yrmw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1bq2pvq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-azr6rb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:06:33.437625"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:33.475404"], ["updated_at", "2017-01-19 14:06:33.475404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83065-4cshcy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-1ckbvjh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83065-140wyn6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:06:33.520836"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:33.555454"], ["updated_at", "2017-01-19 14:06:33.555454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-c2if54' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-8uvecn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-zj5xmk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:52.918630"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:52.961854"], ["updated_at", "2017-01-19 14:06:52.961854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-ah3ouv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-zay0jf.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-c72xc5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:06:52.992592"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:53.025884"], ["updated_at", "2017-01-19 14:06:53.025884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 14:06:53.060737"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-83165-dizh5h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-83165-uj8uqg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-83165-1qf82d8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:06:53.087802"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:53.120103"], ["updated_at", "2017-01-19 14:06:53.120103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-83165-1c32fyg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4f525c0f43d3b4e147617bbf87f6e40520170119-83165-13dq6m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4f525c0f43d3b4e147617bbf87f6e40520170119-83165-1zmpdf.csv' 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", "failures20170119-83165-1c32fyg.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 14:06:53.154052"], ["updated_at", "2017-01-19 14:06:53.183717"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-mrpokc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1s5vdh7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-xtp7zx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:53.223214"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:53.255779"], ["updated_at", "2017-01-19 14:06:53.255779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-83165-tc7v8v'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-127szai' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1qm9t2z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-z56wh6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-1u2mepj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-swjkex.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1opeph8.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-5ayewk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1d68nmc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-tazqxw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:53.423624"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:53.455591"], ["updated_at", "2017-01-19 14:06:53.455591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-1kxuiof' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-abafm5.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1p8wga0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:53.505791"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:53.541359"], ["updated_at", "2017-01-19 14:06:53.541359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-h65s28' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1su6qhc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1v3u5lr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:53.587859"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:53.619872"], ["updated_at", "2017-01-19 14:06:53.619872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-1x4vstw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-tnezn2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1hwq7tv.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:06:53.666937"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:06:53.698728"], ["updated_at", "2017-01-19 14:06:53.698728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-vlem9p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1s1gghe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1301v89.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:06:53.734265"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:06:53.764620"], ["updated_at", "2017-01-19 14:06:53.764620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-taqnvx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-caqu9k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1ws6ahh.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:53.796756"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:53.829409"], ["updated_at", "2017-01-19 14:06:53.829409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-g85lk1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1fft555.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1pdde77.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:53.862974"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:53.893832"], ["updated_at", "2017-01-19 14:06:53.893832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:06:53.908818"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-1qkkze8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-11730ek.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1kjymq5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:53.934433"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:53.968992"], ["updated_at", "2017-01-19 14:06:53.968992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:06:53.977871"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-15bp988' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-gohujj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-15iwzr7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:54.005257"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:54.039349"], ["updated_at", "2017-01-19 14:06:54.039349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:06:54.048435"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-fe807p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1w57y96.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-le920i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:06:54.125533"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:54.155917"], ["updated_at", "2017-01-19 14:06:54.155917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-kj8cdr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-5g98hj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-104edf7.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:06:54.206528"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:54.242404"], ["updated_at", "2017-01-19 14:06:54.242404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-1tndgg3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1hz2r91.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1t73x2n.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:54.285072"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:54.316274"], ["updated_at", "2017-01-19 14:06:54.316274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-19 14:06:54.322793"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-83165-o5uia3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-1je75yk.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-83165-w69vuk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:06:54.345142"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:06:54.379907"], ["updated_at", "2017-01-19 14:06:54.379907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (0.8ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.6ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1s4z037' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-19cyqcm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-p0y9ws.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:07.221462"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:07.270656"], ["updated_at", "2017-01-19 14:41:07.270656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1a8ix82' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1fkv93s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-118bo4j.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:07.337056"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:07.371752"], ["updated_at", "2017-01-19 14:41:07.371752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-84188-13i42o2'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1m9fzpz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-msgsei.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-fnrq45.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-21sz34' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-17snzxz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-n04gu6.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1bnqr48' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-8xtsaq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-ermxp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:07.567274"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:07.600005"], ["updated_at", "2017-01-19 14:41:07.600005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-w1ov7s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1z0s25y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1hvt16l.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:41:07.659809"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-19 14:41:07.690141"], ["updated_at", "2017-01-19 14:41:07.690141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-13sn2o6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-yaisnx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-13aby96.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:41:07.755408"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:07.790000"], ["updated_at", "2017-01-19 14:41:07.790000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1j2zkc6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1i9aw1b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1xv00y0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:41:07.822086"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:07.857323"], ["updated_at", "2017-01-19 14:41:07.857323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1ncis3t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-kk346n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-11622zq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:07.915683"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:07.950797"], ["updated_at", "2017-01-19 14:41:07.950797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 15.1ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1c2omkh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1g1bgxv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-wjpq78.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:08.001967"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:08.033742"], ["updated_at", "2017-01-19 14:41:08.033742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:41:08.042442"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-158de9b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1tjvk88.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1ktoh5u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:08.069261"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:08.100743"], ["updated_at", "2017-01-19 14:41:08.100743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:41:08.108725"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1vkje52' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1nw72xi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-132ceft.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:08.138245"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:08.167349"], ["updated_at", "2017-01-19 14:41:08.167349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:41:08.175738"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-5avcm2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-gws5zu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-nl674m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:08.202098"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:08.234200"], ["updated_at", "2017-01-19 14:41:08.234200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-j77w4q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-9fx08m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-ib56k5.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:41:08.269817"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:41:08.300911"], ["updated_at", "2017-01-19 14:41:08.300911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-159za45' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-13gziu5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-yl1hwc.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:41:08.354360"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:41:08.385546"], ["updated_at", "2017-01-19 14:41:08.385546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-755qcc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-12k04gg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-9kili3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:08.429098"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:08.464120"], ["updated_at", "2017-01-19 14:41:08.464120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-rrg81o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1s4l004.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-dmlolb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:08.493878"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:08.531816"], ["updated_at", "2017-01-19 14:41:08.531816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-19 14:41:08.537530"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1u7azg2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-v56zyk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-1lcg7v4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:41:08.559908"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:08.595626"], ["updated_at", "2017-01-19 14:41:08.595626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-84188-1ud1bkq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-12nln7l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-84188-uyorxk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:41:08.635305"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:08.669229"], ["updated_at", "2017-01-19 14:41:08.669229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 14:41:08.679045"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-84188-14j5xoe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-84188-m6dk1n.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-84188-151r551.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:41:08.705120"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:41:08.738482"], ["updated_at", "2017-01-19 14:41:08.738482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-84188-1wch9sz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/278dadb3dd74ddfb1de8ee30ae0972b920170119-84188-1egr31y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/278dadb3dd74ddfb1de8ee30ae0972b920170119-84188-5a638x.csv' 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", "failures20170119-84188-1wch9sz.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 14:41:08.781883"], ["updated_at", "2017-01-19 14:41:08.810617"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-z70hkg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-13mnf5a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-54g7r6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.026560"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:03.078308"], ["updated_at", "2017-01-19 14:45:03.078308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1gw26ey' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-19vr6sx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-kywxhq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.105079"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:03.135413"], ["updated_at", "2017-01-19 14:45:03.135413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 23ms (Views: 14.4ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1dfkcim' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-qd484a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-uyid8l.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.200338"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:03.233749"], ["updated_at", "2017-01-19 14:45:03.233749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 16ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-fq10av' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-msgia8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-19exum5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.277005"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:03.307948"], ["updated_at", "2017-01-19 14:45:03.307948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:45:03.329919"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-fbhtyw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1k6wdc0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1sxnn4v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.357538"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:03.391277"], ["updated_at", "2017-01-19 14:45:03.391277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:45:03.399104"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-11yxlpv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1gmj01p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-u62nuj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.429625"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:03.461947"], ["updated_at", "2017-01-19 14:45:03.461947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:45:03.470214"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1i8fbl9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-ugs9rb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1084d16.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:45:03.509064"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:45:03.539035"], ["updated_at", "2017-01-19 14:45:03.539035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1adb3ux' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-14a4xtw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-q0a5lq.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:45:03.577213"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:45:03.604685"], ["updated_at", "2017-01-19 14:45:03.604685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-13og4za' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-n0s72v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1mcbmqu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.644802"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:03.678422"], ["updated_at", "2017-01-19 14:45:03.678422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1yol2al' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-imcm6w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-el96wq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.712168"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:03.746521"], ["updated_at", "2017-01-19 14:45:03.746521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-86886-1hyv50m'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1ke3ud0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-h0yzxn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1orhjt1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-4r2fih' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1qe5ygg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1eoefsa.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1o644bv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1o0vv82.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1xo9b9x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.906334"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:03.938410"], ["updated_at", "2017-01-19 14:45:03.938410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-3anqe4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-6l7ia.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-nj8vl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:03.986205"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:04.020301"], ["updated_at", "2017-01-19 14:45:04.020301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-21t3px' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-g8779b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-1o070hd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:04.047668"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:04.077392"], ["updated_at", "2017-01-19 14:45:04.077392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-19 14:45:04.082271"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-86886-11l25lp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-86886-1d2jzj1.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-86886-dhmg21.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:04.216948"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:04.253055"], ["updated_at", "2017-01-19 14:45:04.253055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-86886-1erfhrx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/82e95f52933eb5bc41fffc1c34d9d9ef20170119-86886-1hb6589.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/82e95f52933eb5bc41fffc1c34d9d9ef20170119-86886-cg41qu.csv' 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", "failures20170119-86886-1erfhrx.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 14:45:04.299983"], ["updated_at", "2017-01-19 14:45:04.331794"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1dr11ac' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-dd9q70.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-f217i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:04.358764"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:04.395062"], ["updated_at", "2017-01-19 14:45:04.395062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 14:45:04.408254"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-dmi5fq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-4a5q33.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-rb2hwr.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:04.465121"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-19 14:45:04.495723"], ["updated_at", "2017-01-19 14:45:04.495723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1movvim' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-vpsgxp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-q4jwc6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:04.551709"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:04.586638"], ["updated_at", "2017-01-19 14:45:04.586638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-86886-1xrpuw1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-90z21r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-86886-2r0ila.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:04.622177"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:04.658322"], ["updated_at", "2017-01-19 14:45:04.658322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.4ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-8yxjgq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-yeonkx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-17w8o0b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:29.226649"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:29.294453"], ["updated_at", "2017-01-19 14:45:29.294453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-az4c3l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1nqqv4y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-15xeyta.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:29.392832"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:29.427869"], ["updated_at", "2017-01-19 14:45:29.427869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-17lhbux' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1atuv6a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-z5lwee.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:29.462031"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:29.495405"], ["updated_at", "2017-01-19 14:45:29.495405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-19 14:45:29.519419"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-8r73uz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-107d3hu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-v6czq1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:29.569933"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:29.605978"], ["updated_at", "2017-01-19 14:45:29.605978"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1r02ihm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-rt37qt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-nxeh7k.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:29.654060"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-19 14:45:29.686070"], ["updated_at", "2017-01-19 14:45:29.686070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.2ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1arsqa5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-4txzr1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1h6ibxl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:29.735799"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:29.770018"], ["updated_at", "2017-01-19 14:45:29.770018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-mj4hdo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-q7ecpc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1jvbozg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:29.830956"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:29.862785"], ["updated_at", "2017-01-19 14:45:29.862785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:45:29.874793"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1hyzif5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1qxk1bf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-9hi7fl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:29.903015"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:29.934802"], ["updated_at", "2017-01-19 14:45:29.934802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:45:29.943708"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1299x75' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-74k2z2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-tqcd34.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:29.969521"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:30.003652"], ["updated_at", "2017-01-19 14:45:30.003652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 14:45:30.012822"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1uicr6p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-7d9h2y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1c92krb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:30.039220"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:30.071485"], ["updated_at", "2017-01-19 14:45:30.071485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 20ms (Views: 16.2ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1oofbwv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1u0hqsu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1w4273q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:30.120080"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:30.156881"], ["updated_at", "2017-01-19 14:45:30.156881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1qxwijb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-u0fu6o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1ebal7t.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:45:30.203791"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:45:30.232833"], ["updated_at", "2017-01-19 14:45:30.232833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-z155k8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-cl3ho5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-13xhwds.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:45:30.269923"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 14:45:30.302128"], ["updated_at", "2017-01-19 14:45:30.302128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms)  (0.3ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1rzioj1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-kiu3yj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-aqyk41.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:30.335457"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:30.365403"], ["updated_at", "2017-01-19 14:45:30.365403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1jyc5he' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1p29rml.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1vdm95z.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:30.397689"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:30.446066"], ["updated_at", "2017-01-19 14:45:30.446066"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.4ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-87029-142uj6z'  (0.1ms) rollback transaction  (0.6ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.5ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-2j0e7f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-2i1cco.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-11r9msv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-27v7s4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-sly0og.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-bt9v85.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-1ttvxp1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1fu83hk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-reju1x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 14:45:30.635102"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:30.666695"], ["updated_at", "2017-01-19 14:45:30.666695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-87029-5634mh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-87029-190b9uz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-87029-1e7ghh9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:30.700674"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:30.734195"], ["updated_at", "2017-01-19 14:45:30.734195"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-87029-1vof5gs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f77fae073edcfb55de1fb76c868be8cd20170119-87029-ncwsle.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f77fae073edcfb55de1fb76c868be8cd20170119-87029-16vh66e.csv' SQL (0.4ms) 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", "failures20170119-87029-1vof5gs.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 14:45:30.772726"], ["updated_at", "2017-01-19 14:45:30.806494"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-87029-fnh6uv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1w2ob2z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87029-1rqpxsq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 14:45:30.833768"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 14:45:30.864884"], ["updated_at", "2017-01-19 14:45:30.864884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 14:45:30.874295"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-mzyt5j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1wcv08a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1r56tnu.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:45.049690"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.104100"], ["updated_at", "2017-01-19 20:41:45.104100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-s0iq3h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-7sq697.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1pcg8pa.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:41:45.134471"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.168284"], ["updated_at", "2017-01-19 20:41:45.168284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1ozd4sl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-5x1p0v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1kt9zs8.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:41:45.222894"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-19 20:41:45.254844"], ["updated_at", "2017-01-19 20:41:45.254844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-er2ltk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-shaiew.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1p9888i.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:41:45.301495"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.333874"], ["updated_at", "2017-01-19 20:41:45.333874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1ebwzsa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-cs3pma.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-sqecm6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:45.367004"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.397091"], ["updated_at", "2017-01-19 20:41:45.397091"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-19 20:41:45.426721"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1yv7lit' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-wk15ll.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1x87wgz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:45.449053"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.481735"], ["updated_at", "2017-01-19 20:41:45.481735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1gog1l2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-j4j3n7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-ao1570.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:45.528588"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.557823"], ["updated_at", "2017-01-19 20:41:45.557823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 20:41:45.571751"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1hwnf8c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1ngewkb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-mrs7c4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:45.602150"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.633450"], ["updated_at", "2017-01-19 20:41:45.633450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 20:41:45.642735"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-j6s23x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-g286ap.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1ybqdj8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:45.667514"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.699509"], ["updated_at", "2017-01-19 20:41:45.699509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 20:41:45.708301"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-144gl0r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-81p4g7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1bctnfo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:45.734552"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.766093"], ["updated_at", "2017-01-19 20:41:45.766093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-12fzlrh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-zfd93u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-im72fj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:45.815071"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:45.844701"], ["updated_at", "2017-01-19 20:41:45.844701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-hilid6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1uj84gj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1xtzkwo.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 20:41:45.879093"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 20:41:45.906582"], ["updated_at", "2017-01-19 20:41:45.906582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1ew3bow' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-u4ej7x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-9qt7pi.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 20:41:45.946866"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 20:41:45.977772"], ["updated_at", "2017-01-19 20:41:45.977772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-cvifr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-if7576.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-qq2ke8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:46.017678"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:46.049254"], ["updated_at", "2017-01-19 20:41:46.049254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1eayc19' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-if6wu9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1ugn6qz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:41:46.124925"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:46.158237"], ["updated_at", "2017-01-19 20:41:46.158237"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 20:41:46.168491"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-22243-pkayc3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-22243-jglslv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-22243-1xceeyj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:41:46.191229"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:46.224271"], ["updated_at", "2017-01-19 20:41:46.224271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-22243-b3wyrt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b68fe749f0bdaeed1ca791e791eb17cf20170119-22243-maqshf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b68fe749f0bdaeed1ca791e791eb17cf20170119-22243-1lamupw.csv' 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", "failures20170119-22243-b3wyrt.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 20:41:46.273977"], ["updated_at", "2017-01-19 20:41:46.304224"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1xdaccp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-d9wvtm.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-156e77s.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:46.346637"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:46.380319"], ["updated_at", "2017-01-19 20:41:46.380319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1f1fjk5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-81r3fz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-it7md2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:41:46.404749"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:41:46.439344"], ["updated_at", "2017-01-19 20:41:46.439344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-22243-hst521'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-1gsbnjf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-pl3p10.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-upa78q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22243-18jfh54' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1o3hj6i.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22243-1g1ggv9.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-1ei7cmu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-agnoht.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1t3t5zj.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:22.863321"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:22.918707"], ["updated_at", "2017-01-19 20:44:22.918707"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-1rua5hv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-12lbfvn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1n6vzfj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:22.959002"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:22.992656"], ["updated_at", "2017-01-19 20:44:22.992656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 12.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-1s0xjru' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-46ay4a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-u6w1v4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:23.050869"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.081165"], ["updated_at", "2017-01-19 20:44:23.081165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-tcbnnm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-9adva.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1m9pkr8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:23.113079"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.148525"], ["updated_at", "2017-01-19 20:44:23.148525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-1xxh2ec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1lahvks.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-3w03ww.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:23.191743"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.222502"], ["updated_at", "2017-01-19 20:44:23.222502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 20:44:23.240155"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-k0mduh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1c9qotb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-f6dxs3.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:23.265851"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.296941"], ["updated_at", "2017-01-19 20:44:23.296941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 20:44:23.305166"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-124u44y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-yod8os.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-wmt0a9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:23.334120"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.365834"], ["updated_at", "2017-01-19 20:44:23.365834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-19 20:44:23.374195"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-7a3ofd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1933s2s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-146ml55.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 20:44:23.409586"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 20:44:23.438922"], ["updated_at", "2017-01-19 20:44:23.438922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-dfcycu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-adfs8f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-qza46.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 20:44:23.474822"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-19 20:44:23.506070"], ["updated_at", "2017-01-19 20:44:23.506070"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170119-22711-tlykpp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-22711-ocz26b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-22711-13xgdpf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:44:23.551796"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.587159"], ["updated_at", "2017-01-19 20:44:23.587159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-22711-1uvny32.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9dc0f2cfaefbb7b785dc562f09cefe3720170119-22711-1v6sg7n.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9dc0f2cfaefbb7b785dc562f09cefe3720170119-22711-gx6xao.csv' 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", "failures20170119-22711-1uvny32.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-19 20:44:23.625268"], ["updated_at", "2017-01-19 20:44:23.653088"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-rxkxzs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-uy0r17.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-aji4mo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:44:23.677973"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.709151"], ["updated_at", "2017-01-19 20:44:23.709151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-19 20:44:23.717831"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-h6pqn6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-pta3vs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1j42nbz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:23.760571"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.795361"], ["updated_at", "2017-01-19 20:44:23.795361"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-19 20:44:23.804275"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-13nrrg0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1ynqgy5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-181hzde.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:23.825303"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.857205"], ["updated_at", "2017-01-19 20:44:23.857205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-1tlmbab' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1phpq74.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1w65vat.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:23.926056"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:23.958053"], ["updated_at", "2017-01-19 20:44:23.958053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170119-22711-yp6izs'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-qj2lkm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1d1rris.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1c0yvpp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-15vr4sc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-8plzbz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-11mx7fv.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-ohl1cv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-n8tmta.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-cvm9js.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-19 20:44:24.143203"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:24.172609"], ["updated_at", "2017-01-19 20:44:24.172609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-ayy6e8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1wbppd6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1ul7cx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:44:24.197437"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:24.236313"], ["updated_at", "2017-01-19 20:44:24.236313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-1oazxcr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1n3b86t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1kssmm1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:44:24.277061"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-19 20:44:24.313392"], ["updated_at", "2017-01-19 20:44:24.313392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170119-22711-hamalp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1pnlgev.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22711-1gxz68h.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-19 20:44:24.353454"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-19 20:44:24.389344"], ["updated_at", "2017-01-19 20:44:24.389344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-9w3u8r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1kavehl.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-3q7tjr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:21.397297"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:21.444188"], ["updated_at", "2017-01-20 15:29:21.444188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-87818-fp8irb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-87818-zrwwzq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-87818-gqrcnr.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 15:29:21.469962"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:21.500052"], ["updated_at", "2017-01-20 15:29:21.500052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-87818-1j4mz4q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b0816daef20a6bf8dbb95c230b2b48b420170120-87818-18aglby.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b0816daef20a6bf8dbb95c230b2b48b420170120-87818-1tu11ng.csv' 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", "failures20170120-87818-1j4mz4q.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 15:29:21.562306"], ["updated_at", "2017-01-20 15:29:21.597858"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-oez958' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-12q64qq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1v3t0bd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 15:29:21.638323"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:21.671475"], ["updated_at", "2017-01-20 15:29:21.671475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 15:29:21.679345"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1j9stf9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1jbn36l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-ggs5e4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:21.699820"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:21.733153"], ["updated_at", "2017-01-20 15:29:21.733153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-01-20 15:29:21.745134"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1lho73q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-dup6y6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-dnnzz2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:21.766991"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:21.800662"], ["updated_at", "2017-01-20 15:29:21.800662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1rqrps0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1ee8ht4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-300x8o.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:21.835313"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:21.866752"], ["updated_at", "2017-01-20 15:29:21.866752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-87818-1pzyca7'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-uklwhz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-o1ue5h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1jkf02d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1g708mn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-14wn113.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-m1alac.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1xnq7ib' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1jzf1un.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-183phv7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:22.029676"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:22.066079"], ["updated_at", "2017-01-20 15:29:22.066079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.2ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-oqcyfy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-16jaef3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1mzoqko.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 15:29:22.120360"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 15:29:22.151027"], ["updated_at", "2017-01-20 15:29:22.151027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-l1oigt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-mqr44d.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-105on7s.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 15:29:22.183847"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 15:29:22.213053"], ["updated_at", "2017-01-20 15:29:22.213053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1ozn467' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-x53wjy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1tpd5pb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:22.245438"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:22.279756"], ["updated_at", "2017-01-20 15:29:22.279756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1bo3irs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-136a970.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-h2zsgl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:22.323830"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:22.357560"], ["updated_at", "2017-01-20 15:29:22.357560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-jovyx3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1uthb3q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1sos4zr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:22.394404"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:22.426963"], ["updated_at", "2017-01-20 15:29:22.426963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 15:29:22.436928"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1ocjkub' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-yd1bed.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1qe6dto.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:22.464207"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:22.495738"], ["updated_at", "2017-01-20 15:29:22.495738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 15:29:22.504691"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-sgjhpr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1uab0v4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-nhoax5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:22.530962"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:22.563203"], ["updated_at", "2017-01-20 15:29:22.563203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 15:29:22.571236"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 15ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1vyzuvp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-18lvd5c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1f6l6i6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 15:29:22.607287"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:22.640599"], ["updated_at", "2017-01-20 15:29:22.640599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-hxj7x5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1rho0gj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-1dw9eml.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 15:29:22.672758"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:22.704882"], ["updated_at", "2017-01-20 15:29:22.704882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-1kuccys' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-14yk4ht.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-ibocu1.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 15:29:22.739064"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 15:29:22.770833"], ["updated_at", "2017-01-20 15:29:22.770833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.4ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-87818-70bc7a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-ct7chq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-87818-uczcov.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 15:29:22.806851"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 15:29:22.838928"], ["updated_at", "2017-01-20 15:29:22.838928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-gn6czg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1mij81q.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1e2zney.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:26.833720"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:26.885220"], ["updated_at", "2017-01-20 16:54:26.885220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-79jgd2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1ku8kgc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1xiot8w.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:26.905796"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:26.936155"], ["updated_at", "2017-01-20 16:54:26.936155"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-vkh4p8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-qk2l2h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1yrl014.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:26.972488"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.005131"], ["updated_at", "2017-01-20 16:54:27.005131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 16:54:27.043043"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-1v4de8t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1oadlhh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-wykaf5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:27.099823"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.132511"], ["updated_at", "2017-01-20 16:54:27.132511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-s3giln' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-16g1y1o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1pvd8sa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:27.189235"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.219547"], ["updated_at", "2017-01-20 16:54:27.219547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 16:54:27.229019"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-1wm5c5n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1w1xuhc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-h2w5zm.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:27.255480"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.288070"], ["updated_at", "2017-01-20 16:54:27.288070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 16:54:27.298253"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-19jrocg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1b5gyoo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-nmgljq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:27.330237"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.364083"], ["updated_at", "2017-01-20 16:54:27.364083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 16:54:27.374096"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-1g6t1df' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1ye78ay.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-fmat4h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:27.402065"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.438273"], ["updated_at", "2017-01-20 16:54:27.438273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-yz2rlk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1vudjmr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1pwrqqm.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 16:54:27.475420"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 16:54:27.506621"], ["updated_at", "2017-01-20 16:54:27.506621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-6dwxaa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-lwnkdx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-xecon8.csv' SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 16:54:27.545092"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 16:54:27.577374"], ["updated_at", "2017-01-20 16:54:27.577374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-1mu7xwi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1lv9uts.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1sa6pcc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:27.615504"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.650629"], ["updated_at", "2017-01-20 16:54:27.650629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-1pff8wj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-pwm5vq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-c0vvf4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:27.681841"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.711045"], ["updated_at", "2017-01-20 16:54:27.711045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-12481-6k2653'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-i81d5w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-6t56y9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-m8ivfx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-vd9zg1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-2fnmyj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1lytggo.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-qbb9a1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1p9qy2g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1oz8gle.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:54:27.862380"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.893214"], ["updated_at", "2017-01-20 16:54:27.893214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-1oglqo1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1u2scb8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-2btl0u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:54:27.916856"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:27.947478"], ["updated_at", "2017-01-20 16:54:27.947478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 16:54:27.958738"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-12481-wb8vf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-12481-lszku7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-12481-1w9ofzp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:54:27.982083"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:28.016484"], ["updated_at", "2017-01-20 16:54:28.016484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-12481-joulms.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c98fd0ee274f78e6c39fb46d32d6f1e520170120-12481-1cvbfih.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c98fd0ee274f78e6c39fb46d32d6f1e520170120-12481-97l4be.csv' 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", "failures20170120-12481-joulms.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 16:54:28.055586"], ["updated_at", "2017-01-20 16:54:28.086487"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-1jz3l15' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-wav0hh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-1ysz0fp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:54:28.162230"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:28.197131"], ["updated_at", "2017-01-20 16:54:28.197131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-bopycx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-k7fxan.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-15r3ey2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:54:28.234169"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:54:28.267032"], ["updated_at", "2017-01-20 16:54:28.267032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12481-qp52jy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-nbp52i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12481-2vlnjc.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:54:28.300197"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 16:54:28.332429"], ["updated_at", "2017-01-20 16:54:28.332429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-17mw1wg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1dzmx6m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1hjjb3j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:35.732198"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:35.780017"], ["updated_at", "2017-01-20 16:57:35.780017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-9wiq3l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-eosm66.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-kr254w.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:35.844434"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:35.873617"], ["updated_at", "2017-01-20 16:57:35.873617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 16:57:35.903240"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 37ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-stna8c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1s6wih7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-t4d97v.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:35.940755"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:35.971728"], ["updated_at", "2017-01-20 16:57:35.971728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 16:57:35.980134"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-1i5vok2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1ql4znp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1s6ylhi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:36.006738"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:36.039401"], ["updated_at", "2017-01-20 16:57:36.039401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 16:57:36.055246"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-1umfr7e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1r1c6ks.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1h6ednr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:36.078782"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:36.109346"], ["updated_at", "2017-01-20 16:57:36.109346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 13.3ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-1837roq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1dgp14.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-5zkx47.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:36.157941"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:36.191376"], ["updated_at", "2017-01-20 16:57:36.191376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-uv9a2t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1b3yvox.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-mkigji.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:36.228402"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:36.259259"], ["updated_at", "2017-01-20 16:57:36.259259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-1s5la3q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1kctird.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-ua5b3h.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 16:57:36.297435"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 16:57:36.324701"], ["updated_at", "2017-01-20 16:57:36.324701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-6qzjw4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-mw582q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-5u2whf.csv' SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 16:57:36.358197"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 16:57:36.387463"], ["updated_at", "2017-01-20 16:57:36.387463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.3ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-12708-xe5f61' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-12708-18a95x9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-12708-1558hul.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:57:36.515468"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:36.548960"], ["updated_at", "2017-01-20 16:57:36.548960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-12708-h8hiiu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/3113a3e5e683cf074e5174663b62b41720170120-12708-1n6p1ra.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/3113a3e5e683cf074e5174663b62b41720170120-12708-51ep1v.csv' 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", "failures20170120-12708-h8hiiu.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 16:57:36.586358"], ["updated_at", "2017-01-20 16:57:36.618814"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-3bsqj9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1fsfgcx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-go0j8i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:57:36.642525"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:36.676724"], ["updated_at", "2017-01-20 16:57:36.676724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 16:57:36.685235"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-1203gu8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1g4idt5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-sxu3pa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:36.708063"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:36.741996"], ["updated_at", "2017-01-20 16:57:36.741996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-1c61bze' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1kqv8dj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1nnl3cj.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:36.766279"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:36.797079"], ["updated_at", "2017-01-20 16:57:36.797079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-12708-11d99ma'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-1unr53l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1lci4e8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1b8jax6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-l71usm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-wcfgah.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1a1ny70.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-16lov79' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-rcsjks.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-12o7y79.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:57:36.959148"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:36.987844"], ["updated_at", "2017-01-20 16:57:36.987844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-4tl5iu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-zexa44.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-15r70le.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:57:37.019987"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:37.051738"], ["updated_at", "2017-01-20 16:57:37.051738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.3ms) 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", ""]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.2ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-jua0vc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-vn10kc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1dlq6lu.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:57:37.091483"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 16:57:37.125228"], ["updated_at", "2017-01-20 16:57:37.125228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-t8g8w4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-1fyqy6h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-klmpsn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:37.169879"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:37.202634"], ["updated_at", "2017-01-20 16:57:37.202634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 16:57:37.207585"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12708-1jpff2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-2mk5j6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12708-144lc3k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:37.228627"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:37.257559"], ["updated_at", "2017-01-20 16:57:37.257559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-1mmpwmp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-v1wytf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-6t2e8c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.021000"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.066914"], ["updated_at", "2017-01-20 16:57:59.066914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-bgfgkh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-h4kj0b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-b5514p.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.097847"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.127486"], ["updated_at", "2017-01-20 16:57:59.127486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 16:57:59.144255"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 38ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-qe3es8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-diiv33.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-ejfuz0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.198032"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.229622"], ["updated_at", "2017-01-20 16:57:59.229622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 16:57:59.238275"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-1ln5l9n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-1bga8oi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-104n31q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.266683"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.300869"], ["updated_at", "2017-01-20 16:57:59.300869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 16:57:59.316478"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-14sc3yz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-zsjfct.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-3t7omk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.340640"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.369763"], ["updated_at", "2017-01-20 16:57:59.369763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 18ms (Views: 13.8ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-1qdbh0p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-19pqz8j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-lt1ocg.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 16:57:59.427482"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 16:57:59.456992"], ["updated_at", "2017-01-20 16:57:59.456992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-11gffxd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-3v6ak3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-ui8jbs.csv' SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 16:57:59.503766"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 16:57:59.538762"], ["updated_at", "2017-01-20 16:57:59.538762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-1tw2kgx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-1msccdn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-n40ov6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.568882"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.597546"], ["updated_at", "2017-01-20 16:57:59.597546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-138ygs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-2g5o6q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-b8h3qe.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.628661"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.657263"], ["updated_at", "2017-01-20 16:57:59.657263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-6nypzi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-j3lrt8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-a1f7tl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.690348"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.724092"], ["updated_at", "2017-01-20 16:57:59.724092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-tf8ay9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-1acfprc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-kf8o5.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.746967"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.779658"], ["updated_at", "2017-01-20 16:57:59.779658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-12804-1mebcmd'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-hhb2pg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-13seux.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-gct9lm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-h5e07p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-1y3858v.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-10yhtsm.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-198eau9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-l2qcpe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-1ldss2x.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.938719"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:57:59.972086"], ["updated_at", "2017-01-20 16:57:59.972086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 16:57:59.977588"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-s1ry4o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-1ru0aci.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-1062d73.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 16:57:59.999515"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 16:58:00.030914"], ["updated_at", "2017-01-20 16:58:00.030914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-1pv64xo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-627lv7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-tyvc1k.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:58:00.077981"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 16:58:00.109023"], ["updated_at", "2017-01-20 16:58:00.109023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-viucum' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-wp25yf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-nf3dgv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:58:00.157590"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:58:00.191189"], ["updated_at", "2017-01-20 16:58:00.191189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-i9ewef' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-a99441.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-1ozghwp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:58:00.230434"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:58:00.263028"], ["updated_at", "2017-01-20 16:58:00.263028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12804-1sz8uls' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-15qz6uj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12804-wvz9hx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:58:00.386621"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:58:00.419864"], ["updated_at", "2017-01-20 16:58:00.419864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 16:58:00.438328"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-12804-we6k0g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-12804-x32mj7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-12804-ej2f39.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 16:58:00.466957"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 16:58:00.505076"], ["updated_at", "2017-01-20 16:58:00.505076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-12804-h1kvkh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/559e3c53db2e02dff6c9199f055308a820170120-12804-1x5f9xr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/559e3c53db2e02dff6c9199f055308a820170120-12804-579a0b.csv' 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", "failures20170120-12804-h1kvkh.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 16:58:00.548067"], ["updated_at", "2017-01-20 16:58:00.577268"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-105sqrb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-ghbpti.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-18e7b33.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:19.861626"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:19.906732"], ["updated_at", "2017-01-20 17:00:19.906732"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-16tfhhw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1kengbt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-qpi8gb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:19.960525"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:19.991745"], ["updated_at", "2017-01-20 17:00:19.991745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 17:00:20.034792"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-1hh9cz1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-llc7iq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-38k641.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:20.057877"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:20.092043"], ["updated_at", "2017-01-20 17:00:20.092043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-ws5gn2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1czcza0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1oc57ix.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:20.115621"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:20.151334"], ["updated_at", "2017-01-20 17:00:20.151334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-9itek5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1uf514g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-am8y2a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:20.175692"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:20.207749"], ["updated_at", "2017-01-20 17:00:20.207749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-12985-1jnuhfx'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-7t7sv9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-15bfkih.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1svj6s9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-225ei1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-ygd7lz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-yscovf.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-62ixlw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-ktelir.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1qkhcu3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:20.377084"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:20.409032"], ["updated_at", "2017-01-20 17:00:20.409032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 14.9ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-1r8639u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1aa5tsa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1xjmn57.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:20.452290"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:20.484759"], ["updated_at", "2017-01-20 17:00:20.484759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:00:20.495825"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-e9jco2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-is0e1g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-mo4s82.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:20.526822"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:20.558228"], ["updated_at", "2017-01-20 17:00:20.558228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:00:20.566845"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-p9owke' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-f4u95t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-n2mpkp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:20.593750"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:20.624896"], ["updated_at", "2017-01-20 17:00:20.624896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:00:20.633290"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-8n5ydq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1ejy9qp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-vw0kvq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:20.659341"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:20.692490"], ["updated_at", "2017-01-20 17:00:20.692490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-lwro98' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-58ifc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-uwffjz.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:00:20.743907"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:00:20.775202"], ["updated_at", "2017-01-20 17:00:20.775202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 64ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-55es7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-bwg2bj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1goub30.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:00:20.820585"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:00:20.849368"], ["updated_at", "2017-01-20 17:00:20.849368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-1h17fxk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-1k07469.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-ljav2q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:20.878884"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:20.911619"], ["updated_at", "2017-01-20 17:00:20.911619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-1j4evmb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-729mm3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-pd8rfo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:21.011069"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:21.043873"], ["updated_at", "2017-01-20 17:00:21.043873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-a9lq0t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-12t37hd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-an0z7c.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:21.085505"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 17:00:21.118171"], ["updated_at", "2017-01-20 17:00:21.118171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.3ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-zqrozk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-4s9v3g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-m3b34.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:21.164211"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:21.196815"], ["updated_at", "2017-01-20 17:00:21.196815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-12985-15163mh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-v79x52.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-12985-17j93ah.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:21.252973"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:21.283863"], ["updated_at", "2017-01-20 17:00:21.283863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 17:00:21.295192"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-12985-6z86b6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-12985-uv3yp9.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-12985-skr0mq.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:21.318144"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:21.353075"], ["updated_at", "2017-01-20 17:00:21.353075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-12985-tjysyw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/7140ebc253773ee5d537b1b3cda801ab20170120-12985-fk0c5x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/7140ebc253773ee5d537b1b3cda801ab20170120-12985-kkcciy.csv' 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", "failures20170120-12985-tjysyw.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 17:00:21.389598"], ["updated_at", "2017-01-20 17:00:21.417733"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-homa3s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-9q1p0y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-zr0y66.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:36.012246"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:36.065810"], ["updated_at", "2017-01-20 17:00:36.065810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-1pbmoh9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-yy30tn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-16wqurw.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:36.100306"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:36.139205"], ["updated_at", "2017-01-20 17:00:36.139205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-65h7f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-9f3uf2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1ibybht.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:36.208517"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 17:00:36.242738"], ["updated_at", "2017-01-20 17:00:36.242738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-t32tkn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1egvd4n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-154chtc.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:36.287765"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:36.322887"], ["updated_at", "2017-01-20 17:00:36.322887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-13eakna' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-s2ugmu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1mcwjeq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:36.400643"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:36.432733"], ["updated_at", "2017-01-20 17:00:36.432733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-13084-1j102oe'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-1oalhhc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1f5ctex.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-oervdg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-qfh8n2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1vrkyxo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-nkxc0a.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-cu4d2i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1ti06pd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1sds436.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:36.606881"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:36.639505"], ["updated_at", "2017-01-20 17:00:36.639505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-16d6n5c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-uqyq9y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-9j7el1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:36.697146"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:36.729257"], ["updated_at", "2017-01-20 17:00:36.729257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-1aeb9jk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1lli8hi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1sbwf74.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:36.754568"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:36.786222"], ["updated_at", "2017-01-20 17:00:36.786222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 17:00:36.790961"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-amyi81' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1fduw91.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-jko0jy.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:00:36.826262"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:00:36.855984"], ["updated_at", "2017-01-20 17:00:36.855984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-1chq1lu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-ln2sv9.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1o37bex.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:00:36.893188"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:00:36.925182"], ["updated_at", "2017-01-20 17:00:36.925182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.5ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-ok2uco' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1gxzex2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1twolxn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:36.965798"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:36.998357"], ["updated_at", "2017-01-20 17:00:36.998357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-qwbp3y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-sdarh8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1vrqa1d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:37.040628"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:37.074554"], ["updated_at", "2017-01-20 17:00:37.074554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-15vlblu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-17jg3r8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-7xcjxx.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:37.112362"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:37.141369"], ["updated_at", "2017-01-20 17:00:37.141369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-ramv7e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-16k2shd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-1b9qa80.csv' SQL (0.9ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:37.172769"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:37.210572"], ["updated_at", "2017-01-20 17:00:37.210572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:00:37.222306"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 12ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-1ioqfzo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-cvimx0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-cb32ym.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:37.256154"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:37.288889"], ["updated_at", "2017-01-20 17:00:37.288889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:00:37.297866"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-1xaey6m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-kbg6lf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-o9wnri.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:37.323868"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:37.355669"], ["updated_at", "2017-01-20 17:00:37.355669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:00:37.364989"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-13084-17zdeyd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-13084-5nq2vw.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-13084-1i51sjj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:37.459165"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:37.492453"], ["updated_at", "2017-01-20 17:00:37.492453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-13084-3zodzd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/93d3016f23f5b630db39763829eae04020170120-13084-pw1hsy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/93d3016f23f5b630db39763829eae04020170120-13084-kiz3nb.csv' 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", "failures20170120-13084-3zodzd.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 17:00:37.533437"], ["updated_at", "2017-01-20 17:00:37.564752"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13084-10k3c07' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-40kaoi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13084-17zikui.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:00:37.596305"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:37.630079"], ["updated_at", "2017-01-20 17:00:37.630079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 17:00:37.639471"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13174-jjs6tf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13174-19el283.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13174-scjnh7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:00:52.584262"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:00:52.631233"], ["updated_at", "2017-01-20 17:00:52.631233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13260-1glddkz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13260-1p41l4l.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13260-enq2hr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:02:30.692161"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:02:30.737350"], ["updated_at", "2017-01-20 17:02:30.737350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13281-gp2ra3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13281-13xhrca.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13281-14b8iz6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:02:36.094971"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:02:36.141455"], ["updated_at", "2017-01-20 17:02:36.141455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13360-o2dd5e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13360-1tj27pe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13360-1kgrrm1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:16.620197"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:16.673441"], ["updated_at", "2017-01-20 17:03:16.673441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13393-14tb52b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13393-b5262x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13393-1imgool.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:32.253426"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:32.299306"], ["updated_at", "2017-01-20 17:03:32.299306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13429-1kxdq2d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13429-ei2y44.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13429-1m50iaa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:45.808104"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:45.850684"], ["updated_at", "2017-01-20 17:03:45.850684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-eoq8xg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-638ish.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1g4m46r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:50.887579"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:50.933789"], ["updated_at", "2017-01-20 17:03:50.933789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-6ryt9y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-494dhq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-11c9ilp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:50.960501"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.008480"], ["updated_at", "2017-01-20 17:03:51.008480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-db9ukb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-n326ih.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-v4rikd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:51.039577"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.068876"], ["updated_at", "2017-01-20 17:03:51.068876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-20 17:03:51.087035"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-6dlfvw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1jg5x4e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1rmp6ii.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:03:51.159984"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:03:51.190460"], ["updated_at", "2017-01-20 17:03:51.190460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.5ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-1okwevb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-14lrpd1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-rk6pa2.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:03:51.240428"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:03:51.269343"], ["updated_at", "2017-01-20 17:03:51.269343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-19c0a95' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-wv4qc3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-v4pus8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:51.298929"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.327379"], ["updated_at", "2017-01-20 17:03:51.327379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-mbh5vx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-srmlu4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-w0rz1t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:51.372240"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.404023"], ["updated_at", "2017-01-20 17:03:51.404023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:03:51.412809"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-15tqg9b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1na31hr.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-9f41l1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:51.440151"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.473135"], ["updated_at", "2017-01-20 17:03:51.473135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:03:51.482786"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-1wztsim' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-yx43gf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1hoyhah.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:51.511357"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.547199"], ["updated_at", "2017-01-20 17:03:51.547199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:03:51.555623"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-x9g4pg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-xyudn5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-9mx6i4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:51.582114"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.612098"], ["updated_at", "2017-01-20 17:03:51.612098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-pexbdl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-80kmnb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-7w47it.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:51.646609"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.678952"], ["updated_at", "2017-01-20 17:03:51.678952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-rxmbiu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-lr7ti8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-y43jtv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:51.708136"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.736932"], ["updated_at", "2017-01-20 17:03:51.736932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-1b13d0w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1mfhed3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-27aofo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:51.759788"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.789255"], ["updated_at", "2017-01-20 17:03:51.789255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-13449-hr6dcy'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-1g13weu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1rmyn2x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-160swbp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-190x2hy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-4rxydk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1jnxkhj.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-1fwmek3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-ncktk4.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-15hckuv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:51.951554"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:51.981805"], ["updated_at", "2017-01-20 17:03:51.981805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-1j9lyym' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1645gfe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-2rcpcc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:52.018214"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:52.050861"], ["updated_at", "2017-01-20 17:03:52.050861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-1eutcux' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1787tn3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-91dqsq.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:52.088242"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 17:03:52.132151"], ["updated_at", "2017-01-20 17:03:52.132151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-13449-p30w18' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-13449-q42xmk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-13449-otsg48.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:52.243210"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:52.272832"], ["updated_at", "2017-01-20 17:03:52.272832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-13449-1bpmult.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/22d83eae48e8b89bb9db7d4dc332b62620170120-13449-1ksy3hg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/22d83eae48e8b89bb9db7d4dc332b62620170120-13449-z4qqpn.csv' 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", "failures20170120-13449-1bpmult.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 17:03:52.311118"], ["updated_at", "2017-01-20 17:03:52.341313"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13449-54efww' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1sxmugj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13449-1yzu1qz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:52.369051"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:52.402466"], ["updated_at", "2017-01-20 17:03:52.402466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 17:03:52.415090"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-14k24fl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1ej4buo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-14q9qz1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:56.681655"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:56.727107"], ["updated_at", "2017-01-20 17:03:56.727107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1qx5bdx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-au2w4t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1nedp1e.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:56.790179"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:56.821540"], ["updated_at", "2017-01-20 17:03:56.821540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-skw3w9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1mgjcnx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-81dfwi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:56.877341"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:56.906321"], ["updated_at", "2017-01-20 17:03:56.906321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1pg8t6a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-a3t4fw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1luyx8h.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:56.942326"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 17:03:56.972344"], ["updated_at", "2017-01-20 17:03:56.972344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1ienxv6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1tit5j5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-6y1ce2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.055517"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:57.087342"], ["updated_at", "2017-01-20 17:03:57.087342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 14ms (Views: 13.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-15q8cq1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-izu9zp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-aly8hn.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.131614"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:57.164155"], ["updated_at", "2017-01-20 17:03:57.164155"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-u9jetr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-2r5gaq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1y60qh5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.198541"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:57.230407"], ["updated_at", "2017-01-20 17:03:57.230407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1iv5050' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-xqz2xz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-19ygdtq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.269851"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:57.302897"], ["updated_at", "2017-01-20 17:03:57.302897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:03:57.312828"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1f8l2w9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-8mefdc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1k5l6im.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.341497"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:57.374109"], ["updated_at", "2017-01-20 17:03:57.374109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:03:57.383718"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1cls5pb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-15iirsu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1g5m11f.csv' SQL (1.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.415202"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:57.451313"], ["updated_at", "2017-01-20 17:03:57.451313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:03:57.461759"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-zqpcdw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-lh5es4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-4en3to.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:03:57.495419"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:03:57.526167"], ["updated_at", "2017-01-20 17:03:57.526167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-ymakz9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-o7faac.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-10aptb8.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:03:57.562536"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:03:57.591926"], ["updated_at", "2017-01-20 17:03:57.591926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-8o7ox' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-r5gfp5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-q4ekhf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.633097"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:57.667901"], ["updated_at", "2017-01-20 17:03:57.667901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1r88dnl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1xbbslk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-switv9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.693249"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:57.723376"], ["updated_at", "2017-01-20 17:03:57.723376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-13540-1a504q8'  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-wl2y7l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1px5bi4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-10zjtto.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1fs4wxz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-oqtr2s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-wterca.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-xw8qpi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1cdx5vt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-qfz966.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.912908"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:57.943223"], ["updated_at", "2017-01-20 17:03:57.943223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1kh4y8f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-8ko29t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-17dlv8d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:03:57.970498"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:58.005715"], ["updated_at", "2017-01-20 17:03:58.005715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 17:03:58.010428"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-13540-1g71122' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-1skys5j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-13540-14v1l3n.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:58.054776"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:58.088568"], ["updated_at", "2017-01-20 17:03:58.088568"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 17:03:58.102998"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-13540-1yqbjs5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-13540-yqpfgo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-13540-7beywo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:03:58.126060"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:03:58.163366"], ["updated_at", "2017-01-20 17:03:58.163366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-13540-2g5zwb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/404814d00a6d7cc85b7b4f90ebb9e39d20170120-13540-gm3wt1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/404814d00a6d7cc85b7b4f90ebb9e39d20170120-13540-44hn01.csv' 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", "failures20170120-13540-2g5zwb.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 17:03:58.200085"], ["updated_at", "2017-01-20 17:03:58.232537"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-gebvb6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-9hncmq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-17plrch.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:11.985969"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:12.035771"], ["updated_at", "2017-01-20 17:35:12.035771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-1dvzq9q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-i3doud.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1nyd6fm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:12.095188"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:12.126907"], ["updated_at", "2017-01-20 17:35:12.126907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 17:35:12.179005"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-15095-ttva8d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-15095-19x1cdp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-15095-16hldvs.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:12.206449"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:12.238463"], ["updated_at", "2017-01-20 17:35:12.238463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-15095-wb4mk0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5eef2d3fbb296de0fd4da51cc54772f120170120-15095-dfvq56.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5eef2d3fbb296de0fd4da51cc54772f120170120-15095-c7vnkr.csv' SQL (0.1ms) 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", "failures20170120-15095-wb4mk0.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 17:35:12.274281"], ["updated_at", "2017-01-20 17:35:12.303371"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-ncuviy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-mm1qrz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-dhcfdp.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:12.435217"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:12.467141"], ["updated_at", "2017-01-20 17:35:12.467141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-01-20 17:35:12.473327"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-h3k1s9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1vo0jzl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1a20kmd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:12.493987"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:12.523976"], ["updated_at", "2017-01-20 17:35:12.523976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-1bozknu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1nb61at.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-5ltys8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:12.559415"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:12.592063"], ["updated_at", "2017-01-20 17:35:12.592063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-17zatmp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-fb0vx4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1ona5zh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:12.625384"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:12.658843"], ["updated_at", "2017-01-20 17:35:12.658843"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-1tj15k5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-flzv7i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-tnie5k.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:12.694814"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 17:35:12.728475"], ["updated_at", "2017-01-20 17:35:12.728475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.2ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-f8yenl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1nnn021.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-j3h1qa.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:35:12.799372"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:35:12.828772"], ["updated_at", "2017-01-20 17:35:12.828772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-18r0vn6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-10w0gvk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1qol384.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:35:12.862976"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:35:12.891604"], ["updated_at", "2017-01-20 17:35:12.891604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-1wrmgot' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1d961cu.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-rm5kur.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:12.922113"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:12.953814"], ["updated_at", "2017-01-20 17:35:12.953814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 17ms (Views: 16.7ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-x5fcnx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1rns7vw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-oqc9fs.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:12.999106"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:13.030380"], ["updated_at", "2017-01-20 17:35:13.030380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-7g16y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1snehdz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-119quch.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:13.062106"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:13.093031"], ["updated_at", "2017-01-20 17:35:13.093031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-l4f9dm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-p74k0h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-14by37d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:13.124587"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:13.156282"], ["updated_at", "2017-01-20 17:35:13.156282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:35:13.165772"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-xvipry' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-xiv6cm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-evlidr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:13.192992"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:13.225965"], ["updated_at", "2017-01-20 17:35:13.225965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:35:13.235893"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-1tb0qd2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-jbsrnc.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1dx1tv8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:13.264496"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:13.294472"], ["updated_at", "2017-01-20 17:35:13.294472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:35:13.305028"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-nvf6h3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1x4irjy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1tezjc5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:13.351039"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:13.382787"], ["updated_at", "2017-01-20 17:35:13.382787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-1cgimqc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-1j06kod.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-13un5sr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:13.406246"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:13.436286"], ["updated_at", "2017-01-20 17:35:13.436286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-15095-54c9pw'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-3y944c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-bgv0iv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-q9af7r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15095-1gv2mov' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-ix5mg0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15095-srgrdt.csv'  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-pduyih' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-pyk62l.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-g2e8r8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:30.836596"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:30.882067"], ["updated_at", "2017-01-20 17:35:30.882067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-1iebtxe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-12ruzbc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1d45vld.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:30.906017"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:30.937222"], ["updated_at", "2017-01-20 17:35:30.937222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-15202-1107dp3'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-10w659f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-p4jh4j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-15u56v2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-11fx31s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-pohdnb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-mfqils.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-1v9qw1c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-5l9opt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-10gk1m4.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:31.119861"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.153658"], ["updated_at", "2017-01-20 17:35:31.153658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-veuru1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1ouvsag.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-18b9dkh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:31.211281"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.242820"], ["updated_at", "2017-01-20 17:35:31.242820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 17:35:31.271111"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-15202-2v6qbg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-15202-n8lx73.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-15202-16v7zvw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:31.296585"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.329918"], ["updated_at", "2017-01-20 17:35:31.329918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-15202-8ib7ha.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c166f41b2d511285c351d59d87a18fe020170120-15202-tq3ve1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c166f41b2d511285c351d59d87a18fe020170120-15202-6n8tok.csv' 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", "failures20170120-15202-8ib7ha.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 17:35:31.364010"], ["updated_at", "2017-01-20 17:35:31.394363"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-1wgouh7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-itkhoc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1hufej5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:31.440153"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.473500"], ["updated_at", "2017-01-20 17:35:31.473500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-f09lcd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-n2gx9h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-xt6bmb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:31.503092"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.536378"], ["updated_at", "2017-01-20 17:35:31.536378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 17:35:31.540569"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-mv5q7q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-17t0h5s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-7n6zgz.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:31.594911"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 17:35:31.629935"], ["updated_at", "2017-01-20 17:35:31.629935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-u3mce5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1dmlefo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1ecapzs.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:31.672615"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.704868"], ["updated_at", "2017-01-20 17:35:31.704868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-1itm6ve' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-rcjb40.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1q6arhe.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:35:31.738594"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.767789"], ["updated_at", "2017-01-20 17:35:31.767789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-1vcwbii' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-inp7ku.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-yt25b8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:31.801664"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.832646"], ["updated_at", "2017-01-20 17:35:31.832646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:35:31.843852"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-13zd3ob' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1jz80jt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-2fty30.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:31.876553"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.909537"], ["updated_at", "2017-01-20 17:35:31.909537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:35:31.919098"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-1sdrze7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-varix5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1j19q1e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:31.946355"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:31.977531"], ["updated_at", "2017-01-20 17:35:31.977531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:35:31.985441"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-sys945' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-tyezao.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1ulo59p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:32.012844"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:32.045698"], ["updated_at", "2017-01-20 17:35:32.045698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-zfgeq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1cgkkbi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-6d8cw2.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:35:32.090701"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:35:32.121033"], ["updated_at", "2017-01-20 17:35:32.121033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.4ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-xdn2g6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1xh20yk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-bqf052.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:35:32.157715"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:35:32.188189"], ["updated_at", "2017-01-20 17:35:32.188189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-1jazewc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1q5v53w.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1iqsltj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:32.225164"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:32.258812"], ["updated_at", "2017-01-20 17:35:32.258812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-15202-ttynug' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-11q4va7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-15202-1kkcqdj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:35:32.287940"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:35:32.319294"], ["updated_at", "2017-01-20 17:35:32.319294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-1wz9ofc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1j2hb2z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-m8n1hp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:00.753455"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:00.805956"], ["updated_at", "2017-01-20 17:56:00.805956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-16523-18jrkg4'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-18jh6i1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-18gepgz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1retuco.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-17xts15' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-17vn4at.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-8c7k6s.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-1cooph' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-51cfs5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-98bfak.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:00.968770"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.000832"], ["updated_at", "2017-01-20 17:56:01.000832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-1hl6tpv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1bhu749.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-n7b09g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:01.041253"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.074750"], ["updated_at", "2017-01-20 17:56:01.074750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-1l4k16y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-hi11y5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-l8k1hm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:01.132316"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.165089"], ["updated_at", "2017-01-20 17:56:01.165089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:56:01.196900"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 18ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-m3sxa5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-9kwz1l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1bgbaav.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:01.222215"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.255345"], ["updated_at", "2017-01-20 17:56:01.255345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:56:01.264054"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-1n3iyvm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1ht5p9m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-stg6dl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:01.292696"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.322819"], ["updated_at", "2017-01-20 17:56:01.322819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:56:01.333015"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-g6gxzt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-ehv18k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1edm1fo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:01.363496"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.393530"], ["updated_at", "2017-01-20 17:56:01.393530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 16.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-hxiwck' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1h2s0lx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-em03p9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:01.438104"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.468014"], ["updated_at", "2017-01-20 17:56:01.468014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-19vjcr2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-qr16cl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-rn80e5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:01.498063"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.529788"], ["updated_at", "2017-01-20 17:56:01.529788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-1vke2tr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1w8ecw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-kmf3mk.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:56:01.583161"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:56:01.613504"], ["updated_at", "2017-01-20 17:56:01.613504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-pz5yk8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-dycwba.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-51obv6.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:56:01.648760"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:56:01.677077"], ["updated_at", "2017-01-20 17:56:01.677077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-66vchz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-tp8whm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-ongb28.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:01.752278"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.784779"], ["updated_at", "2017-01-20 17:56:01.784779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.2ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-a9a0jo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1nuysgb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-d2sxly.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:01.825401"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 17:56:01.858274"], ["updated_at", "2017-01-20 17:56:01.858274"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-moatvw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1cvcv0e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-pebbj8.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:01.909626"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:01.938756"], ["updated_at", "2017-01-20 17:56:01.938756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.2ms) SELECT "companies"."city" FROM "companies"  (0.2ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-16523-1bza5yp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-16523-1db3x3t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-16523-1u5dc8m.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:01.972296"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:02.003066"], ["updated_at", "2017-01-20 17:56:02.003066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-16523-1s896hk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b1be9b13156b7b0cbb200f8aacbf710e20170120-16523-1dghb8a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b1be9b13156b7b0cbb200f8aacbf710e20170120-16523-10qp0yy.csv' 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", "failures20170120-16523-1s896hk.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 17:56:02.040016"], ["updated_at", "2017-01-20 17:56:02.075210"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-10yke5p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-pyxa1u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1ds1nri.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:02.102557"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:02.133241"], ["updated_at", "2017-01-20 17:56:02.133241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 17:56:02.142406"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-12c53jf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1ls742d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1cc2c0z.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:02.264240"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:02.292924"], ["updated_at", "2017-01-20 17:56:02.292924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 17:56:02.297354"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16523-12lt94y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-gswcgq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16523-1ne1lax.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:02.319562"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:02.351859"], ["updated_at", "2017-01-20 17:56:02.351859"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-ryd1o3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-yhtzi8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1ksbga.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:25.529755"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:25.577667"], ["updated_at", "2017-01-20 17:56:25.577667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-i1gn6l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-6j5d5s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-7vppcg.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:25.615912"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["created_at", "2017-01-20 17:56:25.646010"], ["updated_at", "2017-01-20 17:56:25.646010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-ciyzvs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-2mdgm1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-unupd9.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:25.706800"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:25.753358"], ["updated_at", "2017-01-20 17:56:25.753358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-10k1j8b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-xjcukw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-2qhd0v.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:25.789414"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:25.818688"], ["updated_at", "2017-01-20 17:56:25.818688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-41pcss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1k0vtms.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-6ca9r9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:25.853377"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:25.887826"], ["updated_at", "2017-01-20 17:56:25.887826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170120-16637-u7ck58'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-43fi1u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-wuw7r3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-p8943d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-1lopxcg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1drtluc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-g4d92y.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-1fhd6zt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-uc2fxc.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1076tk7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:26.061403"], ["source", "company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.091402"], ["updated_at", "2017-01-20 17:56:26.091402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-9imhs9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-18gweib.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-7unpdc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:26.179628"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.211877"], ["updated_at", "2017-01-20 17:56:26.211877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-20 17:56:26.216510"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-81b7p6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1ygmk85.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1derncx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:26.238360"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.268891"], ["updated_at", "2017-01-20 17:56:26.268891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170120-16637-9xpzzh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-16637-1n9erwf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170120-16637-1qs8qq1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:26.327377"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.358952"], ["updated_at", "2017-01-20 17:56:26.358952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170120-16637-eboq9e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/76766702d3e9b1646982aaf14728a11720170120-16637-xebf0x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/76766702d3e9b1646982aaf14728a11720170120-16637-1r1hvps.csv' 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", "failures20170120-16637-eboq9e.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-20 17:56:26.395081"], ["updated_at", "2017-01-20 17:56:26.426108"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-1gim0df' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1nmn4rw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-51lc33.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-20 17:56:26.448632"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.482059"], ["updated_at", "2017-01-20 17:56:26.482059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-20 17:56:26.492034"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-pm2yqe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-if3xaf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-ssqhy6.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:56:26.529700"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:56:26.558657"], ["updated_at", "2017-01-20 17:56:26.558657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-19qce4u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1dso5wp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-63753e.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-20 17:56:26.593096"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["created_at", "2017-01-20 17:56:26.624235"], ["updated_at", "2017-01-20 17:56:26.624235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.3ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-1mmkiza' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1whz0sn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-a7i31y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:26.663650"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.697982"], ["updated_at", "2017-01-20 17:56:26.697982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:56:26.707085"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-1jimxjt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1m0izrl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-dz1e32.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:26.735877"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.764229"], ["updated_at", "2017-01-20 17:56:26.764229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:56:26.772642"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-1tpzl8t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-117skpo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-14z36d4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:26.795317"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.827743"], ["updated_at", "2017-01-20 17:56:26.827743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-20 17:56:26.835950"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-196t0j4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-136j6f1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-mbevil.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:26.860476"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.891344"], ["updated_at", "2017-01-20 17:56:26.891344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-13z79p0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-19eh4ix.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-l18e6x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:26.933325"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:26.964503"], ["updated_at", "2017-01-20 17:56:26.964503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170120-16637-1ec85us' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-c23qnw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170120-16637-1nxu6ij.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-20 17:56:26.994769"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-20 17:56:27.025771"], ["updated_at", "2017-01-20 17:56:27.025771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-54194-5uhvw0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54194-18h5bn2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54194-3b34ae.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:07:40.943983"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:07:41.002605"], ["updated_at", "2017-01-25 12:07:41.002605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-54229-11d1kk3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54229-nyqb7y.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54229-1v85q5w.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:07:51.006802"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:07:51.050783"], ["updated_at", "2017-01-25 12:07:51.050783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-54269-1waukf9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54269-1ei2jnx.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54269-3rkpno.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:08:07.459745"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:08:07.502319"], ["updated_at", "2017-01-25 12:08:07.502319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-54516-1jscpy8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54516-16vtsi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54516-1clquxr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:12:10.926930"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:12:10.977118"], ["updated_at", "2017-01-25 12:12:10.977118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-54562-1kkzuds' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54562-1a7brod.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54562-1760aja.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:12:38.721530"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:12:38.771354"], ["updated_at", "2017-01-25 12:12:38.771354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-54618-1mqg30' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54618-nc5728.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54618-cf21i2.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:13:08.697715"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:13:08.748411"], ["updated_at", "2017-01-25 12:13:08.748411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-54866-6wc7mh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54866-nb6ra7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54866-1gv5wp4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:20:23.918603"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:20:23.971348"], ["updated_at", "2017-01-25 12:20:23.971348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-54920-rh68mz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54920-1tl7ufe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-54920-t91oqw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:20:45.684213"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:20:45.737176"], ["updated_at", "2017-01-25 12:20:45.737176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-55008-1zju86' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55008-ajsrya.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55008-whlmeg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:21:41.525074"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:21:41.578013"], ["updated_at", "2017-01-25 12:21:41.578013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-55077-n0cdi3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55077-1p0hvt5.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55077-1mt6ukl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:22:38.684514"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:22:38.734456"], ["updated_at", "2017-01-25 12:22:38.734456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-55170-1q6ekuf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55170-tnhn1u.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55170-1rx4yxa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:23:30.222499"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:23:30.266322"], ["updated_at", "2017-01-25 12:23:30.266322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-55204-nuy7yq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55204-8fzidt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55204-1etepe5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:23:41.863989"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:23:41.910833"], ["updated_at", "2017-01-25 12:23:41.910833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-55587-2n2yug' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55587-17tdf2z.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55587-rbud28.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:31:58.106482"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:31:58.163798"], ["updated_at", "2017-01-25 12:31:58.163798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (3.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-55667-102t4vp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55667-p99e85.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55667-s0el8v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:32:27.710869"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:32:27.764416"], ["updated_at", "2017-01-25 12:32:27.764416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-55742-qtz3n9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55742-4tf3lk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55742-buuv0s.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:34:01.036400"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:34:01.084944"], ["updated_at", "2017-01-25 12:34:01.084944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-55789-106kdo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55789-ps5wc7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55789-mlikr6.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:34:24.155709"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:34:24.210408"], ["updated_at", "2017-01-25 12:34:24.210408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-55970-12hn8mw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55970-r8m3j6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-55970-1hxkdn0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:37:15.422297"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:37:15.482452"], ["updated_at", "2017-01-25 12:37:15.482452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-56742-1m5snbt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56742-b1wchg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56742-1aoze7c.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:52:44.989639"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:52:45.045607"], ["updated_at", "2017-01-25 12:52:45.045607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-56805-1vif53t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56805-kmwsuv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56805-qyk0qy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:53:11.395729"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:53:11.446490"], ["updated_at", "2017-01-25 12:53:11.446490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-56855-yk96zs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56855-1o36cqp.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56855-e3faao.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:53:47.618070"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:53:47.669388"], ["updated_at", "2017-01-25 12:53:47.669388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-56924-1fryug' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56924-108mgcp.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56924-1og5e3y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:54:41.763514"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:54:41.808489"], ["updated_at", "2017-01-25 12:54:41.808489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-56966-18vifgq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56966-9z996i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56966-dtmy85.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:55:02.429630"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:55:02.477695"], ["updated_at", "2017-01-25 12:55:02.477695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-56998-1jj7yqr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56998-c3c091.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-56998-z5xcx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:55:13.231728"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:55:13.279655"], ["updated_at", "2017-01-25 12:55:13.279655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57039-ozt0n3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57039-13cfy38.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57039-1dk6pfc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:55:27.947771"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:55:27.993208"], ["updated_at", "2017-01-25 12:55:27.993208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57076-1dx8jg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57076-r5pqvm.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57076-14iaerg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:55:37.246193"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:55:37.292062"], ["updated_at", "2017-01-25 12:55:37.292062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57116-1jd3za' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57116-eg1gd6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57116-1founo6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:56:19.377097"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:56:19.425758"], ["updated_at", "2017-01-25 12:56:19.425758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57162-5ygo66' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57162-183ehlq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57162-14qoelo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:56:46.072913"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:56:46.117963"], ["updated_at", "2017-01-25 12:56:46.117963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57214-lh3koc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57214-4j9sbc.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57214-1rzyt8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:57:20.535314"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:57:20.580228"], ["updated_at", "2017-01-25 12:57:20.580228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57261-monpt5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57261-1aoi06y.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57261-3q9omn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:57:49.344328"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:57:49.396888"], ["updated_at", "2017-01-25 12:57:49.396888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57299-9sqxdh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57299-1mh9c93.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57299-7w5905.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:58:04.690066"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:58:04.738391"], ["updated_at", "2017-01-25 12:58:04.738391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57334-rgq903' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57334-jfmpmv.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57334-1b8o6pi.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:58:16.253668"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:58:16.299870"], ["updated_at", "2017-01-25 12:58:16.299870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57381-vwxvsu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57381-1iyv8yk.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57381-1h2nsxl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:58:35.208764"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:58:35.254033"], ["updated_at", "2017-01-25 12:58:35.254033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57398-xjdaqo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57398-1txedqf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57398-1jr4dz1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:58:39.798091"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:58:39.841508"], ["updated_at", "2017-01-25 12:58:39.841508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57449-1k042j5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57449-ecdjy1.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57449-1p2tuyy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:59:06.639665"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:59:06.686714"], ["updated_at", "2017-01-25 12:59:06.686714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57545-1x9u6fv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57545-1xs6g76.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57545-1s47zxf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 12:59:59.361999"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 12:59:59.418904"], ["updated_at", "2017-01-25 12:59:59.418904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57618-1kp7s43' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57618-1cy36ed.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57618-id1wwz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:00:40.670951"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:00:40.715233"], ["updated_at", "2017-01-25 13:00:40.715233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57696-2m056q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57696-tw7wcw.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57696-12amlff.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:01:38.023776"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:01:38.070232"], ["updated_at", "2017-01-25 13:01:38.070232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57745-x1rlat' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57745-8wi3xi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57745-187necn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:01:59.913023"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:01:59.967263"], ["updated_at", "2017-01-25 13:01:59.967263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57778-17bf6n8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57778-1wz1d2j.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57778-et95lx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:02:07.664930"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:02:07.709179"], ["updated_at", "2017-01-25 13:02:07.709179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57839-1xsqqrf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57839-1qxaug.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57839-7a34tx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:02:45.981896"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:02:46.026780"], ["updated_at", "2017-01-25 13:02:46.026780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57893-5b1e46' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57893-emz10q.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57893-1t51av7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:03:02.786797"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:03:02.831165"], ["updated_at", "2017-01-25 13:03:02.831165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57953-1mdveed' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57953-1b2jdqv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57953-1d23gtp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:03:21.246121"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:03:21.293098"], ["updated_at", "2017-01-25 13:03:21.293098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-57998-1btv44i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57998-1d1cfya.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-57998-1e6n9f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:03:40.259591"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:03:40.302115"], ["updated_at", "2017-01-25 13:03:40.302115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58027-plox06' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58027-w5m4d8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58027-cjr1ks.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:03:44.634635"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:03:44.684115"], ["updated_at", "2017-01-25 13:03:44.684115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58263-17kwzil' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58263-p0fdgz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58263-tlj81j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "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-01-25 13:06:51.471708"], ["source", "Company"], ["importable_type", "User"], ["importable_id", 1], ["created_at", "2017-01-25 13:06:51.525077"], ["updated_at", "2017-01-25 13:06:51.525077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.3ms) DROP TABLE "users" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170112125734"]]  (1.6ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.1ms) begin transaction  (0.2ms) DROP TABLE "importers" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145657"]]  (0.7ms) commit transaction Migrating to CreateCompanies (20170111145652)  (0.1ms) begin transaction  (0.2ms) DROP TABLE "companies" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145652"]]  (0.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (1.7ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "parser" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.7ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58651-x3257x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-1lxdlu8.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-15qv79r.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:12:44.905043"], ["source", "Company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:12:44.950835"], ["updated_at", "2017-01-25 13:12:44.950835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58651-59erb2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-1xnb9nd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-15t6em1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:12:44.975363"], ["source", "Company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:12:45.013358"], ["updated_at", "2017-01-25 13:12:45.013358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58651-1e74mvw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-1sr2bcb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-1vbimt3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:12:45.087887"], ["source", "Company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:12:45.120314"], ["updated_at", "2017-01-25 13:12:45.120314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58651-3yi8x0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-69famg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-1kqw4yi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:12:45.147215"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:12:45.180914"], ["updated_at", "2017-01-25 13:12:45.180914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58651-p7qpd9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-1161jl9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-16gstwd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:12:45.209144"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:12:45.245875"], ["updated_at", "2017-01-25 13:12:45.245875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58651-1vn3kaa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-1leu2nq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-j0x5d6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58651-10e0tv2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-1qtr1s0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58651-3ow9rk.csv'  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58878-1xo7fiz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-1gyvcms.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-1xnkqpd.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:18:49.715312"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:18:49.767658"], ["updated_at", "2017-01-25 13:18:49.767658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58878-15jkhce' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-fwm7xp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-dogs5d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:18:49.792908"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:18:49.823213"], ["updated_at", "2017-01-25 13:18:49.823213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58878-5uf9l5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-pm7bgc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-u9pdws.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:18:49.847103"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:18:49.879331"], ["updated_at", "2017-01-25 13:18:49.879331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58878-2iiuo7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-15wed7u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-zw6qnu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58878-1h9tdu4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-17sb9xf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-1bv9evg.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58878-1f37huj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-6lh457.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-1fgadzi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:18:50.068302"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:18:50.121631"], ["updated_at", "2017-01-25 13:18:50.121631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58878-83ixdg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-nwnjvo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58878-ggjfgc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:18:50.174054"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:18:50.205492"], ["updated_at", "2017-01-25 13:18:50.205492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58955-142xtsx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-13vqxo6.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-1uiqp0g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:19:35.268077"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:19:35.315830"], ["updated_at", "2017-01-25 13:19:35.315830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58955-1uuj9ax' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-1b2xk2h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-80ouqy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:19:35.339855"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:19:35.371679"], ["updated_at", "2017-01-25 13:19:35.371679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58955-1j1pqb2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-942b98.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-1kkzxbm.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:19:35.396026"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:19:35.426482"], ["updated_at", "2017-01-25 13:19:35.426482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58955-xcx0tb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-1k3cie1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-1imtt65.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:19:35.474701"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:19:35.507515"], ["updated_at", "2017-01-25 13:19:35.507515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58955-3zegyp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-cuf754.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-1wv7pji.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:19:35.558729"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:19:35.586840"], ["updated_at", "2017-01-25 13:19:35.586840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.5ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58955-iulvt9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-v8mhxi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-183bd05.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-58955-1mux7pw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-1ufihzq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-58955-1a9mb60.csv'  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59030-1u1b65x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-1ucffgp.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-vdzie2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:20:17.676822"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:20:17.726977"], ["updated_at", "2017-01-25 13:20:17.726977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59030-mkd9d6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-r2lyk2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-621qjl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:20:17.750967"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:20:17.781265"], ["updated_at", "2017-01-25 13:20:17.781265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59030-12kncno' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-9l1ssj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-vkng5q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59030-1ts00xh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-19f4yxu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-1tn9nj.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59030-6faohu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-df6uxe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-yhup2x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:20:17.972211"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:20:18.004764"], ["updated_at", "2017-01-25 13:20:18.004764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59030-1xk2zlj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-gj37c6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-1hwxbxy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:20:18.030457"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:20:18.064358"], ["updated_at", "2017-01-25 13:20:18.064358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59030-a1rlfn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-1m5dskj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59030-1gqe4cy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:20:18.130511"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:20:18.162425"], ["updated_at", "2017-01-25 13:20:18.162425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59130-5c1e27' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-1etbpbg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-1cqvj15.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:22:14.108290"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:22:14.153166"], ["updated_at", "2017-01-25 13:22:14.153166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59130-1uitvdu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-1193uuf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-1b1dzh9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:22:14.176547"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:22:14.207674"], ["updated_at", "2017-01-25 13:22:14.207674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59130-1bee4m0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-ghwuuz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-ple6n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:22:14.230873"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:22:14.265886"], ["updated_at", "2017-01-25 13:22:14.265886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59130-tsalpo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-1vk8sdy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-k1ysi5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:22:14.335336"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:22:14.367420"], ["updated_at", "2017-01-25 13:22:14.367420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59130-19hiifd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-1qa6uuf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-xymzx0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:22:14.392625"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:22:14.426500"], ["updated_at", "2017-01-25 13:22:14.426500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-59130-u0sw4u'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59130-1l8omiz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-g7un0j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-1r4cel5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59130-daikqu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-1w5uwdr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59130-1mkj88d.csv'  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59259-1l4jizd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-1ryc5tq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-1mw9nic.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:23:51.047739"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:23:51.097345"], ["updated_at", "2017-01-25 13:23:51.097345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59259-1ty3gl7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-1tv9kfc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-1gu5j6i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:23:51.120637"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:23:51.151543"], ["updated_at", "2017-01-25 13:23:51.151543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59259-1mfq2gg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-15mzth.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-u6doo8.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:23:51.175120"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:23:51.208478"], ["updated_at", "2017-01-25 13:23:51.208478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59259-bm5o7i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-1ypio0e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-18zkl04.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:23:51.257965"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:23:51.289668"], ["updated_at", "2017-01-25 13:23:51.289668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59259-1tasqes' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-a6hofz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-dltntt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:23:51.336226"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:23:51.366162"], ["updated_at", "2017-01-25 13:23:51.366162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-59259-1ye461x'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59259-jspf8r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-1u0ls8u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-1djhy4m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59259-1366gd2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-4gsxn5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59259-gm63ly.csv'  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59370-ldr38e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-1fulvcr.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-16pyovo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:25:07.598044"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:25:07.644630"], ["updated_at", "2017-01-25 13:25:07.644630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59370-bvkix9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-ho8n5g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-l2tim7.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:25:07.668467"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:25:07.698525"], ["updated_at", "2017-01-25 13:25:07.698525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59370-11cutu6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-au64xw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-1iwdzgg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:25:07.759096"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:25:07.793418"], ["updated_at", "2017-01-25 13:25:07.793418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59370-mj8vhl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-drmfpy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-1o5g99w.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:25:07.823162"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:25:07.858009"], ["updated_at", "2017-01-25 13:25:07.858009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59370-1qb4p0a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-l0bheg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-1qzdk4x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:25:07.885051"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:25:07.917222"], ["updated_at", "2017-01-25 13:25:07.917222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-59370-4y5mo0'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59370-n9uddh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-10321a4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-cfhbvf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59370-tbgwfu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-c2wvpn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59370-6w835g.csv'  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59470-135un5w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59470-5dzdt1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59470-147nxzz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:07.502092"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:07.550432"], ["updated_at", "2017-01-25 13:26:07.550432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59470-1fxyjwa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59470-11nky1r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59470-1kinb78.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:07.576735"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:07.609094"], ["updated_at", "2017-01-25 13:26:07.609094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.5ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59493-7yage4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-pn9vs1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-1i7q7tb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:16.932983"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:16.981669"], ["updated_at", "2017-01-25 13:26:16.981669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59493-mpdtsu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-10byrkg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-bzn39x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:17.006869"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:17.040720"], ["updated_at", "2017-01-25 13:26:17.040720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-59493-15e2uwo'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59493-37v074' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-qn0vqi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-54pivh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59493-6bbuw7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-1x4d4xa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-12089f7.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59493-1czz6jf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-1p6npau.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-1whkzro.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:17.269757"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:17.305099"], ["updated_at", "2017-01-25 13:26:17.305099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59493-1fyx922' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-19omd3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-1sjoq5n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:17.338760"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:17.371753"], ["updated_at", "2017-01-25 13:26:17.371753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59493-6x0vsl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-bnzgov.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59493-1e4ga49.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:17.411855"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:17.456053"], ["updated_at", "2017-01-25 13:26:17.456053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59566-1y97mea' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-1k32fmx.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-rfikvn.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:55.339975"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:55.392568"], ["updated_at", "2017-01-25 13:26:55.392568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-59566-1is8ddj'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59566-1ok40m1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-555xed.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-l6btgr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59566-1m71drz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-ywafwc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-l5lvjh.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59566-1dgresp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-eysago.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-128rb7g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:55.561375"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:55.594015"], ["updated_at", "2017-01-25 13:26:55.594015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59566-1n3mzxb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-6lxi8z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-or8qpi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:55.618096"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:55.649233"], ["updated_at", "2017-01-25 13:26:55.649233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59566-emvt0s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-llk7i0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-md9t7b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:55.724161"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:55.759598"], ["updated_at", "2017-01-25 13:26:55.759598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59566-mgr8l0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-ckcr0a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59566-19cttrm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:26:55.790274"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:26:55.822865"], ["updated_at", "2017-01-25 13:26:55.822865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59623-arvmbe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-fjbi8y.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-1pvkspb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:10.041732"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:10.095184"], ["updated_at", "2017-01-25 13:27:10.095184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59623-zbq4z4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-da2r25.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-18dt22v.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:10.122423"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:10.153323"], ["updated_at", "2017-01-25 13:27:10.153323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59623-z8nxxf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-1ogkns9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-1582gt9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:10.216560"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:10.249208"], ["updated_at", "2017-01-25 13:27:10.249208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59623-1b6vqlh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-1rlcboo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-1etnfsl.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:10.280198"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:10.312609"], ["updated_at", "2017-01-25 13:27:10.312609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-59623-s2y7qm'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59623-v4wowk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-jz3g7x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-mhd5i6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59623-1lyfh6w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-tpa2gy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-e290kh.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59623-1h4531r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-1vceq31.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59623-m5ktfm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:10.502172"], ["source", "company"], ["importable_type", "User"], ["parser", "class"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:10.544293"], ["updated_at", "2017-01-25 13:27:10.544293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59688-o1rcmr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-1phboxk.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-17bfpz2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:27.026487"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:27.074963"], ["updated_at", "2017-01-25 13:27:27.074963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59688-wb4h8k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-1r7t7wa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-1rqzvu1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:27.097770"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:27.128324"], ["updated_at", "2017-01-25 13:27:27.128324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59688-pdmfik' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-1328iht.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-12rtn5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:27.190496"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:27.222691"], ["updated_at", "2017-01-25 13:27:27.222691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-59688-1mzeoh2'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59688-1phiq3i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-1o3hejx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-17l23d5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59688-1jxycko' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-102055m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-1rivkno.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59688-1ov8zfb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-84f5uo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-1k4wt2d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:27.408811"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:27.447561"], ["updated_at", "2017-01-25 13:27:27.447561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59688-6hv94l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-1vk7zit.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59688-hxaovg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:27:27.483740"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 13:27:27.518183"], ["updated_at", "2017-01-25 13:27:27.518183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59773-vxz4uj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59773-d5raqh.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59773-ab9byg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:28:29.209858"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:28:29.256476"], ["updated_at", "2017-01-25 13:28:29.256476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59773-o0yok6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59773-tbcnty.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59773-uhy0wk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:28:29.281073"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:28:29.312425"], ["updated_at", "2017-01-25 13:28:29.312425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59824-1f0prcw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59824-jk0ccr.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59824-1x0wti4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:29:03.679592"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:29:03.728862"], ["updated_at", "2017-01-25 13:29:03.728862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59824-1m5ab80' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59824-xt46do.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59824-1bm0m5r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:29:03.755064"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:29:03.785501"], ["updated_at", "2017-01-25 13:29:03.785501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59922-4hbnly' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59922-1okou57.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59922-y73kdp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:30:13.271097"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:30:13.321840"], ["updated_at", "2017-01-25 13:30:13.321840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-59922-1xc3v5t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59922-1ph55q4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-59922-1x39tqa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 13:30:13.347161"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 13:30:13.378543"], ["updated_at", "2017-01-25 13:30:13.378543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61669-1ntc4e9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61669-frh9dw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61669-1cl60o.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:33:39.985184"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:33:40.042020"], ["updated_at", "2017-01-25 14:33:40.042020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61669-cc5al4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61669-1vgnn9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61669-c229ew.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:33:40.067195"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:33:40.098385"], ["updated_at", "2017-01-25 14:33:40.098385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61721-ncbjpq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61721-1xutw7s.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61721-540o46.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:34:03.142018"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:34:03.197866"], ["updated_at", "2017-01-25 14:34:03.197866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61721-1gznxdp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61721-14q6j45.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61721-3y4wf6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:34:03.226482"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:34:03.266858"], ["updated_at", "2017-01-25 14:34:03.266858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61761-phnhp9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-zxb22b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-xtmtnw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:34:12.740892"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:34:12.791915"], ["updated_at", "2017-01-25 14:34:12.791915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61761-14hmybp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-1g2ufqp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-1llqls0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:34:12.816672"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:34:12.848243"], ["updated_at", "2017-01-25 14:34:12.848243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61761-8b9mcp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-1jenn80.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-1b94a6c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:34:12.877819"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 14:34:12.906022"], ["updated_at", "2017-01-25 14:34:12.906022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61761-1o6d1jb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-cp4ue8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-qdiwc9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:34:12.978706"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:34:13.010759"], ["updated_at", "2017-01-25 14:34:13.010759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-61761-1335eni'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61761-zkd40d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-1um5ir2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-x2j5kc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61761-1dv28zk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-1dlifv5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-1ye6fgh.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61761-9f6809' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-arothw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61761-e7m9fc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:34:13.198283"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:34:13.229510"], ["updated_at", "2017-01-25 14:34:13.229510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61830-zj5fgx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-16cddqy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-1vnurgq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:35:01.208075"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:35:01.257622"], ["updated_at", "2017-01-25 14:35:01.257622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61830-1kaol11' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-iinxl8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-1g80kzf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:35:01.280962"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:35:01.310525"], ["updated_at", "2017-01-25 14:35:01.310525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61830-14s3817' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-1io3izd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-17wlzc1.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:35:01.333733"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:35:01.363897"], ["updated_at", "2017-01-25 14:35:01.363897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61830-9izcpf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-1p8bess.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-16x0lmu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:35:01.386917"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:35:01.422984"], ["updated_at", "2017-01-25 14:35:01.422984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61830-1g9h44h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-c7up1m.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-61830-lkcjwp'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61830-1ctcr5h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-1s9g390.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-64clb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61830-4g0t84' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-1w4p8wd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61830-16oxjbd.csv'  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61934-mjapvy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-7sltl.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-1dheiin.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:36:56.676469"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:36:56.723849"], ["updated_at", "2017-01-25 14:36:56.723849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61934-ps5z4g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-9pc84q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-ohjqwn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:36:56.748962"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:36:56.781618"], ["updated_at", "2017-01-25 14:36:56.781618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61934-d8wrbl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-1yhekkf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-ogsct4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:36:56.808273"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 14:36:56.839940"], ["updated_at", "2017-01-25 14:36:56.839940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61934-1x3sa3z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-19983ee.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-j9cs97.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:36:56.862642"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:36:56.897269"], ["updated_at", "2017-01-25 14:36:56.897269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61934-oktu8f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-p0gx74.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-hp9k3c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 14:36:56.920677"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 14:36:56.950695"], ["updated_at", "2017-01-25 14:36:56.950695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-61934-ezdtoa'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61934-zblebz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-1ciq2n2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-19gelgo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-61934-w2qts7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-4ztiio.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-61934-v3eke5.csv'  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-10uoest' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-5xz61g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-12epezo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:40.068838"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:40.124707"], ["updated_at", "2017-01-25 16:28:40.124707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-1c8dr3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-wvkxdx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1xuds6n.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:40.210128"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:40.252161"], ["updated_at", "2017-01-25 16:28:40.252161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 21ms (Views: 13.8ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 13ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-s5d94e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-19esop3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-12shkev.csv' 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-01-25 16:28:40.327222"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company"], ["created_at", "2017-01-25 16:28:40.355666"], ["updated_at", "2017-01-25 16:28:40.355666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-1ie832' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-cakcjd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-ovpex5.csv' 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-01-25 16:28:40.394768"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company"], ["created_at", "2017-01-25 16:28:40.423546"], ["updated_at", "2017-01-25 16:28:40.423546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-1qvteph' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-yqrxe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-k6gj9z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:40.453284"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:40.486556"], ["updated_at", "2017-01-25 16:28:40.486556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-s9epnu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-19zh2sq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-9ufg9h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:40.522757"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:40.556915"], ["updated_at", "2017-01-25 16:28:40.556915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:28:40.565841"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-1407z96' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-e5i6it.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-juckgj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:40.589865"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:40.619487"], ["updated_at", "2017-01-25 16:28:40.619487"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:28:40.627921"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 50ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-1bafchv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-19ez5bl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-xnhen0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:40.696754"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:40.730999"], ["updated_at", "2017-01-25 16:28:40.730999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:28:40.740811"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-rhv3ar' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-2wtggs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-vhn5oo.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:40.769719"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:40.802163"], ["updated_at", "2017-01-25 16:28:40.802163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-64653-27br1z'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-1kra8mj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-pln8uh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1bqy338.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-58zhk8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1fgzjwi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1lrvi5x.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-16ctpl8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1169ngy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-d6jfvn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:40.987869"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.020210"], ["updated_at", "2017-01-25 16:28:41.020210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-1lopg23' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-cevkzs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1uyv74s.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:41.045999"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.082671"], ["updated_at", "2017-01-25 16:28:41.082671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-16mpn21' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-41mz9l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1iyyx8o.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:41.106438"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.139557"], ["updated_at", "2017-01-25 16:28:41.139557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-qjrcy7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-9qc3li.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1gcz8ps.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:41.162355"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.194862"], ["updated_at", "2017-01-25 16:28:41.194862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-72y3qv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-zmslyf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1bn6pgw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:41.250968"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.280761"], ["updated_at", "2017-01-25 16:28:41.280761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 16:28:41.288458"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-4stdd1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-ak4m3k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-6kedyj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:28:41.310027"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.340993"], ["updated_at", "2017-01-25 16:28:41.340993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-h1713u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-8edfl4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1kmcdaq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:28:41.424634"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.459136"], ["updated_at", "2017-01-25 16:28:41.459136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-64653-kbn362' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-64653-ei4qtl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-64653-11p9yon.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:28:41.496932"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.530043"], ["updated_at", "2017-01-25 16:28:41.530043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-1iwozn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1ugy7oj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-d5djm1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:28:41.562917"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.595603"], ["updated_at", "2017-01-25 16:28:41.595603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-w5mytz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1wpiyc6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-1xampmj.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:28:41.633478"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 2], ["created_at", "2017-01-25 16:28:41.663458"], ["updated_at", "2017-01-25 16:28:41.663458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64653-11h3r34' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-dj7o90.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64653-c1jrhb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:28:41.705842"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:28:41.740702"], ["updated_at", "2017-01-25 16:28:41.740702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-jlwa6f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-mhc4ok.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-lxznzq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:40.875549"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:40.921919"], ["updated_at", "2017-01-25 16:30:40.921919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-64854-r4kara' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-64854-22lrti.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-64854-xeah33.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:30:41.037500"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.071384"], ["updated_at", "2017-01-25 16:30:41.071384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1d5n7n7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-usoxoj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1u7b851.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:30:41.128896"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.162434"], ["updated_at", "2017-01-25 16:30:41.162434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1snl0sr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1fns5hp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1wwqwt4.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:30:41.208794"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 2], ["created_at", "2017-01-25 16:30:41.241664"], ["updated_at", "2017-01-25 16:30:41.241664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-4c8orv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1wk6lrj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-uogkas.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:30:41.288862"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.320914"], ["updated_at", "2017-01-25 16:30:41.320914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-10mvg9k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-pmrnpp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-199x6mw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:30:41.361525"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.395831"], ["updated_at", "2017-01-25 16:30:41.395831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1xe4arq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-pon4l6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-yw165f.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:41.437599"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.471080"], ["updated_at", "2017-01-25 16:30:41.471080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-64854-qd3w9m'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1ylhobc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-e0a0hw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-wds7x5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1514elo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1dimjo3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1eshlru.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1eghd03' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-11tk14y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1cdbfz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:41.646358"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.677368"], ["updated_at", "2017-01-25 16:30:41.677368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1eym457' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-4zqbgr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1uuqdrz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:41.700732"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.734880"], ["updated_at", "2017-01-25 16:30:41.734880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-iliphr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-ce2a25.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-9ua3me.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:41.760760"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.793293"], ["updated_at", "2017-01-25 16:30:41.793293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-amq6ty' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-p7fzpc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1qcm0xr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:41.846835"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.879568"], ["updated_at", "2017-01-25 16:30:41.879568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1x3viin' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-8zbk3y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-7twokv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:41.925118"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:41.955920"], ["updated_at", "2017-01-25 16:30:41.955920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1ghlomd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-19ymqxd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1o7afx5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:41.989247"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:42.020247"], ["updated_at", "2017-01-25 16:30:42.020247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1fmjyoe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1wo1irb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-a8tibg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:42.054895"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:42.088899"], ["updated_at", "2017-01-25 16:30:42.088899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:30:42.103805"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-10dmi8c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-13d7h3b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-dr1g60.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:42.128527"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:42.156869"], ["updated_at", "2017-01-25 16:30:42.156869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:30:42.167136"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-10cbccz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1r51aml.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1v69p7p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:42.194463"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:42.227081"], ["updated_at", "2017-01-25 16:30:42.227081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:30:42.235796"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-qx5gse' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1k539xv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-khtsvy.csv' 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-01-25 16:30:42.279128"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company"], ["created_at", "2017-01-25 16:30:42.309654"], ["updated_at", "2017-01-25 16:30:42.309654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-13vbm23' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-19int2l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-1dr0bbh.csv' 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-01-25 16:30:42.347261"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company"], ["created_at", "2017-01-25 16:30:42.377523"], ["updated_at", "2017-01-25 16:30:42.377523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-hz2mba' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-zm933u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-18zd0pi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:42.449650"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:42.481790"], ["updated_at", "2017-01-25 16:30:42.481790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-64854-1by1969' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-13k2gju.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-64854-nk8l6m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:30:42.507119"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:30:42.546660"], ["updated_at", "2017-01-25 16:30:42.546660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 16:30:42.553118"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (12.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65232-123yq04' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65232-9ux7gj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65232-z9io95.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:40:44.924539"], ["source", "company"], ["importable_type", "User"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:40:44.980566"], ["updated_at", "2017-01-25 16:40:44.980566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65232-i8w8tr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65232-5ptwqk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65232-powq2n.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:40:45.009500"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:40:45.043407"], ["updated_at", "2017-01-25 16:40:45.043407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65232-hgieq6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65232-lwu1zo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65232-1gkvcan.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:40:45.123146"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 2], ["created_at", "2017-01-25 16:40:45.156239"], ["updated_at", "2017-01-25 16:40:45.156239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65232-14b4ehp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65232-zsunq3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65232-qlu1la.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:40:45.208946"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company"], ["importable_id", 1], ["created_at", "2017-01-25 16:40:45.241618"], ["updated_at", "2017-01-25 16:40:45.241618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65441-1p0iit3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65441-zq17u7.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65441-9erm5g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:15.754323"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:15.804479"], ["updated_at", "2017-01-25 16:45:15.804479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65441-5xvmss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65441-ovtza6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65441-1xvaugw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:45:15.833782"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:15.865254"], ["updated_at", "2017-01-25 16:45:15.865254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65441-1gium00' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65441-46pd6q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65441-10v116z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:45:15.911799"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:15.947597"], ["updated_at", "2017-01-25 16:45:15.947597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65441-ccejmk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65441-wapmvp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65441-ooltkj.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:45:15.981405"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 16:45:16.012584"], ["updated_at", "2017-01-25 16:45:16.012584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (2.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-gwlkbg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-bhedsz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1u3t8rc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:29.252069"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:29.302087"], ["updated_at", "2017-01-25 16:45:29.302087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-65471-1poqo53'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-1k7goho' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-8yjhit.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1ew234b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-1hr0zr1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-9qeake.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1kl3gm7.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-uf9zm0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-9o5qqt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-fr8cuh.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:29.524838"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:29.555960"], ["updated_at", "2017-01-25 16:45:29.555960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-1i82pch' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1wxxkhq.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1373zzy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:29.589804"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:29.619037"], ["updated_at", "2017-01-25 16:45:29.619037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-kzvpbk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1bantic.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1w4eva2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:29.644206"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:29.679271"], ["updated_at", "2017-01-25 16:45:29.679271"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-131lhz7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-q9kio2.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-twrvec.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:29.704193"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:29.736336"], ["updated_at", "2017-01-25 16:45:29.736336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-65471-1ocfe1p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-65471-1l6xwd5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-65471-1sq1cqw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:45:29.827060"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:29.859371"], ["updated_at", "2017-01-25 16:45:29.859371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-65471-17j2vti.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/009de32f012fd6ce0946abcf572c1fc420170125-65471-rxoht0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/009de32f012fd6ce0946abcf572c1fc420170125-65471-vv5zte.csv' 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", "failures20170125-65471-17j2vti.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 16:45:29.912576"], ["updated_at", "2017-01-25 16:45:29.947183"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-6zlez9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1wgdsq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-h3wu9s.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:45:29.971862"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.008250"], ["updated_at", "2017-01-25 16:45:30.008250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 16:45:30.018108"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-1mk7mtj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-19ixar.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1it4asa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:45:30.041796"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.083803"], ["updated_at", "2017-01-25 16:45:30.083803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-yz97op' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-q1ekdx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-abxdgm.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:45:30.116705"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 16:45:30.146221"], ["updated_at", "2017-01-25 16:45:30.146221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-w2ss4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-v567jq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-17mm45q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:45:30.193006"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.234120"], ["updated_at", "2017-01-25 16:45:30.234120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-wyyp06' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1i9pvon.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1ry7uut.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:30.298420"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.341750"], ["updated_at", "2017-01-25 16:45:30.341750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-1a6urat' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1wxf7qt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1nd71pp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:30.393154"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.429487"], ["updated_at", "2017-01-25 16:45:30.429487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:45:30.438688"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 28ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-1gembsl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1efy5pw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-jve8y6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:30.485005"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.517642"], ["updated_at", "2017-01-25 16:45:30.517642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:45:30.526608"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-3wqmia' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-120j04r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1fco9h5.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:30.551237"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.583861"], ["updated_at", "2017-01-25 16:45:30.583861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:45:30.593113"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 15ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-gvtshm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1sukuhz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-157rbpr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:30.628966"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.662962"], ["updated_at", "2017-01-25 16:45:30.662962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-16hv8nc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-ru3fvj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-12qmj5z.csv' 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-01-25 16:45:30.709626"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 16:45:30.740013"], ["updated_at", "2017-01-25 16:45:30.740013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms) Importer Load (0.4ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-nmg7mk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-121jxi4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1fpuymn.csv' 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-01-25 16:45:30.779739"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 16:45:30.807729"], ["updated_at", "2017-01-25 16:45:30.807729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-q911l7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-ad9v25.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1i3scre.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:30.839177"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.872016"], ["updated_at", "2017-01-25 16:45:30.872016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-1ovpiec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-qiax7s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-1b9f7wa.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:30.924470"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:30.970284"], ["updated_at", "2017-01-25 16:45:30.970284"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65471-1m39hun' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-o98ujr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65471-dvhvl2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:45:30.998910"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:45:31.032986"], ["updated_at", "2017-01-25 16:45:31.032986"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 16:45:31.039289"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-sa5nnv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-od7zim.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1wjulef.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:17.603886"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:17.655618"], ["updated_at", "2017-01-25 16:50:17.655618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-134ad1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1rysad4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1k1dbyn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:17.687264"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:17.718482"], ["updated_at", "2017-01-25 16:50:17.718482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 16:50:17.746172"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1uftfiz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-qta67r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-17g0ewj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:17.767482"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:17.819093"], ["updated_at", "2017-01-25 16:50:17.819093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1t130t5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1niq0np.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-3sl3hn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:17.847553"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:17.882896"], ["updated_at", "2017-01-25 16:50:17.882896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1hisj1p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1suigsz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1jk0q9b.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:17.906901"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:17.944992"], ["updated_at", "2017-01-25 16:50:17.944992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1utop5z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-ekncxn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1ltlzzn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:17.970945"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:18.002946"], ["updated_at", "2017-01-25 16:50:18.002946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-65694-osigsp'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1dvzay2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-6u5316.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-jysdas.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1786i3t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-b4vqqt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1bkykyl.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-14rl1te' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-o6q9uj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-9f8olb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:18.175423"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:18.206890"], ["updated_at", "2017-01-25 16:50:18.206890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1iup85d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1stj7um.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1pl5p6x.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:50:18.315285"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:18.351420"], ["updated_at", "2017-01-25 16:50:18.351420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1fov1d0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-evuf7e.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1wwmqen.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:50:18.393809"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:18.427625"], ["updated_at", "2017-01-25 16:50:18.427625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1w285b0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-hi8iz3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-2e2t7e.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:50:18.464354"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 16:50:18.499806"], ["updated_at", "2017-01-25 16:50:18.499806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-de1j3c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-13bjbi6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-o7obps.csv' 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-01-25 16:50:18.648099"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 16:50:18.679487"], ["updated_at", "2017-01-25 16:50:18.679487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.5ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1y7a8y1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1k75tzx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1q1e5w1.csv' 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-01-25 16:50:18.728389"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 16:50:18.765275"], ["updated_at", "2017-01-25 16:50:18.765275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 74ms (ActiveRecord: 0.6ms)  (0.5ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-1uwdqei' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1ybd8vm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-mziske.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:18.803692"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:18.841698"], ["updated_at", "2017-01-25 16:50:18.841698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 17ms (Views: 15.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-156oxd2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-5ukfen.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-ljht1a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:18.892957"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:18.934068"], ["updated_at", "2017-01-25 16:50:18.934068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-6rg3b8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1a5elyg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-1oysahj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:18.973510"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:19.007042"], ["updated_at", "2017-01-25 16:50:19.007042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:50:19.019043"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-13qp0f2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-a8lwkm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-7lci5u.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:19.046994"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:19.082803"], ["updated_at", "2017-01-25 16:50:19.082803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:50:19.093301"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 45ms (ActiveRecord: 0.2ms)  (1.4ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-rq3k0i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-zf7muk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-19x8m5s.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:19.195674"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:19.237867"], ["updated_at", "2017-01-25 16:50:19.237867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 16:50:19.263804"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 20ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-7kq1dv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-6xgclo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-ak5m3e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 16:50:19.311271"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:19.346266"], ["updated_at", "2017-01-25 16:50:19.346266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 9ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-65694-14zlpzg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-65694-5t9mxq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-65694-1jbl9qx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:50:19.391993"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:19.427712"], ["updated_at", "2017-01-25 16:50:19.427712"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-65694-1kptcuq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/092d6fb64c6f092bc19f568bda52551920170125-65694-2ivjdr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/092d6fb64c6f092bc19f568bda52551920170125-65694-1w7gxe.csv' 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", "failures20170125-65694-1kptcuq.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 16:50:19.469979"], ["updated_at", "2017-01-25 16:50:19.503371"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-65694-co9fyb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-lrlz5h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-65694-4x527f.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 16:50:19.545717"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 16:50:19.582588"], ["updated_at", "2017-01-25 16:50:19.582588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 16:50:19.593780"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-2g1es7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1j4v50w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-13sj3y8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:52.616364"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:52.671851"], ["updated_at", "2017-01-25 17:00:52.671851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-1ycapwj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-10crmgu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1e3lg3i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:00:52.732165"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:52.768260"], ["updated_at", "2017-01-25 17:00:52.768260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-1hvh16n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-tq6ipx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-quj6ge.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:00:52.834411"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:00:52.867078"], ["updated_at", "2017-01-25 17:00:52.867078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-1sk2w4f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-qal341.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-i67d2i.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:00:52.917515"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:52.952429"], ["updated_at", "2017-01-25 17:00:52.952429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-66245-k3ukwb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66245-14hqbu7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66245-wcimd1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:00:52.988984"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.020541"], ["updated_at", "2017-01-25 17:00:53.020541"]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-66245-crezgc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/145ebd7de8d18994de174cb3eb5601db20170125-66245-16247tc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/145ebd7de8d18994de174cb3eb5601db20170125-66245-gsukvx.csv' 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", "failures20170125-66245-crezgc.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:00:53.071952"], ["updated_at", "2017-01-25 17:00:53.098640"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-117jacq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-ozxwt6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-x3crmq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:00:53.126491"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.158560"], ["updated_at", "2017-01-25 17:00:53.158560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:00:53.171059"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-1cjmxqo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1737euh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-142kpdm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:53.293597"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.322739"], ["updated_at", "2017-01-25 17:00:53.322739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-11c925x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-14q5f2w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-35y1jq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:53.344981"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.377143"], ["updated_at", "2017-01-25 17:00:53.377143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:00:53.382553"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-1xqq59p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-ftroc1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-19wavwo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:53.427810"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.462575"], ["updated_at", "2017-01-25 17:00:53.462575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-1jfzt77' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-35dsr5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-wnflkg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:53.508351"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.541137"], ["updated_at", "2017-01-25 17:00:53.541137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-2amsh4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-3vh5wz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-10imve2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:53.577773"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.610654"], ["updated_at", "2017-01-25 17:00:53.610654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:00:53.620589"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 15ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-1etdt5a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1t971kl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1p8ulca.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:53.653093"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.684638"], ["updated_at", "2017-01-25 17:00:53.684638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:00:53.695034"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-1iiotdp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1wjqeqx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-vafmvh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:53.722794"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.756891"], ["updated_at", "2017-01-25 17:00:53.756891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:00:53.766392"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-8mq7zp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-riszj6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1rgwtub.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:53.793549"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:53.828080"], ["updated_at", "2017-01-25 17:00:53.828080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-5dzgk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-239qig.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-bru3zc.csv' 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-01-25 17:00:53.876789"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:00:53.906185"], ["updated_at", "2017-01-25 17:00:53.906185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.6ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-jsadfu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-h8umuc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-wluv15.csv' 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-01-25 17:00:53.943668"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:00:53.970537"], ["updated_at", "2017-01-25 17:00:53.970537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 51ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-prhzx1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1hghmbp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-hw0r8y.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:54.023673"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:54.059343"], ["updated_at", "2017-01-25 17:00:54.059343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-3jykbr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-13bnln2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1mz5rdd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:54.083572"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:54.117685"], ["updated_at", "2017-01-25 17:00:54.117685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-14u26j5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1crc73l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-um6vl6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:54.140762"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:54.172706"], ["updated_at", "2017-01-25 17:00:54.172706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-66245-3ib93m'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-1t4x3o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-1efo8yp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-i3jpg4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-tt5435' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-dtmqka.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-bcdiqb.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66245-is82mu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-7jqfpt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66245-aovue8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:00:54.343140"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:00:54.376759"], ["updated_at", "2017-01-25 17:00:54.376759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-1t3atof' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-wwn0x8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-wiirdh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:24.472492"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:24.524143"], ["updated_at", "2017-01-25 17:02:24.524143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-18qivoo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1kovfi0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-14xq70t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:24.551047"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:24.585374"], ["updated_at", "2017-01-25 17:02:24.585374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:02:24.611837"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-66415-168k214' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66415-1id6x3h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66415-1mrcjpj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:24.640336"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:24.688810"], ["updated_at", "2017-01-25 17:02:24.688810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-66415-1krzmy1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f7edcb095ec7c332ac32ff604a95650c20170125-66415-5jbjcf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f7edcb095ec7c332ac32ff604a95650c20170125-66415-kzeqw1.csv' 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", "failures20170125-66415-1krzmy1.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:02:24.731340"], ["updated_at", "2017-01-25 17:02:24.759078"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-11my3xv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-vzrlh0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1v3g2it.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:24.802611"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:24.838350"], ["updated_at", "2017-01-25 17:02:24.838350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 14ms (Views: 13.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-9kmuxa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-lg210l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-6lbc4q.csv' 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-01-25 17:02:24.900675"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:02:24.933225"], ["updated_at", "2017-01-25 17:02:24.933225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-1wlhzv2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-qsxjcp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1csmhjm.csv' 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-01-25 17:02:24.970391"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:02:25.002315"], ["updated_at", "2017-01-25 17:02:25.002315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-dck0c8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-f91nfm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-12zakt3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:25.033427"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.064025"], ["updated_at", "2017-01-25 17:02:25.064025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-vuzro9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-flh2bh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1godu60.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:25.094558"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.125968"], ["updated_at", "2017-01-25 17:02:25.125968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-if5cpi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-17x8sx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-11at7t.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:25.157946"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.190359"], ["updated_at", "2017-01-25 17:02:25.190359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:02:25.199193"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-okho89' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1nuabyo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1kpazey.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:25.227764"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.261408"], ["updated_at", "2017-01-25 17:02:25.261408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:02:25.270641"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-fmcuhu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-50qr32.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1p7rpqv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:25.299019"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.331193"], ["updated_at", "2017-01-25 17:02:25.331193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:02:25.340405"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-1iacaoa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-s4mnz0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-11eouuz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:25.388200"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.422863"], ["updated_at", "2017-01-25 17:02:25.422863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-66415-eqv25r'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-1b3yl40' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-agf163.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1gtqebq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-1qz958f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-9ruqty.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-z4faaw.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-1yevz99' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-cw7do7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1xqf8wd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:25.581507"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.613276"], ["updated_at", "2017-01-25 17:02:25.613276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-bv1hod' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-hcedp8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-32o85m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:25.682805"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.716438"], ["updated_at", "2017-01-25 17:02:25.716438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-o7t73o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1y1rzxi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1vy37ni.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:25.744328"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.775778"], ["updated_at", "2017-01-25 17:02:25.775778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-173cq2q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1w3rtq7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-n8wmdv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:25.851583"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.884550"], ["updated_at", "2017-01-25 17:02:25.884550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-15en4hk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-qhk56j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-hngqeo.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:25.923669"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:25.958252"], ["updated_at", "2017-01-25 17:02:25.958252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-39fifi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1rpcakk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-10qxta4.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:25.994298"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:02:26.027269"], ["updated_at", "2017-01-25 17:02:26.027269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-1f7j3yp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1ocu5or.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-25ll3y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:26.085183"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:26.117258"], ["updated_at", "2017-01-25 17:02:26.117258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 17:02:26.124097"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66415-unj616' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1skee7f.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66415-1hlf18.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:26.146528"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:26.181905"], ["updated_at", "2017-01-25 17:02:26.181905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-ijv8n0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1ksh92j.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-19u15k7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:42.903042"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:42.953033"], ["updated_at", "2017-01-25 17:02:42.953033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-on2rfb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1bdmkfo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-qe3cj1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:42.998148"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:43.031168"], ["updated_at", "2017-01-25 17:02:43.031168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 22ms (Views: 16.2ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-1fjyq3i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-o1dzbf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1dcf1sr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:43.086757"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:43.122513"], ["updated_at", "2017-01-25 17:02:43.122513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:02:43.131825"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 36ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-1rs6m0w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-at52kb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1sgyalx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:43.188723"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:43.221002"], ["updated_at", "2017-01-25 17:02:43.221002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:02:43.229696"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-1co71hg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-7awtdr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-sltdel.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:43.257699"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:43.292040"], ["updated_at", "2017-01-25 17:02:43.292040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:02:43.305985"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-ct8puf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-w1nawq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-qzt6qc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:43.331856"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:43.368300"], ["updated_at", "2017-01-25 17:02:43.368300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-nzd5b5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-115ol5j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1dptd94.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:43.415114"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:43.449087"], ["updated_at", "2017-01-25 17:02:43.449087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-2jqdza' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-13tbhmj.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-19yf40q.csv' 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-01-25 17:02:43.492914"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:02:43.525599"], ["updated_at", "2017-01-25 17:02:43.525599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.7ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-15y54ko' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-z8pns7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-exxdzl.csv' 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-01-25 17:02:43.574706"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:02:43.613031"], ["updated_at", "2017-01-25 17:02:43.613031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 70ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-66524-11huoc0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66524-1uum4ca.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66524-zohcp9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:43.646108"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:43.682087"], ["updated_at", "2017-01-25 17:02:43.682087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-66524-ndzegu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f34e6507192ae764e31501304c012a1820170125-66524-1usk7n.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f34e6507192ae764e31501304c012a1820170125-66524-mut3t.csv' 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", "failures20170125-66524-ndzegu.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:02:43.736168"], ["updated_at", "2017-01-25 17:02:43.768743"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-hjxkta' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-39dybi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1tdofgt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:43.798123"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:43.833631"], ["updated_at", "2017-01-25 17:02:43.833631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:02:43.845862"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-66524-i2ngn'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-s7d448' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1n719ez.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1hdxp6i.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-nms0oc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-xk809u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-18zkvrh.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-1owbrc9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-ugin77.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-pyltkv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:44.008030"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:44.041675"], ["updated_at", "2017-01-25 17:02:44.041675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-1atg4q5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-h73vig.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-18m0h6t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:44.112336"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:44.142289"], ["updated_at", "2017-01-25 17:02:44.142289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-nqukbb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1km5wud.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1aks6e5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:44.163451"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:44.195395"], ["updated_at", "2017-01-25 17:02:44.195395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-6ew82m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1580w6m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-k816g3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:44.223569"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:44.256961"], ["updated_at", "2017-01-25 17:02:44.256961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-g6w67i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-360aqm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-75ew53.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:44.281486"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:44.312041"], ["updated_at", "2017-01-25 17:02:44.312041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:02:44.317585"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-1iag0zq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1jamau4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-15jf343.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:02:44.339488"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:44.374839"], ["updated_at", "2017-01-25 17:02:44.374839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-net74y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-zqwhnz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1k9rsv8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:44.497346"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:44.532468"], ["updated_at", "2017-01-25 17:02:44.532468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-7kp22i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-133o9pf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-1wqfcqo.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:44.567373"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:02:44.608099"], ["updated_at", "2017-01-25 17:02:44.608099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66524-r56491' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-77ota8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66524-w90ohn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:02:44.654729"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:02:44.690644"], ["updated_at", "2017-01-25 17:02:44.690644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (1.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-dxpot6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-51f2lv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-9zvhvp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:44.256621"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:44.306170"], ["updated_at", "2017-01-25 17:03:44.306170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-tseesm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-13cuvam.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-s8ej39.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:44.333456"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:44.366542"], ["updated_at", "2017-01-25 17:03:44.366542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-8e43vl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1yj0h21.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1cyatrj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:44.414949"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:44.445033"], ["updated_at", "2017-01-25 17:03:44.445033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 32ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-6vtznl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-pgix2z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1h9puho.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:44.503033"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:44.538567"], ["updated_at", "2017-01-25 17:03:44.538567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:03:44.549961"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1i4ek96' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-14q8slp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1um45n8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:44.581036"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:44.615263"], ["updated_at", "2017-01-25 17:03:44.615263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:03:44.630326"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-7tn083' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-nzjmh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-ylf1me.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:44.659159"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:44.689826"], ["updated_at", "2017-01-25 17:03:44.689826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:03:44.698571"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 14ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1dg6d27' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-9sv7yb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-19hejdx.csv' 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-01-25 17:03:44.755483"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:03:44.787076"], ["updated_at", "2017-01-25 17:03:44.787076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-jvsw1v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-7ol7f7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-12iraxp.csv' 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-01-25 17:03:44.820901"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:03:44.849176"], ["updated_at", "2017-01-25 17:03:44.849176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1pfyxqm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-hd18p5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1naara5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:44.880963"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:44.910172"], ["updated_at", "2017-01-25 17:03:44.910172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1tzh3zs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1140ml4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-16jl8x0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:44.952001"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:44.983315"], ["updated_at", "2017-01-25 17:03:44.983315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:03:44.988768"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1fygtfs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-mf5jev.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-q3he3d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:45.010341"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:45.046341"], ["updated_at", "2017-01-25 17:03:45.046341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-h43hvu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1st4p3f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1n6bqs0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:03:45.081589"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:45.115344"], ["updated_at", "2017-01-25 17:03:45.115344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-89qjo2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-yfsp7x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-y6f1t0.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:03:45.163131"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:03:45.195345"], ["updated_at", "2017-01-25 17:03:45.195345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1t59xnj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-vn41bf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-y9qtxj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:03:45.244033"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:45.277267"], ["updated_at", "2017-01-25 17:03:45.277267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-vv9l8x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-wzmy4d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-xclnmz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:45.332963"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:45.365426"], ["updated_at", "2017-01-25 17:03:45.365426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-ceon64' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1w39zyl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-2epgpp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:45.430836"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:45.463583"], ["updated_at", "2017-01-25 17:03:45.463583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-66655-9euz5z'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1fmvql2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-16amx4j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1nl2a3p.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1fj3k28' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-10eb7h6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1av53qy.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1l5gogd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1ohc0o0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-oabgnp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:45.634261"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:45.666625"], ["updated_at", "2017-01-25 17:03:45.666625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-1j99sss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-1nmdbdv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-mnvxuc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:03:45.692092"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:45.724770"], ["updated_at", "2017-01-25 17:03:45.724770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-66655-rqi5f0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66655-1ve158l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66655-pn7iev.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:03:45.795597"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:45.831632"], ["updated_at", "2017-01-25 17:03:45.831632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-66655-pjqteu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f8b4de78cb9245589e23dc6895efa5ae20170125-66655-zyc5k5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f8b4de78cb9245589e23dc6895efa5ae20170125-66655-1sbzq9l.csv' 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", "failures20170125-66655-pjqteu.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:03:45.876567"], ["updated_at", "2017-01-25 17:03:45.907928"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66655-14t68tq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-n3wajk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66655-9i30kw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:03:45.936130"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:03:45.969552"], ["updated_at", "2017-01-25 17:03:45.969552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:03:45.994067"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.5ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-18fgtnt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1qzafc1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-4ihwml.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:18.902230"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:18.957125"], ["updated_at", "2017-01-25 17:05:18.957125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-66854-7oejpu'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1hwpfz3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-12l3kgv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1t6rr5s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1vmkh7b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-i67hhm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1rwe2gq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-p6chic' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-k9v2za.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1feu93p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:19.176519"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:19.210218"], ["updated_at", "2017-01-25 17:05:19.210218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1c0u5o5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-wov6mf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-7i8qnn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:19.278976"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:19.312947"], ["updated_at", "2017-01-25 17:05:19.312947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1on9p3h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1isdriv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1fwvmku.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:19.342156"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:19.377351"], ["updated_at", "2017-01-25 17:05:19.377351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-rf73ko' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1r8dfuf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-fjhbce.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:19.406531"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:19.439349"], ["updated_at", "2017-01-25 17:05:19.439349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1u20vtw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1qbya3k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-10t66kt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:05:19.485084"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:19.521112"], ["updated_at", "2017-01-25 17:05:19.521112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:05:19.539799"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-66854-1h3ilvc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66854-1mme4ls.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-66854-siu9l8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:05:19.567255"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:19.601066"], ["updated_at", "2017-01-25 17:05:19.601066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-66854-r2dyv2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/87b8036d735cc9fd0bcffe18167880ec20170125-66854-1umlept.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/87b8036d735cc9fd0bcffe18167880ec20170125-66854-1qhgo0v.csv' 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", "failures20170125-66854-r2dyv2.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:05:19.649127"], ["updated_at", "2017-01-25 17:05:19.681541"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1ri9gz5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-be6o86.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-ilitgs.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:19.805378"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:19.839499"], ["updated_at", "2017-01-25 17:05:19.839499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 17:05:19.844665"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1kkam2s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-cw9t9d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-8ik90u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:19.867493"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:19.901329"], ["updated_at", "2017-01-25 17:05:19.901329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-y7tkzo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-sw8az7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1pd3fvx.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:05:19.929284"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:05:19.965763"], ["updated_at", "2017-01-25 17:05:19.965763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.2ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-memhxj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-szwk0q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-tondn9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:05:20.014506"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:20.051944"], ["updated_at", "2017-01-25 17:05:20.051944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-8adjpl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-8slcr9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1sbup5u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:05:20.084945"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:20.119133"], ["updated_at", "2017-01-25 17:05:20.119133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-pcr5os' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1qb74m5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1b42p57.csv' 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-01-25 17:05:20.169215"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:05:20.199022"], ["updated_at", "2017-01-25 17:05:20.199022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-wxng2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-sv1dus.csv'  (0.5ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-lyk1w6.csv' 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-01-25 17:05:20.236727"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:05:20.268773"], ["updated_at", "2017-01-25 17:05:20.268773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-svi0lg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-u93nqo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-nhdxgv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:20.312435"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:20.344201"], ["updated_at", "2017-01-25 17:05:20.344201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:05:20.354982"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1o63bzu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-ph4lj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-17yr953.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:20.382976"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:20.415248"], ["updated_at", "2017-01-25 17:05:20.415248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:05:20.424128"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 22ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-aj92rk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-139jzla.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-192l227.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:20.465786"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:20.499612"], ["updated_at", "2017-01-25 17:05:20.499612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:05:20.508595"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1pwjc78' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1so9u34.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-10x7386.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:20.536481"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:20.570083"], ["updated_at", "2017-01-25 17:05:20.570083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 16ms (Views: 12.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-1vs3k5e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-4ikqyt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-1n8krzo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:20.616195"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:20.648846"], ["updated_at", "2017-01-25 17:05:20.648846"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-66854-nqmk7c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-r5xrqq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-66854-11zijtj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:05:20.693822"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:05:20.727658"], ["updated_at", "2017-01-25 17:05:20.727658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-sbzwmc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1jya0o5.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-a1n4ti.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:09.605696"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:09.653146"], ["updated_at", "2017-01-25 17:07:09.653146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-6vnw7g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1ns4b93.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-nv6d50.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:07:09.703876"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:09.736841"], ["updated_at", "2017-01-25 17:07:09.736841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:07:09.784078"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-67000-whogts' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-67000-ity71b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-67000-kxtq07.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:07:09.815302"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:09.848784"], ["updated_at", "2017-01-25 17:07:09.848784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-67000-1t9vfos.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1e59e54a0ef6b2caaae3bc2f45568d9620170125-67000-1w1p950.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1e59e54a0ef6b2caaae3bc2f45568d9620170125-67000-18y102.csv' 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", "failures20170125-67000-1t9vfos.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:07:09.892268"], ["updated_at", "2017-01-25 17:07:09.923647"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-1edxmbg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-6shj5c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-18xpi3m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:10.091134"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:10.131156"], ["updated_at", "2017-01-25 17:07:10.131156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-67000-7pyx6x'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-desgfm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-97m8pz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-6kdw8f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-12r4sn2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1qwkho7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-sdy4aj.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-1dr4s14' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-7gjk1z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1y7f84x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:10.327798"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:10.363887"], ["updated_at", "2017-01-25 17:07:10.363887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-1jpfih2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-6o1fo1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-9a7bea.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:10.389068"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:10.422780"], ["updated_at", "2017-01-25 17:07:10.422780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-1hgterp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1pbfyud.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1u48mnf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:10.446821"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:10.481498"], ["updated_at", "2017-01-25 17:07:10.481498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-1xupu2u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-mvrtp1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-hfdios.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:10.506227"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:10.544575"], ["updated_at", "2017-01-25 17:07:10.544575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:07:10.556055"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-ka1b4v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-13obr7k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-o12msa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:10.579378"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:10.612354"], ["updated_at", "2017-01-25 17:07:10.612354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-e6cm3w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-99we22.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-qr9t60.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:07:10.636884"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:10.670272"], ["updated_at", "2017-01-25 17:07:10.670272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-oh7ygd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1unt117.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-9b296o.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:07:10.706344"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:10.742148"], ["updated_at", "2017-01-25 17:07:10.742148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-1urdff2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-6yujj7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-mcnvf5.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:07:10.782346"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:07:10.821621"], ["updated_at", "2017-01-25 17:07:10.821621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-uwu1ol' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-g95cl5.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-nerjr6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:10.892974"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:10.927105"], ["updated_at", "2017-01-25 17:07:10.927105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:07:10.939192"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 23ms (ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-fqwyiz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1dq55zd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-16a3d2y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:10.983734"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:11.016730"], ["updated_at", "2017-01-25 17:07:11.016730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:07:11.028636"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-14qo2f9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-ebdw2w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1fpd1h2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:11.055061"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:11.091658"], ["updated_at", "2017-01-25 17:07:11.091658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:07:11.101594"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-mvekw9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-emm2vj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1wxevap.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:11.129817"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:11.163371"], ["updated_at", "2017-01-25 17:07:11.163371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 14.1ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-1cow0tl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1eqb3hi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1a6if4o.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:11.211236"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:11.245510"], ["updated_at", "2017-01-25 17:07:11.245510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-b7z67b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-1tn01yj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-z5dldi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:11.278676"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:11.313984"], ["updated_at", "2017-01-25 17:07:11.313984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-waxo2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-18eplnc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-k34vol.csv' 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-01-25 17:07:11.363931"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:07:11.397214"], ["updated_at", "2017-01-25 17:07:11.397214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.5ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.5ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67000-1afdhdx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-e3d1p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67000-5a6i6l.csv' 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-01-25 17:07:11.438567"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:07:11.469237"], ["updated_at", "2017-01-25 17:07:11.469237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67103-d0copn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67103-wm8k9s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67103-98rl1e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:48.865968"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:48.911718"], ["updated_at", "2017-01-25 17:07:48.911718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67103-qdik61' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67103-hqbzlc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67103-1ld4iy4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:07:48.935996"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:07:48.968080"], ["updated_at", "2017-01-25 17:07:48.968080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67175-17ozd9k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67175-lvu1u2.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67175-13t7ztz.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:08:40.292437"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:08:40.340893"], ["updated_at", "2017-01-25 17:08:40.340893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67175-1f6fx8i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67175-5uz0ez.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67175-19zznrb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:08:40.361867"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:08:40.394431"], ["updated_at", "2017-01-25 17:08:40.394431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67256-268m7k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67256-1bj2y6p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67256-seuwsl.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:09:53.608641"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:09:53.661642"], ["updated_at", "2017-01-25 17:09:53.661642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67256-145x0hl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67256-vvafgq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67256-1k5wuav.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:09:53.686646"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:09:53.719959"], ["updated_at", "2017-01-25 17:09:53.719959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67325-2wxytm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67325-t3trr4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67325-2iq6wj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:10:54.142317"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:10:54.202295"], ["updated_at", "2017-01-25 17:10:54.202295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67325-15tepam' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67325-1rx8b3e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67325-1g7mcur.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:10:54.223977"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:10:54.255751"], ["updated_at", "2017-01-25 17:10:54.255751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1bcc7je' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-o8pkdx.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1h0l2bu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:15.308915"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:15.362344"], ["updated_at", "2017-01-25 17:11:15.362344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1mw25a1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-9mreaw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1kfblxi.csv' SQL (2.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-25 17:11:15.438407"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:15.537486"], ["updated_at", "2017-01-25 17:11:15.537486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-67391-qqhios'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-f39a5w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-93ts70.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-jw88r0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1wfvn4g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-fi5sc4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-d57cf.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-o1n709' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1j6wiue.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-5y8iha.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:15.860962"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:15.893177"], ["updated_at", "2017-01-25 17:11:15.893177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-17u5x5z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-bqjfns.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1w9jtim.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:15.919033"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:15.956623"], ["updated_at", "2017-01-25 17:11:15.956623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-jpkfho' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-16uag64.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1j49dbv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:15.991206"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:16.026509"], ["updated_at", "2017-01-25 17:11:16.026509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1vho1h7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1t6gx7y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-c3q2xi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:16.103202"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:16.137647"], ["updated_at", "2017-01-25 17:11:16.137647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:11:16.157122"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-cnozmv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1ql96tt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-174ay3r.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:16.178398"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:16.215001"], ["updated_at", "2017-01-25 17:11:16.215001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-rjdrts' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-9dgrzg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1cqtew1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:11:16.247176"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:16.280364"], ["updated_at", "2017-01-25 17:11:16.280364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:11:16.295587"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-67391-tn1plg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-67391-wz3me2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-67391-1drjxdg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:11:16.319897"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:16.353721"], ["updated_at", "2017-01-25 17:11:16.353721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-67391-15d0sso.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/43ab68dc81c7094f11b72a94204000a620170125-67391-q5uhfh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/43ab68dc81c7094f11b72a94204000a620170125-67391-1a9ydzo.csv' 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", "failures20170125-67391-15d0sso.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:11:16.401919"], ["updated_at", "2017-01-25 17:11:16.434417"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1vhb70s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-vuc5r5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1geutvp.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:11:16.469165"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:11:16.503172"], ["updated_at", "2017-01-25 17:11:16.503172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1gv2skx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1374yoa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-q7uryc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:11:16.555247"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:16.590708"], ["updated_at", "2017-01-25 17:11:16.590708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1nezu75' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-134oreu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-qtaezo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:11:16.625359"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:16.660279"], ["updated_at", "2017-01-25 17:11:16.660279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-up34z3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-b4rewj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1hywbyo.csv' 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-01-25 17:11:16.716312"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:11:16.746523"], ["updated_at", "2017-01-25 17:11:16.746523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.6ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1cu5gt5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-fd1cib.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-w527fv.csv' 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-01-25 17:11:16.786479"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:11:16.816875"], ["updated_at", "2017-01-25 17:11:16.816875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1dij9ul' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-23rtnv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-13dcd0e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:16.847433"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:16.881961"], ["updated_at", "2017-01-25 17:11:16.881961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-aixfx7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-ua0mon.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-5ui3b0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:16.931114"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:16.964421"], ["updated_at", "2017-01-25 17:11:16.964421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-ugb602' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1ucpet5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-103j0r0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:16.999376"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:17.033754"], ["updated_at", "2017-01-25 17:11:17.033754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:11:17.042759"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1gc9tvd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1788690.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-31yu43.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:17.069540"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:17.102347"], ["updated_at", "2017-01-25 17:11:17.102347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:11:17.110771"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-1amh82u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1nknur0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-8pb90g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:17.142195"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:17.176007"], ["updated_at", "2017-01-25 17:11:17.176007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:11:17.186791"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67391-2sqlyi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-o8ni8w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67391-1fn7g1k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:11:17.214577"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:11:17.251346"], ["updated_at", "2017-01-25 17:11:17.251346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.2ms) DELETE FROM "users";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-lnczuc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1vp0gdr.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1qplkpi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:09.987051"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.036417"], ["updated_at", "2017-01-25 17:13:10.036417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-1wiv9yk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-of1dvt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1w9ut5c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:10.061417"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.092681"], ["updated_at", "2017-01-25 17:13:10.092681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:13:10.108160"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 21ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-1ylh7ak' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-lgfqqp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1xnrn7u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:10.148191"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.184544"], ["updated_at", "2017-01-25 17:13:10.184544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:13:10.217832"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-1q8mdl4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1e4eohh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-xn5m61.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:10.246427"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.278894"], ["updated_at", "2017-01-25 17:13:10.278894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:13:10.286800"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-1cdrzqg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-12xz77y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1iccttx.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:10.317007"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.348675"], ["updated_at", "2017-01-25 17:13:10.348675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 15.2ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-14rrp0h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1u3a0m2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-dgjoon.csv' 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-01-25 17:13:10.410819"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:13:10.444253"], ["updated_at", "2017-01-25 17:13:10.444253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-12uftlu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1timqr1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-teywia.csv' SQL (0.1ms) 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-01-25 17:13:10.486006"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:13:10.518454"], ["updated_at", "2017-01-25 17:13:10.518454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-nxn7v2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1jm7ltn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-mi7bhw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:10.547028"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.581824"], ["updated_at", "2017-01-25 17:13:10.581824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-d3jll1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1in2q8c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-19rx81r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:10.611246"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.643835"], ["updated_at", "2017-01-25 17:13:10.643835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-67538-cnzpfr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-67538-a60gqx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-67538-6to380.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:10.677809"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.711769"], ["updated_at", "2017-01-25 17:13:10.711769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-67538-1gbudl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a5b20d6798de6051973087c63837595120170125-67538-1egutcy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a5b20d6798de6051973087c63837595120170125-67538-9630uy.csv' 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", "failures20170125-67538-1gbudl.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:13:10.760682"], ["updated_at", "2017-01-25 17:13:10.791635"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-k9lvhq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-8y09xc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1ep716l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:10.821261"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.855617"], ["updated_at", "2017-01-25 17:13:10.855617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:13:10.864305"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-1kun22m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-nr6gzp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-fik3vx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:10.925708"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:10.957704"], ["updated_at", "2017-01-25 17:13:10.957704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-hi4t9z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1ajyzga.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-e96dt7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:10.983979"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:11.023187"], ["updated_at", "2017-01-25 17:13:11.023187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:13:11.027795"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-lbjveu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-t2553t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-agb4uu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:11.069750"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:11.102466"], ["updated_at", "2017-01-25 17:13:11.102466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-1pb16ns' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1psjmwz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1b1xb58.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:11.126808"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:11.158482"], ["updated_at", "2017-01-25 17:13:11.158482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-67538-1g0asa9'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-1mje7w2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1hyc3gg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-159dk3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-22z84x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1ah8p56.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-12u22fv.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-1kawyrt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-13pl52k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-iyr4fc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:11.325980"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:11.358305"], ["updated_at", "2017-01-25 17:13:11.358305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-cv87ri' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-sp5egi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1xbtj7j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:11.380353"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:11.411444"], ["updated_at", "2017-01-25 17:13:11.411444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-9fe01d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1gccpzx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-2hinjl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:11.438523"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:11.472119"], ["updated_at", "2017-01-25 17:13:11.472119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-13ues6u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-4cldn5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-1iqxh7c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:11.512853"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:11.556495"], ["updated_at", "2017-01-25 17:13:11.556495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67538-1ynv8y7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-yqslzr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67538-habiog.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:11.594381"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:13:11.627970"], ["updated_at", "2017-01-25 17:13:11.627970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.2ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-1tkfa65' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-xkttty.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1v8xvnt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:26.488970"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:26.538353"], ["updated_at", "2017-01-25 17:13:26.538353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-1ddgibd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-wwcfxt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-s601qn.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:26.574622"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:26.607717"], ["updated_at", "2017-01-25 17:13:26.607717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-f87pbu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-v5e9zt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-3af1zv.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:26.661297"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:13:26.693612"], ["updated_at", "2017-01-25 17:13:26.693612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.2ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-1tfug1v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-5j6t4x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-h669c0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:26.760432"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:26.793763"], ["updated_at", "2017-01-25 17:13:26.793763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.2ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-unifo9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1x2i05w.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-wpsqkw.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:26.842414"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:26.879389"], ["updated_at", "2017-01-25 17:13:26.879389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:13:26.898572"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-67640-1dffbf5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-67640-1wi3zpy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-67640-1cch866.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:13:26.925039"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:26.956280"], ["updated_at", "2017-01-25 17:13:26.956280"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-67640-p8dmlm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/043b0d35f0642b8f4bb83f260116610b20170125-67640-e7qd52.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/043b0d35f0642b8f4bb83f260116610b20170125-67640-a5rrcl.csv' 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", "failures20170125-67640-p8dmlm.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:13:26.999503"], ["updated_at", "2017-01-25 17:13:27.029888"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-v5z0jg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1fkuz4z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-pdwaxw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.054969"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:27.085727"], ["updated_at", "2017-01-25 17:13:27.085727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-uugev7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-sjicni.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-rekca5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.121018"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:27.151352"], ["updated_at", "2017-01-25 17:13:27.151352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:13:27.155875"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-67640-1ijk2zn'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-bd4p70' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-ji0jlx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1gbw5bk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-49gg4c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-p0z2cw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1jwgi1a.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-11rmmih' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-j09wki.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1p5pla7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.341214"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:27.374516"], ["updated_at", "2017-01-25 17:13:27.374516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-14xnbzu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-z49j3x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1szy52m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.401297"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:27.436099"], ["updated_at", "2017-01-25 17:13:27.436099"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-1n5ge4v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-sr7419.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-ign2nt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.461654"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:27.495887"], ["updated_at", "2017-01-25 17:13:27.495887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-151rmwn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-psslzq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1iud7o5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.523083"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:27.554772"], ["updated_at", "2017-01-25 17:13:27.554772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-136mwnh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-2bka8f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-3mlrnl.csv' 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-01-25 17:13:27.623051"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:13:27.652186"], ["updated_at", "2017-01-25 17:13:27.652186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-1yqohdi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1c06wep.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1lcc435.csv' 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-01-25 17:13:27.690020"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:13:27.720520"], ["updated_at", "2017-01-25 17:13:27.720520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-upzk7z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1i8r9sx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1ahx1he.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.765987"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:27.799675"], ["updated_at", "2017-01-25 17:13:27.799675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-1y3az29' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-4hcnly.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-fm4swi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.842680"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:27.875222"], ["updated_at", "2017-01-25 17:13:27.875222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-konc1b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1wnrntp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-udqw68.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.909428"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:27.941231"], ["updated_at", "2017-01-25 17:13:27.941231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-1idmmmv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-mws01d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1o2a32c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:27.974159"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:28.011476"], ["updated_at", "2017-01-25 17:13:28.011476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:13:28.021496"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 15ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-jbvmr7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-1ms4td0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-jo7a86.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:28.056444"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:28.089724"], ["updated_at", "2017-01-25 17:13:28.089724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:13:28.098424"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-67640-1w6fias' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-j81tsr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-67640-yntnc8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:13:28.125923"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:13:28.158680"], ["updated_at", "2017-01-25 17:13:28.158680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:13:28.168168"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-qsm6rx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-aidexe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-qaact2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:41.265925"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:41.321431"], ["updated_at", "2017-01-25 17:14:41.321431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-ioigj0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-17mp0og.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1f47lm6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:41.347573"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:41.380876"], ["updated_at", "2017-01-25 17:14:41.380876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 25ms (Views: 15.6ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-1f0cfjv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-immyeo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1qrg645.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:41.458488"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:41.492209"], ["updated_at", "2017-01-25 17:14:41.492209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:14:41.511305"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 23ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-1clt5vk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-10c9ttx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-18jn74x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:41.552841"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:41.586632"], ["updated_at", "2017-01-25 17:14:41.586632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:14:41.594790"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 14ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-1d90c9c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1qgy7wo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-3kl12f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:41.630152"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:41.662304"], ["updated_at", "2017-01-25 17:14:41.662304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:14:41.673607"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-rifa52' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-z7nccr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1m6vjqe.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:41.702684"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:41.736056"], ["updated_at", "2017-01-25 17:14:41.736056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-13nrojc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-j5m3wj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-vsa65w.csv' 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-01-25 17:14:41.785730"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:14:41.816941"], ["updated_at", "2017-01-25 17:14:41.816941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-rcjtao' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-yzqwqc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1rmd0af.csv' 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-01-25 17:14:41.861932"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:14:41.894200"], ["updated_at", "2017-01-25 17:14:41.894200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-j2st0w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-hwu78s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1g9gnt2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:41.924622"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:41.956614"], ["updated_at", "2017-01-25 17:14:41.956614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-19tl50j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1bc1950.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-13dfwg4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:41.989810"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.021980"], ["updated_at", "2017-01-25 17:14:42.021980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-a4x4cp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-13zf35l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1s70mnc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:42.047420"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.083332"], ["updated_at", "2017-01-25 17:14:42.083332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:14:42.089248"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-pggfpb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1m26cy9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-zg29py.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:14:42.112423"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.148396"], ["updated_at", "2017-01-25 17:14:42.148396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:14:42.162042"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-68349-ycazsz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-68349-1viij8b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-68349-qbu5ae.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:14:42.188157"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.223228"], ["updated_at", "2017-01-25 17:14:42.223228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-68349-ziyxe9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d8922475f1ab598d9ff4d8417e81239920170125-68349-1sy6d6m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d8922475f1ab598d9ff4d8417e81239920170125-68349-183l177.csv' 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", "failures20170125-68349-ziyxe9.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:14:42.265926"], ["updated_at", "2017-01-25 17:14:42.295296"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-68349-19zvw6t'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-1o7jndu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-u5mljg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-128f1px.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-ovk8jq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-101osv1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1d1cdsz.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-1ozajc1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-x5pgqi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-kocgrd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:42.462843"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.495230"], ["updated_at", "2017-01-25 17:14:42.495230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-13isni4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-du9z6o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-l2pvxl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:42.521076"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.555604"], ["updated_at", "2017-01-25 17:14:42.555604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-dy4ipf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1k7honx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-a38s15.csv' SQL (1.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:42.580668"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.615037"], ["updated_at", "2017-01-25 17:14:42.615037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-1m8ik1b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1k80ave.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1ea9s0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:14:42.644613"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.680849"], ["updated_at", "2017-01-25 17:14:42.680849"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-1qlgjpd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1bs7awn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-twivka.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:14:42.746014"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:14:42.782655"], ["updated_at", "2017-01-25 17:14:42.782655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-mz4w6k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1rj880g.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-1dfnbr6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:14:42.835086"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.869644"], ["updated_at", "2017-01-25 17:14:42.869644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68349-1kjs1b3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-131bp0x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68349-bmxxu2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:14:42.909280"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:14:42.943375"], ["updated_at", "2017-01-25 17:14:42.943375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-10knmvw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1b7o4z6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-hada95.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:40.500182"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:40.558940"], ["updated_at", "2017-01-25 17:17:40.558940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-68617-cmgv1z'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-4n09ni' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-fi0e2c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1yd146r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1s7mun2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1t7q215.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1j9mfty.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1n7w9zd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-19zer1x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-g0msi9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:40.787261"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:40.825005"], ["updated_at", "2017-01-25 17:17:40.825005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-147efxd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-hubc53.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-zn6nwz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:40.857944"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:40.892303"], ["updated_at", "2017-01-25 17:17:40.892303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1icls6p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-nqlkyr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-do98hq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:40.917652"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:40.950913"], ["updated_at", "2017-01-25 17:17:40.950913"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1giol3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1qjx0f9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1e6otu3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:40.978073"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.012341"], ["updated_at", "2017-01-25 17:17:41.012341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1a3m93c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-g5edmg.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-10nnbx9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:41.042749"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.075519"], ["updated_at", "2017-01-25 17:17:41.075519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:17:41.100437"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-6s6hvi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-12i8uzp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1xa2q16.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:41.130059"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.164975"], ["updated_at", "2017-01-25 17:17:41.164975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:17:41.173839"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1p69bgm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1ukftpu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-4ms853.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:41.203921"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.236423"], ["updated_at", "2017-01-25 17:17:41.236423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:17:41.246184"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1edcy4z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1oea2u3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-i130an.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:41.273614"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.306312"], ["updated_at", "2017-01-25 17:17:41.306312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 21ms (Views: 17.4ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-k7moz6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-9oe2jm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-ze4qmz.csv' 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-01-25 17:17:41.361755"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:17:41.391578"], ["updated_at", "2017-01-25 17:17:41.391578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-5ege53' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-qz10uk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-16n60qu.csv' 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-01-25 17:17:41.431078"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:17:41.461146"], ["updated_at", "2017-01-25 17:17:41.461146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-k4qv4t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-g7gwpl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-l7gt58.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:41.506824"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.540589"], ["updated_at", "2017-01-25 17:17:41.540589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1su2ldn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-krreze.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-10lsmit.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:41.573975"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.606093"], ["updated_at", "2017-01-25 17:17:41.606093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1b9zn0i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-oe0z3i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-18m2pu6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:41.682198"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.716225"], ["updated_at", "2017-01-25 17:17:41.716225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:17:41.721290"], ["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1qhgnjx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1q2dox3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-ofl60a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:17:41.743266"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.776919"], ["updated_at", "2017-01-25 17:17:41.776919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-iin1o0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1tgm4g6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-3y45ta.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:17:41.834057"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.867505"], ["updated_at", "2017-01-25 17:17:41.867505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:17:41.882643"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-68617-1vjvd0q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-68617-1sirpib.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-68617-bj54s2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:17:41.905497"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:41.940210"], ["updated_at", "2017-01-25 17:17:41.940210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-68617-14k1fap.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9c72f013842982e24d9e2cedd07ac52120170125-68617-zvzoxw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9c72f013842982e24d9e2cedd07ac52120170125-68617-1b4p8tz.csv' 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", "failures20170125-68617-14k1fap.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:17:41.989052"], ["updated_at", "2017-01-25 17:17:42.022881"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.5ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-8b3v5f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-nwee9z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-uwx3su.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:17:42.063838"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:42.099435"], ["updated_at", "2017-01-25 17:17:42.099435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.2ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1f68ve5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-1ysjeys.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-ftenew.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:17:42.135954"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:17:42.170089"], ["updated_at", "2017-01-25 17:17:42.170089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68617-1xfoya3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-172z09z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68617-kluwin.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:17:42.210590"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:17:42.242815"], ["updated_at", "2017-01-25 17:17:42.242815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-ydymgw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-196ltgd.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-2a8f7.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:34.485205"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:34.533366"], ["updated_at", "2017-01-25 17:18:34.533366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-68815-1d1nn6e'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-1nrwnd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1ttfdkw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-162djpo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-1lvyjz4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-14evk6f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1jca4lz.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-13b63ji' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-ybfakx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-pj1u08.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:34.785534"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:34.817961"], ["updated_at", "2017-01-25 17:18:34.817961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-uv70fo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-amwrqp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1mq2grc.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:34.842147"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:34.877412"], ["updated_at", "2017-01-25 17:18:34.877412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-uu554q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1hqgq3s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-imusld.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:34.907907"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:34.940349"], ["updated_at", "2017-01-25 17:18:34.940349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-15cislz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-11wmudq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-rdqpy7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:34.963135"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:34.998250"], ["updated_at", "2017-01-25 17:18:34.998250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-1eofmce' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-15184ts.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-6zc62i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:35.135184"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:35.167701"], ["updated_at", "2017-01-25 17:18:35.167701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:18:35.183189"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-68815-4ov31y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-68815-gfvw10.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-68815-c7dwor.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:35.207774"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:35.238626"], ["updated_at", "2017-01-25 17:18:35.238626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-68815-v1izav.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/daeec5767e98a900b35e446734b60a7220170125-68815-woge0d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/daeec5767e98a900b35e446734b60a7220170125-68815-1qkr2lj.csv' 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", "failures20170125-68815-v1izav.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:18:35.280187"], ["updated_at", "2017-01-25 17:18:35.310442"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-10monkn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-kjvjpm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-bwil8k.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:35.359327"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:35.393255"], ["updated_at", "2017-01-25 17:18:35.393255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-1ejnfsr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-xpri4c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-qgezfi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:35.430264"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:35.463074"], ["updated_at", "2017-01-25 17:18:35.463074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-1r59mw9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-jeth35.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-bstpmm.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:35.499616"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:18:35.535172"], ["updated_at", "2017-01-25 17:18:35.535172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-1nche6s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-nco8oo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1eez3bk.csv' SQL (1.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:35.617586"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:35.649207"], ["updated_at", "2017-01-25 17:18:35.649207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:18:35.666540"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.5ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-itjsxc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-15skzuz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-nu2mxr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:35.693534"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:35.725493"], ["updated_at", "2017-01-25 17:18:35.725493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:18:35.734386"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 14ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-rpq3vr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-pe5ye.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-lvnwgo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:35.771694"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:35.801254"], ["updated_at", "2017-01-25 17:18:35.801254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:18:35.811110"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-lrxkyi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-fusfo2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1o4b8p2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:35.838612"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:35.870144"], ["updated_at", "2017-01-25 17:18:35.870144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 15.4ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-xtfp30' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1c63tih.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1umnoy8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:35.914638"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:35.945433"], ["updated_at", "2017-01-25 17:18:35.945433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-not731' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1pkgkxs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1t3h96x.csv' SQL (0.5ms) 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-01-25 17:18:35.993062"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:18:36.021857"], ["updated_at", "2017-01-25 17:18:36.021857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.7ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-1weeugy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-b8caxi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1yznstx.csv' 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-01-25 17:18:36.063693"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:18:36.093303"], ["updated_at", "2017-01-25 17:18:36.093303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 72ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-o21lui' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-mvfo8c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-eot9dk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:36.139408"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:36.175415"], ["updated_at", "2017-01-25 17:18:36.175415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.8ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-i4d7w0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-1c0028a.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-f9uo81.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:36.231826"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:36.265305"], ["updated_at", "2017-01-25 17:18:36.265305"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 17:18:36.273163"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68815-1vbb2kn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-fs83hw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68815-y15s0f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:36.295006"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:36.327113"], ["updated_at", "2017-01-25 17:18:36.327113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-y49le6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-a7i41z.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-lp35nk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:52.793057"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:52.843248"], ["updated_at", "2017-01-25 17:18:52.843248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-1hm34gi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-tka2lo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1cem6oq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:52.912165"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:52.944308"], ["updated_at", "2017-01-25 17:18:52.944308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-8yx0y8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1sbluu1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-11lg2hu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:52.993199"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:53.027107"], ["updated_at", "2017-01-25 17:18:53.027107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-1tk5rou' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-mxjzkf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-17mhlrx.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:53.064150"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:18:53.099596"], ["updated_at", "2017-01-25 17:18:53.099596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-nrkn09' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1d935d0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1xegxpd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:53.159127"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:53.192731"], ["updated_at", "2017-01-25 17:18:53.192731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-18zt376' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1qpvlj1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-19ilu06.csv' 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-01-25 17:18:53.243238"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:18:53.278757"], ["updated_at", "2017-01-25 17:18:53.278757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 73ms (ActiveRecord: 0.5ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-12n80yc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-p7yjxs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-36gywp.csv' 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-01-25 17:18:53.327847"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:18:53.357517"], ["updated_at", "2017-01-25 17:18:53.357517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-7ll2ae' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-f9rrql.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-91m85k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:53.397235"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:53.431436"], ["updated_at", "2017-01-25 17:18:53.431436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-13lw1sj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-rkm7hf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-b9y2pv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:53.462143"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:53.495117"], ["updated_at", "2017-01-25 17:18:53.495117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:18:53.503888"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-14fad31' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-18vxj5m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1u7xnk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:53.532357"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:53.564138"], ["updated_at", "2017-01-25 17:18:53.564138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:18:53.573610"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 16ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-18bqc6x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-mg7b0c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-k2aqds.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:53.611503"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:53.646134"], ["updated_at", "2017-01-25 17:18:53.646134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:18:53.654630"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-djqnmt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-nevte5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-gfflji.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:53.680955"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:53.710984"], ["updated_at", "2017-01-25 17:18:53.710984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-68984-1kel6py' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-68984-yzebox.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-68984-9g72qj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:53.747325"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:53.783522"], ["updated_at", "2017-01-25 17:18:53.783522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-68984-wcittg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/418b4ad540a885ae77499ef0ad0b4e1920170125-68984-gi9ir8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/418b4ad540a885ae77499ef0ad0b4e1920170125-68984-m9a2yj.csv' 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", "failures20170125-68984-wcittg.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:18:53.818629"], ["updated_at", "2017-01-25 17:18:53.852726"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-90zx0j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1ap3fdy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-x5u5tx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:18:53.876066"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:53.907171"], ["updated_at", "2017-01-25 17:18:53.907171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:18:53.918581"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.5ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-1aks4br' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-qiy2x7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-zf1vmi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:53.998527"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:54.035033"], ["updated_at", "2017-01-25 17:18:54.035033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-8uqo6b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-18n8x8y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-w99n8l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:54.057634"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:54.087905"], ["updated_at", "2017-01-25 17:18:54.087905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:18:54.093214"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-68984-1ft5mcg'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-12ntztc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-bfy07c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-iugov9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-666umf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-no8fmu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-14kkqla.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-noklcn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-9ax98o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1uxil0q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:54.262909"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:54.300878"], ["updated_at", "2017-01-25 17:18:54.300878"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-187y9hh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1d805ci.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-vkavfl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:54.325049"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:54.356034"], ["updated_at", "2017-01-25 17:18:54.356034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-16qbwm2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-6bwrne.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1is353l.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:54.378455"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:54.411054"], ["updated_at", "2017-01-25 17:18:54.411054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-68984-7dxbzk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-1capx4j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-68984-so4gej.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:18:54.435398"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:18:54.468989"], ["updated_at", "2017-01-25 17:18:54.468989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.2ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-1aaego0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1j75cvi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1ueflcp.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:00.334686"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:00.401567"], ["updated_at", "2017-01-25 17:34:00.401567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-1ijbi1l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-e6ri84.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1j2rer1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:00.426859"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:00.465963"], ["updated_at", "2017-01-25 17:34:00.465963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-15tvx9q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-oqmq3u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1r30b01.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:00.508212"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:00.563486"], ["updated_at", "2017-01-25 17:34:00.563486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-pehjew' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1j4qxz0.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1nycdjz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:00.599405"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:00.641012"], ["updated_at", "2017-01-25 17:34:00.641012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-1eciapm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-17bqnpq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-lkvhor.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:00.664871"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:00.696833"], ["updated_at", "2017-01-25 17:34:00.696833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-69642-d0zbyv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-1gb4d74' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-7lrc4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-90zyyr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-tfzvrr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1ne7ddl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-d7f9u3.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-7nnqv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-67nah5.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-y61hv1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:01.035382"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:01.069588"], ["updated_at", "2017-01-25 17:34:01.069588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-a7tywf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-twgfch.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1ef7uz6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:01.129458"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:01.159596"], ["updated_at", "2017-01-25 17:34:01.159596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-1rzd5m2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-kggmji.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-11m7bet.csv' 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-01-25 17:34:01.207688"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:34:01.240253"], ["updated_at", "2017-01-25 17:34:01.240253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-sdjn5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-osvcqc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1nd7oeg.csv' 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-01-25 17:34:01.275839"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:34:01.305737"], ["updated_at", "2017-01-25 17:34:01.305737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-5rfwxz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-e7hid.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-5ej4km.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:01.338976"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:01.373517"], ["updated_at", "2017-01-25 17:34:01.373517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-4sueyp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1vzxb89.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1e6e3jf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:01.405017"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:01.440461"], ["updated_at", "2017-01-25 17:34:01.440461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:34:01.449907"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-crmcsi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-woer7o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-14i0nmw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:01.478127"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:01.509806"], ["updated_at", "2017-01-25 17:34:01.509806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:34:01.519926"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-eavhxx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-uqa7ao.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1rwb1hy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:01.543604"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:01.578283"], ["updated_at", "2017-01-25 17:34:01.578283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:34:01.588193"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-1qb0bwn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1s9zl50.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-14l2l3t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:34:01.623610"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:01.658572"], ["updated_at", "2017-01-25 17:34:01.658572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-1e2f6j5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-vr55g1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-o8y9mp.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:34:01.706532"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:34:01.739643"], ["updated_at", "2017-01-25 17:34:01.739643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-9jaqew' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-wsdt6d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1bkui82.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:34:01.791026"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:01.824498"], ["updated_at", "2017-01-25 17:34:01.824498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-69642-xbozmz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-69642-1o2tvfd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-69642-t7mhbf.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:34:01.860123"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:01.895344"], ["updated_at", "2017-01-25 17:34:01.895344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-69642-1hi7zb2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1491df5a85391c89076490dd8983d5d420170125-69642-uakcrb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1491df5a85391c89076490dd8983d5d420170125-69642-5bgrgx.csv' 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", "failures20170125-69642-1hi7zb2.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:34:01.932081"], ["updated_at", "2017-01-25 17:34:01.969479"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-1trwecx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-zyt6d1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1rr7tbh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:34:02.010289"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:02.046823"], ["updated_at", "2017-01-25 17:34:02.046823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:34:02.059522"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-ws74rf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-e1uapw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-9aducn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:02.094619"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:02.128332"], ["updated_at", "2017-01-25 17:34:02.128332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:34:02.134704"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69642-1ane1jy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-q5lpwt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69642-1l0p6t2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:34:02.155804"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:34:02.188419"], ["updated_at", "2017-01-25 17:34:02.188419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-46pspp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-146ccsd.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-13j9z8d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:14.616270"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:14.666812"], ["updated_at", "2017-01-25 17:35:14.666812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-t4abjn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-x38x66.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-xtssi3.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:35:14.696807"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:14.745123"], ["updated_at", "2017-01-25 17:35:14.745123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1a1i5r8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1lyx9gm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-dh8fl1.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:35:14.799556"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 17:35:14.835254"], ["updated_at", "2017-01-25 17:35:14.835254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-19vczpb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1blxy72.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1js24dp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:35:14.881876"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:14.914829"], ["updated_at", "2017-01-25 17:35:14.914829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1u07oau' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-9yu87w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-jmxmp3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:14.977097"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.007713"], ["updated_at", "2017-01-25 17:35:15.007713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 28ms (Views: 13.6ms | ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1sv1zgw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1xtu93r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-13j33jg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:15.065720"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.098205"], ["updated_at", "2017-01-25 17:35:15.098205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:35:15.107890"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-izozlb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1j6f93b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-h7n4dh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:15.140015"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.170723"], ["updated_at", "2017-01-25 17:35:15.170723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:35:15.186029"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1dhn3nc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-7jw2bt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1q55wbn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:15.209906"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.240856"], ["updated_at", "2017-01-25 17:35:15.240856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 17:35:15.249162"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-yjuiyr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1v93s92.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-ndlqul.csv' 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-01-25 17:35:15.293979"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:35:15.323110"], ["updated_at", "2017-01-25 17:35:15.323110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1f3icbi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1pzjpao.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-6cv89h.csv' 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-01-25 17:35:15.362721"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 17:35:15.394077"], ["updated_at", "2017-01-25 17:35:15.394077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-94yse5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1dhdsy3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-ctnu27.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:15.424512"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.457805"], ["updated_at", "2017-01-25 17:35:15.457805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1oslacm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-l0l7nx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1uujjis.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:15.490663"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.525829"], ["updated_at", "2017-01-25 17:35:15.525829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1qex1wt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-pxf3k9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-50wl4k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:35:15.559148"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.592311"], ["updated_at", "2017-01-25 17:35:15.592311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 17:35:15.601859"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-69802-k8z5tq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-69802-141whh4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-69802-q9d40s.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 17:35:15.626071"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.664750"], ["updated_at", "2017-01-25 17:35:15.664750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-69802-mq57e0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4da1f35fbfdcb1fa90bf6ee88648fe3420170125-69802-1t0dzd8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4da1f35fbfdcb1fa90bf6ee88648fe3420170125-69802-1qvpy0b.csv' 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", "failures20170125-69802-mq57e0.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 17:35:15.698063"], ["updated_at", "2017-01-25 17:35:15.729295"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-x9bs5x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-5skgg4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-u59zcv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:15.844733"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.875900"], ["updated_at", "2017-01-25 17:35:15.875900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1na3gt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-zs4n3o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-4mkth7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:15.902443"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.933554"], ["updated_at", "2017-01-25 17:35:15.933554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 17:35:15.938755"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1ujtxke' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-d5cvg0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-x0s47d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:15.961664"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:15.994756"], ["updated_at", "2017-01-25 17:35:15.994756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-72mwec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-16d2f5t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1u1wucf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:16.019999"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:16.053306"], ["updated_at", "2017-01-25 17:35:16.053306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-172xv2w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-5t59r4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-tr4nw8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:16.076404"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:16.109230"], ["updated_at", "2017-01-25 17:35:16.109230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-hcfpku' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-y1ngod.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-2lc9g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 17:35:16.132768"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 17:35:16.166997"], ["updated_at", "2017-01-25 17:35:16.166997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-69802-ylafbr'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-1z0gy4a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-17oh9hw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1dywkw3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-69802-7z2014' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1snvbtf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-69802-1xrfknl.csv'  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-14p7v4t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-9y05c1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1wfwsfq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:13.355359"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:13.410504"], ["updated_at", "2017-01-25 18:27:13.410504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-1udil3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1ohg7fn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-dykft1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:13.539427"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:13.572213"], ["updated_at", "2017-01-25 18:27:13.572213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 18:27:13.602099"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-1o6c31n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1vy4qqz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1wms6mk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:13.623346"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:13.659263"], ["updated_at", "2017-01-25 18:27:13.659263"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-1e56xao' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-11sa5o3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-2xzduq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:13.686491"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:13.722976"], ["updated_at", "2017-01-25 18:27:13.722976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 21ms (Views: 15.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-oqlxn4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-kg89xb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-g6odhd.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:13.775583"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:13.808726"], ["updated_at", "2017-01-25 18:27:13.808726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 18:27:13.817787"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 15ms (ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-1etasv4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1b3gbo5.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-2jw1xb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:13.851577"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:13.885482"], ["updated_at", "2017-01-25 18:27:13.885482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 18:27:13.895025"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-6z8np0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-nd2to4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1qjblhf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:13.924911"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:13.957100"], ["updated_at", "2017-01-25 18:27:13.957100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- bairro\n- cidade\n- cod\n- estado\n- nome\n- numero\n- pais\n- rua\n"], ["updated_at", "2017-01-25 18:27:13.966238"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-vkhoj0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1wjzlwx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-c733fx.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-25 18:27:13.999688"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 18:27:14.032497"], ["updated_at", "2017-01-25 18:27:14.032497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-b6rb2f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1ksaltc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-14fh8by.csv' 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-01-25 18:27:14.067238"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 18:27:14.098232"], ["updated_at", "2017-01-25 18:27:14.098232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-p3aw5a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-g57wsd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1all5v3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:14.141532"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:14.175729"], ["updated_at", "2017-01-25 18:27:14.175729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-1l98nio' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-q9nqz6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-fofx4g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:14.208043"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:14.239626"], ["updated_at", "2017-01-25 18:27:14.239626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-169bqe1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-174egyo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-sfx9i3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:14.281370"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:14.315519"], ["updated_at", "2017-01-25 18:27:14.315519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-6gnh7e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-w8q8lc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-dcfhpz.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:14.338044"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:14.371876"], ["updated_at", "2017-01-25 18:27:14.371876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-73509-18kjt4e'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-5l0uwg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-efpumt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-mkupia.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-4fa4qf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-s0ds18.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-12hi16r.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-1kdurmw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-zl1kyc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-rc6ciq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:14.570108"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:14.605555"], ["updated_at", "2017-01-25 18:27:14.605555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-gzi5yd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1gz793i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-xc161b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:27:14.628458"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:14.660225"], ["updated_at", "2017-01-25 18:27:14.660225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-10ht7m9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-t2hp9t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1hfkkur.csv' SQL (0.9ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 18:27:14.687183"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:14.732755"], ["updated_at", "2017-01-25 18:27:14.732755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-trkgpc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-12677pj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-nsrepa.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 18:27:14.804822"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-01-25 18:27:14.839964"], ["updated_at", "2017-01-25 18:27:14.839964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-j1s26d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-3f359s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-l8nf1j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 18:27:14.888849"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:14.927381"], ["updated_at", "2017-01-25 18:27:14.927381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-73509-1dl33ud' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-1acnt0e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-73509-192wd6y.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 18:27:14.962087"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- ignore\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:14.995853"], ["updated_at", "2017-01-25 18:27:14.995853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Esta faltando a coluna Nome"], ["updated_at", "2017-01-25 18:27:15.005780"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-73509-o7m9h3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-73509-1o4hojs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-73509-1k01vlu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "columns", "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-01-25 18:27:15.029515"], ["source", "company"], ["importable_type", "User"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:27:15.064160"], ["updated_at", "2017-01-25 18:27:15.064160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-73509-mbxhb6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6d1da3d40ea0fad567ffda7557854a8a20170125-73509-1lna2og.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6d1da3d40ea0fad567ffda7557854a8a20170125-73509-1c6bth6.csv' 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", "failures20170125-73509-mbxhb6.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 18:27:15.099789"], ["updated_at", "2017-01-25 18:27:15.136150"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74603-xnn0ne' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74603-gjmtuf.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74603-8rzh29.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74668-tfsn6f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-37ctta.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-18zdd3d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:58:45.872661"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:58:45.922509"], ["updated_at", "2017-01-25 18:58:45.922509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74668-aedx5v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-12e8fbq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-xik5nw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:58:45.944496"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 18:58:45.979667"], ["updated_at", "2017-01-25 18:58:45.979667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74668-1ykncmq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-4fpr6g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-v5kyq7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:58:46.012413"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:58:46.044888"], ["updated_at", "2017-01-25 18:58:46.044888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-74668-y7kg8h'  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74668-1izjbom' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-1ou0ibf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-3ufdk1.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74668-heawzm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-5hzt5c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-1k7qekc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:58:46.239850"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:58:46.272598"], ["updated_at", "2017-01-25 18:58:46.272598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74668-1i5vkeu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-1hizcf4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74668-6y09ky.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 18:58:46.298153"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 18:58:46.332650"], ["updated_at", "2017-01-25 18:58:46.332650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74861-fubbsv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-cd0gdx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-236nxl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:03:49.888140"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:03:49.949430"], ["updated_at", "2017-01-25 19:03:49.949430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74861-1gvdbdb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-1hiiw40.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-jhodm6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:03:49.971907"], ["source", "company"], ["importable_type", "User"], ["parser", "foo"], ["importable_id", 1], ["created_at", "2017-01-25 19:03:50.010841"], ["updated_at", "2017-01-25 19:03:50.010841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74861-1ewsy7y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-19oeh3s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-s99axy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:03:50.045154"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:03:50.076609"], ["updated_at", "2017-01-25 19:03:50.076609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74861-1dfiqec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-wd3k2u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-1x98vem.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:03:50.098429"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:03:50.130930"], ["updated_at", "2017-01-25 19:03:50.130930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-74861-z8i38b'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.5ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74861-11jdqnb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-1swffos.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-1u13g90.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74861-z9u7bf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-fzwynm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-7j13ur.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74861-1r4gtch' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-ziu2n2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-1ccek7z.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-74861-yowh1v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-zq1ek0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-74861-uug726.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:03:50.350029"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:03:50.383022"], ["updated_at", "2017-01-25 19:03:50.383022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-76977-1j653o8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-76977-1rrcyex.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-76977-zli2fn.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77013-5kn9m5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77013-7belgr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77013-1kx39rg.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77684-1j8ss0s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77684-1pxobuz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77684-xpw1a5.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77840-yfcceb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77840-6sc7q9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77840-zci4zz.csv'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77901-1sis84r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-1xqnyk7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-1no0f1n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:56:24.289470"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:56:24.345736"], ["updated_at", "2017-01-25 19:56:24.345736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77901-16fxlsv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-gky8bn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-rhzgp2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77901-18uub5v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-partog.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-kfmu32.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77901-5koxke' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-1tfiw78.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-13xfg02.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:56:24.635008"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:56:24.666618"], ["updated_at", "2017-01-25 19:56:24.666618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77901-1btl8gh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-1kf83ut.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-1qj1ts2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:56:24.691234"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:56:24.734506"], ["updated_at", "2017-01-25 19:56:24.734506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77901-325giw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-1259xg0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-1c9lbt0.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77901-c524xz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-15j07wo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77901-fp4oxe.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:56:24.823237"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:56:24.854892"], ["updated_at", "2017-01-25 19:56:24.854892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77964-98w85y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-iuwmnb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-573p8b.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:56:51.678569"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:56:51.736087"], ["updated_at", "2017-01-25 19:56:51.736087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77964-811j3n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-1667u99.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-wm48zr.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77964-1fyie3v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-7f8tx2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-1tb4kbv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:56:51.855214"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:56:51.896618"], ["updated_at", "2017-01-25 19:56:51.896618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77964-1wbmvng' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-8gpzxz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-1h5w0bz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:56:51.929736"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:56:51.962075"], ["updated_at", "2017-01-25 19:56:51.962075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77964-zijo3z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-1ct2qrf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-ew721j.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:56:51.987966"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:56:52.024458"], ["updated_at", "2017-01-25 19:56:52.024458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-77964-1va9ln0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-159w7ow.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-77964-1c9trea.csv'  (0.1ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78078-1e20ldz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-5ynagk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-3uma8u.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:58:18.893848"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:58:18.947871"], ["updated_at", "2017-01-25 19:58:18.947871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78078-lxpbo4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-l6bjnt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-hzbtko.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78078-y6rz7h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-1intce0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-nwlxnx.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78078-8mp5e8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-6o6w79.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-105ggfx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:58:19.218974"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:58:19.251031"], ["updated_at", "2017-01-25 19:58:19.251031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78078-1c87drv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-aqdvx2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-87l7sm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:58:19.284749"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:58:19.317736"], ["updated_at", "2017-01-25 19:58:19.317736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78078-11un8bq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-1kq3x89.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78078-16whi5t.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:58:19.341177"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:58:19.373969"], ["updated_at", "2017-01-25 19:58:19.373969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78168-ut5woi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-wupocc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-maex7z.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:59:11.882823"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:59:11.932598"], ["updated_at", "2017-01-25 19:59:11.932598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78168-1mm0s3d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-mef62q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-157ltsx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:59:11.955665"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:59:11.987937"], ["updated_at", "2017-01-25 19:59:11.987937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78168-1boxveg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-17izo86.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-1ux0kbn.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78168-aicwfe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-1r21mc8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-178v8ll.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:59:12.223556"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:59:12.261408"], ["updated_at", "2017-01-25 19:59:12.261408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78168-ruiysg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-mf414b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-5nadfk.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78168-srn8hi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-16wndjx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78168-1sfr6b6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:59:12.337553"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:59:12.368629"], ["updated_at", "2017-01-25 19:59:12.368629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78250-k3zyim' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-6i0909.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-1b4g1a7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:59:55.019974"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:59:55.076471"], ["updated_at", "2017-01-25 19:59:55.076471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78250-2sop39' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-q205lo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-1gb0hx3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:59:55.097559"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:59:55.127006"], ["updated_at", "2017-01-25 19:59:55.127006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78250-1salovs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-mn3ieg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-7vjf0s.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78250-1hfc415' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-16l39u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-46rukt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:59:55.241389"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:59:55.271425"], ["updated_at", "2017-01-25 19:59:55.271425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78250-1vgr3pn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-1pijkc0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-fchefh.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78250-zasrd0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-1w70n8h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78250-hxhw8k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 19:59:55.432282"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 19:59:55.467346"], ["updated_at", "2017-01-25 19:59:55.467346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78438-7lj85c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-1o2733g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-1kz9odt.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:05:05.251747"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:05:05.309167"], ["updated_at", "2017-01-25 20:05:05.309167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78438-j75c5v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-tck5ih.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-1oos6vt.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78438-am0dr5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-e28fpy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-1i4se1r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:05:05.489841"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:05:05.527798"], ["updated_at", "2017-01-25 20:05:05.527798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78438-26js1a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-1umk1u8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-i4jbaq.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78438-i3cnud' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-78yn9s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-bfhhxt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:05:05.628542"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:05:05.661186"], ["updated_at", "2017-01-25 20:05:05.661186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78438-1m2iqne' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-1jehbh0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78438-1a8hfrm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:05:05.683778"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:05:05.718381"], ["updated_at", "2017-01-25 20:05:05.718381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78497-1stc63b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-3xs40s.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-nx8mps.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:05:34.029022"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:05:34.080003"], ["updated_at", "2017-01-25 20:05:34.080003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78497-9hq2qm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-d922vq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-1alnbif.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78497-1w36f7d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-1mzjfma.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-uxkpj2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:05:34.244379"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:05:34.277368"], ["updated_at", "2017-01-25 20:05:34.277368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (14.6ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78497-1tm28to' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-mynx1b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-1bx5152.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:05:34.317044"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:05:34.353810"], ["updated_at", "2017-01-25 20:05:34.353810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78497-1iwdtgb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-sulzcf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-j8j8r.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78497-1cim8ns' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-1rgmqek.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78497-144vjc2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:05:34.437691"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:05:34.474547"], ["updated_at", "2017-01-25 20:05:34.474547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78560-14c9mpp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-xkozk8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-1sxrwh9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:06:03.510583"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:06:03.561801"], ["updated_at", "2017-01-25 20:06:03.561801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78560-vciw7q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-pc518q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-zy8yl0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:06:03.584483"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:06:03.616885"], ["updated_at", "2017-01-25 20:06:03.616885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78560-satj3q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-a7lc0e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-qiyduc.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-78560-l0guha'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78560-1uo5kqp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-ardajh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-13cv7hh.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78560-x3v88e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-lk1snn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-p61sfr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:06:03.864702"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:06:03.896656"], ["updated_at", "2017-01-25 20:06:03.896656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78560-12fsuea' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-vlly86.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78560-jnn00x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:06:03.917385"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:06:03.949789"], ["updated_at", "2017-01-25 20:06:03.949789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-1ksufh7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-rzv0j0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1g64nps.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:06:51.170408"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:06:51.221574"], ["updated_at", "2017-01-25 20:06:51.221574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-x310nt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1mp4k6j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-cu2v8w.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:06:51.244121"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:06:51.275911"], ["updated_at", "2017-01-25 20:06:51.275911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-16dgt2u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-7tyfv0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-vd6urm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:06:51.298353"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:06:51.334891"], ["updated_at", "2017-01-25 20:06:51.334891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-13rii' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1a0w1e1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-uunhi6.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-1sbvzh8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-h0qetl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-8yxi4x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1qffmld.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1j2llgx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-15a0c26.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-ojces9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1bga4mt.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-19541tg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1231s4t.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1prr17k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-jvg7qs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1pbjidx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1lxdrub.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-1xsqv05' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1yckm0c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-78632-15wgwsv'  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-lqjqba' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-oyp0z7.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-qffiqu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-nhu1rp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1hapbj0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-i8i518.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-150g4zl.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-13fiwq9.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-15ysncg.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1kra1dv.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-1jl4626' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-gylhul.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-1tifsef.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-85cbuo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-icb038.csv'  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-5ywyw5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-rbwwf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-13ndlok.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78632-xvwgkl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-3eiyz3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78632-xsb2t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:06:52.074426"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:06:52.106377"], ["updated_at", "2017-01-25 20:06:52.106377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-1rklmln' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1soby03.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1qxy452.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:07:12.008567"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:07:12.055683"], ["updated_at", "2017-01-25 20:07:12.055683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-z6pupd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-bmfcj5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1www54x.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:07:12.079629"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:07:12.110128"], ["updated_at", "2017-01-25 20:07:12.110128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-edzrst' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-14cqq0s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1iour3z.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:07:12.131238"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:07:12.165631"], ["updated_at", "2017-01-25 20:07:12.165631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-dey5ks' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-yvfc3t.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-78730-1ht546g'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-xn3ke3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-mrlq1j.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-1hllp2x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1mmk33w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-lsnyg4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-kfe8tp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-m18pfk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-10ethzi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-s1pnmt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-nullqg.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-b5eobt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-hzg9g8.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-545k1v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-7eiiz5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-ochca1.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-1riydio' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-io048.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-vuacom.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-m6lcol.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-rjbadj.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-o1ei1g.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-rvv5ik.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1lrt3gj.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-1ist6zq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-yottxe.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-cjxmqz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1edue85.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-f0eyd5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-2956kt.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-18faiz2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1ci9yg8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1r9waso.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-eacftz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-18va15h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1aik3an.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78730-1kioav0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-l7kvk2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78730-1t8wevp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:07:12.900239"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:07:12.934042"], ["updated_at", "2017-01-25 20:07:12.934042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-1v0oke1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-o8gv4e.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-kproma.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:07:23.588407"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:07:23.639837"], ["updated_at", "2017-01-25 20:07:23.639837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-hwlsm8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1kyi2jr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1997pkb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:07:23.665955"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:07:23.702537"], ["updated_at", "2017-01-25 20:07:23.702537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-1bnenqd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1kpzd1u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1bm3c84.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:07:23.725719"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:07:23.761159"], ["updated_at", "2017-01-25 20:07:23.761159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-1faoyd9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-yhxhi.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-n25is2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1u11yjs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-uov116.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-3w2mvt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-8y2fyy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-2wsm05.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-wh52hm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-77jc7v.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1oyq8ho.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-127kuq6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1uwswoo.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-wdyrga.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-d3tl6t.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1g4cem6.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-1tb2bua' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-128enr0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-g8cqrg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-djbk6q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1lh8170.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1i7ucvw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1rr9jrj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-152a82r.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-babh8v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-9fbj78.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-78823-156mv1h'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-tdrmxn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1hk7q30.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-1hnqgj6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-osaryt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-10ad9w3.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-11lpzk2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-n6d028.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-3ocsov.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-l2tn2u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-yhkmb7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-1sptza.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:07:24.455504"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:07:24.495756"], ["updated_at", "2017-01-25 20:07:24.495756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-78823-1d7zwil' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-bej2lx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-78823-12kawu6.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (3.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-fw8ys6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1yhh2le.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-a7lbx5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:09:27.955315"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:09:28.004941"], ["updated_at", "2017-01-25 20:09:28.004941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-5ngnys' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1uupov6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-su00vg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1mlbczs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1fn6bjs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-cw4ylx.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-13wsei0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1jdvgou.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-3bj5jo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-3e9wfz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-42v8hm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1njb34z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1l6e6vs.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1ksmt5z.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-v2rhxh.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-qbrtre.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-1ms1zj3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-13whom6.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-l8mqps' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-19ehii4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-khc2vl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-b7oxdk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-rxm4hs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1iuwmtw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1j9owml.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-hi9w0k.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-fxl5fi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-jnmqvc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1aly4hz.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-15v471b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1ggfhoy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-79011-6p5n5b'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-1ajdl1x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-b3jjj1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1ugxk1f.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-2pwydx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-104yrho.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-jcxnig.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-1ml6o86' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-12tp58i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-1c66ehr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:09:28.665477"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:09:28.701276"], ["updated_at", "2017-01-25 20:09:28.701276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-c1v4vm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-yasuw4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-13wyj1u.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-1gv54n8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-g05jp7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-a1aihm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:09:28.833264"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:09:28.866872"], ["updated_at", "2017-01-25 20:09:28.866872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79011-191xlew' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-10dvd90.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79011-18enwyk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:09:28.892040"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:09:28.926200"], ["updated_at", "2017-01-25 20:09:28.926200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-1erztq0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-fgm368.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1jl0tz4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:10:56.266848"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:10:56.318344"], ["updated_at", "2017-01-25 20:10:56.318344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-1nohy8d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-194hcrj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1sfv2w4.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-sq38kc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1a60jsy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1tyk9kf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-hdfskh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-n0ixw8.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-f49vj4.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-exr6cn.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1up29x8.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-f81x0i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-3wqkc1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-79227-n35cr1'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-1m8za1c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1pho1wv.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-1ra9tdc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1x5gtrd.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-kknx6r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1ekdfvo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1aapcex.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-zz9sln.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-101mo02.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1iwesol.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-7cf0kc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-ftjv67.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-14dfkgz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1vglcq5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-2lqdsv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-7yrpjm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-v5egwl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1m9hkyd.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-7vsti0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1ahjgj5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1gb0oub.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-1hi3vul' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-tn7ot5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-9ktxt.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-jmb53v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1ret6gm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1iahbvb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-25 20:10:57.026619"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:10:57.061677"], ["updated_at", "2017-01-25 20:10:57.061677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-f13ue4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1eivt54.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1ssvtuo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:10:57.085983"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:10:57.121927"], ["updated_at", "2017-01-25 20:10:57.121927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-1lqi5v9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-1erpgnq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-196t6vi.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79227-11t935d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-76sdxv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79227-15je85c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:10:57.220908"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:10:57.254427"], ["updated_at", "2017-01-25 20:10:57.254427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79338-52g1ei' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79338-bj08bn.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79338-1l6njyw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:11:49.904828"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:11:49.952768"], ["updated_at", "2017-01-25 20:11:49.952768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79338-1hpez5u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79338-1u02doa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79338-1sldzlp.csv'  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79550-13ipzw5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79550-1dptuzz.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79550-1sksxp7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:15:19.670810"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:15:19.716589"], ["updated_at", "2017-01-25 20:15:19.716589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79550-rfg17' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79550-d947gv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79550-1tnmsb8.csv'  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79592-4wxzgg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79592-1j87l66.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79592-1xjaqs7.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.1ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79633-ic5aqu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79633-9vmbiv.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79633-1il7rel.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:16:07.773154"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:16:07.823019"], ["updated_at", "2017-01-25 20:16:07.823019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79633-18bn8bc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79633-86dv61.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79633-1bkwfcn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79633-k3yjh7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79633-44ampv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79633-1yn48uf.csv'  (0.1ms) rollback transaction  (0.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79721-i76kyg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79721-jq0504.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79721-1xk4gya.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (3.5ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79950-6xuo7m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79950-qri52y.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79950-14b7i6t.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-79969-2eq5d5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79969-68lb7o.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-79969-qul2gy.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-asc990' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1e3xlox.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-15ix78a.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:22:29.053584"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:22:29.106053"], ["updated_at", "2017-01-25 20:22:29.106053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-kcumgv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1gndn7h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-o6ebd4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:22:29.129593"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:22:29.161043"], ["updated_at", "2017-01-25 20:22:29.161043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-173bvfq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-z470df.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-9sh2kl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:22:29.185575"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:22:29.217002"], ["updated_at", "2017-01-25 20:22:29.217002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-z4g4jp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1kybkdv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-182aaai.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-urvby6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1oca8z2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1oandmo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:22:29.324099"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:22:29.357056"], ["updated_at", "2017-01-25 20:22:29.357056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-1mgvi47' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-k6sjnh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-7di0gu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-iegbr8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-wh9uwy.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-16lu3es.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-9w1hhn.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-hpbcez.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-dyvwps' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1ral9ie.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-2drqn5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-12eiwat.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-e3zu1c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1743y8a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-wxkjgl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-m3qkbo.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-qz7cv2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-15yfklb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-bwozox.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-xaevnl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1lwr4mm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-46dcfr.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-1fevalc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-6kpqu4.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-1plg9my' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-w2wxhi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-f3mssz.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-1x1s9t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1tw4oib.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-80035-1s33gsp'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-1eux4xy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1yckoe8.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-1xg2hux' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-16eg3kd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-i6x5r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-1a3rd7j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-bwxqk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-6aypor.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-18ck48k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-gbhf1l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-qszghf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80035-3sa42b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-137n71f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80035-1kpddju.csv'  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-4gkild' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1vk28hn.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-183ct26.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:03.152392"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:03.203740"], ["updated_at", "2017-01-25 20:24:03.203740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-vin0y8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1gtb2a0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-44hpy.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-38vybn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1nb88sb.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-wcrz55' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1xesnfr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-cs7jk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1wpecv8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1kn4tpp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-c42shk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-11807xg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-19ycxur.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-1sxtlks' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1gniq0i.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-18hiej2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-9ubth1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1t3s02q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-9kwf8e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-zxtah2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1ljzenq.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-1vy6x3s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-9m7ud.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-80178-8c4rrk'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-1ekt0vi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-4qly28.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-sizsq4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-14whyiz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1dzq0px.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-b0r6v9.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-p97qgp.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-e9bpx6.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-1a7pw84' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1d034z9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-nflc0v.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-rwqyy6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1aaf670.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1g3gzm2.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-ba9wbc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-5zs77s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-ajsaak.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-1hmojfd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1ih01zy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-jcz4r.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-8f9iwd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1avrxu1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-f8ovzc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:03.976449"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:04.021055"], ["updated_at", "2017-01-25 20:24:04.021055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-49jk5u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-oif4mc.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1sqs6yq.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-p1gm47' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1vft1ez.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-wkk81d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:04.142872"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:04.175395"], ["updated_at", "2017-01-25 20:24:04.175395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.7ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80178-vmk9ol' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1cjrduv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80178-1pzl93b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:04.214281"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:04.248532"], ["updated_at", "2017-01-25 20:24:04.248532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-1c9hfsi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-wqftrz.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-9mjt6r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:39.829448"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:39.880266"], ["updated_at", "2017-01-25 20:24:39.880266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-1i8co8h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1l75ik7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-12j509l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-vmkpuy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1g7bes4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-14dvwco.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-byvzw2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-skcull.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-tdt9sd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-ly2o2d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-w924by.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-5p52f1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1aj8oq1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-80281-dnn1mv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-150gc5e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-ueblqj.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-l82chr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1kot3wl.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-ekdkwu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1522jaa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1esmrzf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1qginnx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1s81nwd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-v99nxi.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-hiix1r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1yskpl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1j60h3a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-y253og.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1pw8xjr.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-fw6yhc.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-sxzyv2.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1j8luhb.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-jxdjlu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-e7gcyt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1fa8hpd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-1j6ahsz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-pxpcsm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-fnyzve.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-1fgp1hb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1i5ahyh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1fvdexa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-c6lo5b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-w102fa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-tdch6z.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-ov0tio' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-93u2gc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-100qlo8.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-1p4i3kh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-17fcfj1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-vq8l6u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:40.767548"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:40.805741"], ["updated_at", "2017-01-25 20:24:40.805741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-11c8b9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-1g7ux75.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-gxyvsa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:40.840443"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:40.872715"], ["updated_at", "2017-01-25 20:24:40.872715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80281-1wm256e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-12qp2fs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80281-109l0ds.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:40.901231"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:40.935436"], ["updated_at", "2017-01-25 20:24:40.935436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-1nudwkl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1wal11a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-je0fdi.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:49.252816"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:49.304039"], ["updated_at", "2017-01-25 20:24:49.304039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-1s1e25f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-ega9sd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-v82n95.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:49.328091"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:49.362750"], ["updated_at", "2017-01-25 20:24:49.362750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-1lczh6z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1i15x4s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-18dpfge.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-13lswox' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-o3fakv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1gtzf5x.csv' SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:49.480649"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:49.512294"], ["updated_at", "2017-01-25 20:24:49.512294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-1ilgly7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1jdvktr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-80373-vuwx7e'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-1bq5z0o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-cdcr7o.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-1n38iy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-6zyffy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-496xz.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-1mdfirk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-14rltvb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-gbm93d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-12wuys3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-ks8lyk.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-tcqfdd.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-19y0qy4.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-17eosmc.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-qs17ry' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1e557lt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1rm43id.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1wm5fza.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-wetywl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1lsi8ta.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-2wkf9v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-ypnady.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-fd3nox.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-hhtcfe.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-68n6jt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-ucactu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1j9dnjq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-16op771.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-nscnmb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-hs4gm9.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-1uctgbj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-c6lyam.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-oc3pni.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-k0ruti' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1c081ui.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1xblqar.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-23iq00' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-4vyr99.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1kssbkr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-1l3si4c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1iswdow.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1hsfgub.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80373-rwe34d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1j1cmci.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80373-1476h3x.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:24:50.297216"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:24:50.328583"], ["updated_at", "2017-01-25 20:24:50.328583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-10h48la' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-qsxn38.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-srt2uo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:16.194967"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:16.248601"], ["updated_at", "2017-01-25 20:27:16.248601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-zdk5ns' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1gmzlbi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-10m7jpc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:16.273256"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:16.307931"], ["updated_at", "2017-01-25 20:27:16.307931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-iabl8e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-4g4z8a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1k4jt4b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-ryrcy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-14gykrz.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-dhg49w.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-10tyb0q.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-t0hzlw.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-1kmylam' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-lxwbm0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1d9e05q.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-2x5twn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1w0v9eh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-mtirwq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1dts0os.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1h3aesw.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-1fq0bcv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-qzb54o.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-6qya7q.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-1gu1c3d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1fqjv8m.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-1oqmoa3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-14yq43g.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-15on2wh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-pj1xd0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-80606-cvkxki'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-k5rg15' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-24o8k7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1nvvblb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1q0qr26.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-17mt9k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-3ndm2h.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-1s6fvq5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-9drwjj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-4jcqj5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-owqucx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-161edym.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-hzdtwp.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-5ypx7g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-xfrggf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1aufvy7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-1pwhwun' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1iapoh1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-m0svv3.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-fsgh15' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-rodkgz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-10bicpu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:17.071162"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:17.107821"], ["updated_at", "2017-01-25 20:27:17.107821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-6kq2ha' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-jgbuo9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-18w66rd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:17.131741"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:17.167551"], ["updated_at", "2017-01-25 20:27:17.167551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80606-wdzov0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1nsq0em.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80606-1ii7d2u.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:17.196920"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:17.233065"], ["updated_at", "2017-01-25 20:27:17.233065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-jw775c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-hwbnre.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-b5c4cp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:21.719134"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:21.772496"], ["updated_at", "2017-01-25 20:27:21.772496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-80682-1scnfl3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-80682-8wa6ad.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-80682-yvou4k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:21.801714"], ["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-01-25 20:27:21.840320"], ["updated_at", "2017-01-25 20:27:21.840320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-80682-oask81.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f8390c55bbdd90edbfe4e8a9087f2e1a20170125-80682-5mtdtd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/f8390c55bbdd90edbfe4e8a9087f2e1a20170125-80682-1b15pas.csv' 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", "failures20170125-80682-oask81.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 20:27:21.897527"], ["updated_at", "2017-01-25 20:27:21.932704"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-ead578' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-12d4n2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-9klowf.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-pou709' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1touxyw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1czre21.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.158160"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:22.196487"], ["updated_at", "2017-01-25 20:27:22.196487"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-151sy6f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-17rtyny.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-18d17sj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.223295"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:22.259221"], ["updated_at", "2017-01-25 20:27:22.259221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 20:27:22.265742"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-25jgw5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-15efcxt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-rcotr2.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 50ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.5ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1putuys' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1mrrvqw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-cd3qfp.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1l6yrbi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1jq4or1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-185nhg0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.469444"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:22.502897"], ["updated_at", "2017-01-25 20:27:22.502897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-15z6qmq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1h6wtgu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-13jwlg0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.550310"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:22.582247"], ["updated_at", "2017-01-25 20:27:22.582247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-k2lr7x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-z5gwqj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1przqjn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.620699"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:22.656132"], ["updated_at", "2017-01-25 20:27:22.656132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1ufsaoh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-btp5mx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1uccfrk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.695500"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:22.727615"], ["updated_at", "2017-01-25 20:27:22.727615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1384pm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-tof3db.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-azsvqf.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.763527"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:22.798229"], ["updated_at", "2017-01-25 20:27:22.798229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1j4w3iu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1h4x6nh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1y8b9co.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.835281"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:22.874563"], ["updated_at", "2017-01-25 20:27:22.874563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1wbpjwr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1ty23om.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-m51zw7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.918338"], ["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-01-25 20:27:22.950081"], ["updated_at", "2017-01-25 20:27:22.950081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-xf8fpb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1kb4asg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-opn59f.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:22.986698"], ["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-01-25 20:27:23.020501"], ["updated_at", "2017-01-25 20:27:23.020501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-aik49m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-l2xia9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1mk6sri.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:23.083440"], ["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-01-25 20:27:23.120309"], ["updated_at", "2017-01-25 20:27:23.120309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-p1otnu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1ys4nv5.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-8mwocd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-92rgdd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-80682-1elsw8h'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1r27zj8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1y087p6.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1g533b6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1g9303b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-srzwxf.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-13xbn4d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-103t2i2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-wyxdpc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-8yaci8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1pb9a3d.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-n4b75m.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-gdxksr.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-euh03n.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1pvm5lc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-tkalbb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-ulh1n0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-19ybwxb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-dtzqg5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-qirp21.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1ag61qx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-fxytt0.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-i5d0zg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-3npr5l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-i70wvu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-nk16fq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-mgxqc6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-8eq4y4.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-188i0yn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1yf9xs5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-18aezmn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-1k307ts' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-17vhffr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-7udwbl.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-ilscgy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-8cfxgn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-6yinb6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-14epwr4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1d03zxf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-18hf959.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-12fidbk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-fn7j1e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-18nr6q0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:23.901892"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:23.936903"], ["updated_at", "2017-01-25 20:27:23.936903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-6uh47s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1gycz6w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1qu6cql.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:23.962400"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:23.996692"], ["updated_at", "2017-01-25 20:27:23.996692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-i18rfw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-y2pu69.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-ttexs7.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80682-voaiat' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1d3oh1a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80682-1urdyxk.csv' SQL (1.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:27:24.081180"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:27:24.115709"], ["updated_at", "2017-01-25 20:27:24.115709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1zr1pj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-kranj0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-195w3dz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:39.445273"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:39.499398"], ["updated_at", "2017-01-25 20:28:39.499398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1h13bj4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1iuficf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-rv803v.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:39.524388"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:39.571945"], ["updated_at", "2017-01-25 20:28:39.571945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-200etf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1d02se5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-7x0ek6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:39.597977"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:39.630104"], ["updated_at", "2017-01-25 20:28:39.630104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-g0v0dl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1oodr7a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-wr943z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:39.654974"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:39.690341"], ["updated_at", "2017-01-25 20:28:39.690341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-13j4lmb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1fn2bul.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1p2milp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:39.720015"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:39.754303"], ["updated_at", "2017-01-25 20:28:39.754303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-a6x0ar' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-72ssa3.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1y2g0lm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-6g774x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-17ohx0z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1a2xwnj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-18oldb5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1vxg20q.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-2di7qp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-ii4hw5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1bipkwh.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1oql3ww' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1ku5yg8.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1qfoozg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-3jvsiq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-80872-a2mm3m'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-18o1zrw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-43i3mi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-v420ng.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-3kgnc7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-19hfgo9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-cdm4fj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-u5wliu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-ipjzef.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-153f7u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-dbsrmk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-jekv2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-4qmz37.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1nejuw7.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-8wy28r.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-14i7ny9.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-4n17pn.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1b9akhf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-11ah243.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1gfsdyd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1kt456' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-19xkliv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1wu5q8y.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-riaxdo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-13gb41o.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-50tti8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-17fu3h8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-129r20o.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1flqgm0.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1r0s9cw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-19zc92c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1jjc0r7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:40.570948"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:40.603390"], ["updated_at", "2017-01-25 20:28:40.603390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-01-25 20:28:40.620538"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1x94vy8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-11bsw9z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-aktrus.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.4ms) 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-01-25 20:28:40.642603"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:40.677733"], ["updated_at", "2017-01-25 20:28:40.677733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-80872-1fha74h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-80872-17hydar.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-80872-3874hd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:40.766622"], ["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-01-25 20:28:40.800289"], ["updated_at", "2017-01-25 20:28:40.800289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-80872-1vkh6vb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5a077d0224bbbf879ab1ed93afab111e20170125-80872-1tgp9k6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/5a077d0224bbbf879ab1ed93afab111e20170125-80872-8ype12.csv' 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", "failures20170125-80872-1vkh6vb.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 20:28:40.847252"], ["updated_at", "2017-01-25 20:28:40.877723"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-13ojw3y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1ouxxe6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1h8l0c6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:40.901534"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:40.936620"], ["updated_at", "2017-01-25 20:28:40.936620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = '--- - ignore - street - number - neighborhood - city - state - country ' WHERE "importers"."id" = ? [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-11k0scm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-pw6581.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-fhnu1a.csv' SQL (13.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:41.013315"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:41.063266"], ["updated_at", "2017-01-25 20:28:41.063266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-xbm3i8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1yaexg1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1fw6mb2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:41.108958"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:41.143421"], ["updated_at", "2017-01-25 20:28:41.143421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1p04yhr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1dnq42q.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1wy4esb.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 50ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-8cwya8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-6i9mbg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-jljvul.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 72ms (ActiveRecord: 0.2ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1rym2om' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-6g21zm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1jraohg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:41.396345"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:41.434394"], ["updated_at", "2017-01-25 20:28:41.434394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-7ikt8i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1giw0k4.csv'  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-16hjsym.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:41.477566"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:41.514235"], ["updated_at", "2017-01-25 20:28:41.514235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 1.1ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-9jzdnp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1pkrfqd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-l5dkix.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:41.554802"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:41.591435"], ["updated_at", "2017-01-25 20:28:41.591435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-1wkqzef' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1e6jffd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1145s8g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:41.629086"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:28:41.663795"], ["updated_at", "2017-01-25 20:28:41.663795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-kq5p9s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-5t46jt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1uloi2s.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:41.718317"], ["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-01-25 20:28:41.750802"], ["updated_at", "2017-01-25 20:28:41.750802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-v7tjlo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-rbf2jv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1546e08.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:41.807236"], ["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-01-25 20:28:41.842703"], ["updated_at", "2017-01-25 20:28:41.842703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.3ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-80872-mu5zqp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1nw7zh1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-80872-1walzky.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:28:41.877943"], ["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-01-25 20:28:41.910474"], ["updated_at", "2017-01-25 20:28:41.910474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-1x6ih1x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-iduwmm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1ehsgte.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:44.479643"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:44.533859"], ["updated_at", "2017-01-25 20:29:44.533859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-1c3wl3t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1h137o4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-rpcxue.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:44.558287"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:44.607617"], ["updated_at", "2017-01-25 20:29:44.607617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-9pwtjt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-ochm00.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1ftykrh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:44.647047"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:44.681970"], ["updated_at", "2017-01-25 20:29:44.681970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 20:29:44.705539"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-18kd1fd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-s7hob5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1c73tu1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:44.732011"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:44.767058"], ["updated_at", "2017-01-25 20:29:44.767058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-jlpffi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-ehr4b8.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-hgx1s6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-h0nx01.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-81056-1runw3x'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-ylont1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-cnn5rz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-42xuwq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1ssg7sb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-ix5p54.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-10h53r5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-19lf9fm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1lxz0x1.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-1tf5bgi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-nmznr2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-gyzzd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-6hlgeo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1kf9n5y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1fucexu.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-ve6rgi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1jattet.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-xs2aef' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-12pzhny.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-ldlubw.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-6p1jrx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1lcka07.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1g8n2tj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-546syo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1ihf9c4.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-fkciw1.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-14h2zed.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1y9rp7n.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-18urai7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-pz36u5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-p1mv03.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-vl3549' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-4vi57m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1im0aow.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-1y1q6ry' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1rujw0t.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-obxqzj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-1yqmb62' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1yvsqnz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-18e8wr4.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-qr1qwu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-copnmp.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-14718q0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:45.561652"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:45.595900"], ["updated_at", "2017-01-25 20:29:45.595900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-wdbpd5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-4sotq3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1ibvloe.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:45.620974"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:45.655494"], ["updated_at", "2017-01-25 20:29:45.655494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-oweny1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1kcd1gb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-sh1igs.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:45.680487"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:45.712111"], ["updated_at", "2017-01-25 20:29:45.712111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-1ajewud' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1vr62pu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-6foc8w.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:45.747746"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:45.783189"], ["updated_at", "2017-01-25 20:29:45.783189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = '--- - ignore - street - number - neighborhood - city - state - country ' WHERE "importers"."id" = ? [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-81056-ahr59y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-81056-10y56b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-81056-28213y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:45.855927"], ["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-01-25 20:29:45.888247"], ["updated_at", "2017-01-25 20:29:45.888247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-81056-63swkp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/cd9bde2d5191011ad08ffe50630691f820170125-81056-8axdd8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/cd9bde2d5191011ad08ffe50630691f820170125-81056-mhtql3.csv' 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", "failures20170125-81056-63swkp.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 20:29:45.933474"], ["updated_at", "2017-01-25 20:29:45.965697"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-ixzo9v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-wae5wr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-sksw8e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:46.038489"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:46.073225"], ["updated_at", "2017-01-25 20:29:46.073225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-1o9gl80' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-ky27dc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-roed51.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:46.118401"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:46.153853"], ["updated_at", "2017-01-25 20:29:46.153853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-18wcrax' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-dgb4pw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1c5yefv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:46.210624"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:46.242557"], ["updated_at", "2017-01-25 20:29:46.242557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-brfwwt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1ym5ta4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1jzscid.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:46.278695"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:46.316793"], ["updated_at", "2017-01-25 20:29:46.316793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 0.5ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-1fua03x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1s7bgar.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-o86286.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:46.358922"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:46.393355"], ["updated_at", "2017-01-25 20:29:46.393355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-7s83e0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-nwikp0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1pnwht9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:46.442793"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:29:46.484400"], ["updated_at", "2017-01-25 20:29:46.484400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-18dqmwm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-l41kxy.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-c97cx.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-1pbqund' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1102yku.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-nxjheb.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-18lmsc9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-70kz00.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-150rs3h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:46.710816"], ["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-01-25 20:29:46.745886"], ["updated_at", "2017-01-25 20:29:46.745886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.4ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-7akdas' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-15mvnao.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1o31a4r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:46.782912"], ["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-01-25 20:29:46.816544"], ["updated_at", "2017-01-25 20:29:46.816544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.2ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81056-44py0m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-c8bplc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81056-1s52xi6.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:29:46.857159"], ["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-01-25 20:29:46.891588"], ["updated_at", "2017-01-25 20:29:46.891588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-12fvz49' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1nkpq97.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1o45nir.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:24.534152"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:24.584011"], ["updated_at", "2017-01-25 20:30:24.584011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-10p10s5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1bephsd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1p4llzj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:24.654406"], ["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-01-25 20:30:24.689560"], ["updated_at", "2017-01-25 20:30:24.689560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-4kxv9s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-dhymf6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-14megu2.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:24.741413"], ["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-01-25 20:30:24.778318"], ["updated_at", "2017-01-25 20:30:24.778318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.2ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1abpgv4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-f7gn30.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-16d1x66.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:24.830240"], ["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-01-25 20:30:24.864163"], ["updated_at", "2017-01-25 20:30:24.864163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1ihxi5v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-gymt0h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-81212-1pwk4aq'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1wisud9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1mh2noz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-j7y7hm.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-g71hw0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-yxp9nt.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-uznt8z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-15v4wm3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-9ypp9d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-r7r6qr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-zxd9d4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1ksxoj8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1o4tnm8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-7ih15v.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-qd8dce' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1lsckei.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-64kfws' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-5xfllc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1fcy2r8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1srtzbc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-ytw7a7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-ivs67h.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1d5nbrf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-12y8bp6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-k4qo96.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1l6wl55.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1luonfu.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-17pnx6c.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-17err7e.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-fgxoq4.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-19pcbqk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-c6rpq2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-17xj2uu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1iii2cv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-jyai1j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-3913t1.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-x8bong' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-anhqmk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-lbcymd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1uo9agp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-15ayjo0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-i9v4v5.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1sltjkc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1s35ocv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1p46g6l.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:25.653331"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:25.689677"], ["updated_at", "2017-01-25 20:30:25.689677"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-13br54k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1vwjsnw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1fqowf9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:25.715125"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:25.748120"], ["updated_at", "2017-01-25 20:30:25.748120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-wimbry' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-ct7l0f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-177a0me.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:25.773866"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:25.810251"], ["updated_at", "2017-01-25 20:30:25.810251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-5fytmu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-j38wm8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1b2enyi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:25.834324"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:25.869759"], ["updated_at", "2017-01-25 20:30:25.869759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-wmo8lj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1hx7hxp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-eiy5m3.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-e0rg9y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1k4t0cq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1949oij.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.2ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-dpect4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1fg9wxi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-ghb1iz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.087469"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:26.123464"], ["updated_at", "2017-01-25 20:30:26.123464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-18ojxkc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-3qi9ol.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-rcofqr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.168750"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:26.203362"], ["updated_at", "2017-01-25 20:30:26.203362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-16mewb1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-26nqso.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-d0eagr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.254788"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:26.291312"], ["updated_at", "2017-01-25 20:30:26.291312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1m09u5v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-12myi64.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-xautos.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.346733"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:26.385578"], ["updated_at", "2017-01-25 20:30:26.385578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1wa345m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-11t4zeo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-bwzfye.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.438721"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:26.475142"], ["updated_at", "2017-01-25 20:30:26.475142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1sid14m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1f82aiz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-oxtv4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.511940"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:26.546151"], ["updated_at", "2017-01-25 20:30:26.546151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.7ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1nm3ha4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1w7qeii.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-p9ik32.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.600860"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:26.637054"], ["updated_at", "2017-01-25 20:30:26.637054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-opi26f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-129hsnq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1iamnv7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.661096"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:26.698901"], ["updated_at", "2017-01-25 20:30:26.698901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 20:30:26.705766"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-81212-3sfwp3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-81212-c8f01y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-81212-w6ryp3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.732027"], ["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-01-25 20:30:26.769340"], ["updated_at", "2017-01-25 20:30:26.769340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-81212-1k8weuv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bb13755fa57db61a273784ef4d6c42b820170125-81212-y8b2p6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bb13755fa57db61a273784ef4d6c42b820170125-81212-kc86v7.csv' 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", "failures20170125-81212-1k8weuv.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 20:30:26.810476"], ["updated_at", "2017-01-25 20:30:26.845068"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81212-1j4e4ya' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1qn2ycs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81212-1fnh3xj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:30:26.871578"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:30:26.909722"], ["updated_at", "2017-01-25 20:30:26.909722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = '--- - ignore - street - number - neighborhood - city - state - country ' WHERE "importers"."id" = ? [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-13f2t4d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-bcs3r7.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-zwafhz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:08.501592"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:08.553632"], ["updated_at", "2017-01-25 20:31:08.553632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-bdifty' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1ntq2jk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-ktfhmb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:08.578011"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:08.627609"], ["updated_at", "2017-01-25 20:31:08.627609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-v9f6if' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1w236ry.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-g0q38j.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:08.656795"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:08.689631"], ["updated_at", "2017-01-25 20:31:08.689631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-273v3s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-zht61b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1te4eh9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:08.712414"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:08.747015"], ["updated_at", "2017-01-25 20:31:08.747015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-n8ca22' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1bkibee.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1rscdqm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:08.776873"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:08.810758"], ["updated_at", "2017-01-25 20:31:08.810758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-hs024h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-12yt1rt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1mu76do.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1mrnrxt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-3htsnk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-9fe9wf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-msw9ut.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1s79ykc.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-xpwnza' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1ddnfg7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1w5wdu8.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-j7exwi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-185nbyd.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-157gdet' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1unxldl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-x806f6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-c66n1s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1os6tor.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-dldfr3.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-mm2bnh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1tteo9z.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-1cgikaa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-13rgq6y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-81379-1wphu27'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-1ym28ae' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-16ey25s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-8mkmb6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1pe933g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-312ofb.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1sfmc69.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1tr4rda.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-brsyee.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-1j0e2rx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-19p88en.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-ibeyi1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-1stic2x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-p4e93c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-6cx7xe.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-696pdn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-rrzy8r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1a7a3v6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-q4wk50' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1nfjp7m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-2eyybm.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-dbtw63' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-lwnz6j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-8zyor1.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:09.588723"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:09.622011"], ["updated_at", "2017-01-25 20:31:09.622011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-383qwp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-aq1bwu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-ngkykm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:09.651521"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:09.686568"], ["updated_at", "2017-01-25 20:31:09.686568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 20:31:09.694235"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-1rdnysf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1c0p4fs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-ajh2l0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:09.793159"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:09.831491"], ["updated_at", "2017-01-25 20:31:09.831491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 14ms (Views: 13.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-fo2nrq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1omvaa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1sdfmp2.csv'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 53ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-8ga4pg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-ixqria.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1dsx49m.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 47ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-juttf9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-145s476.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-n3hnba.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.045862"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:10.080961"], ["updated_at", "2017-01-25 20:31:10.080961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-hra0k4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-qfjajb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1ryudpo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.116889"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:10.147884"], ["updated_at", "2017-01-25 20:31:10.147884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-1jora3a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-14jlc00.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1apmuwg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.185935"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:10.217583"], ["updated_at", "2017-01-25 20:31:10.217583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-1w4vz7n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-p5ymur.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-z6hnf0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.279370"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:10.315443"], ["updated_at", "2017-01-25 20:31:10.315443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-bxdnqu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-10sjc9k.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1b32snm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.356886"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:10.393504"], ["updated_at", "2017-01-25 20:31:10.393504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-uohk1q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-vtdwu1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-2h82qr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.450666"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:31:10.481645"], ["updated_at", "2017-01-25 20:31:10.481645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = '--- - ignore - street - number - neighborhood - city - state - country ' WHERE "importers"."id" = ? [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-81379-4xgmfj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-81379-1szgawz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-81379-15eirpo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.529509"], ["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-01-25 20:31:10.565881"], ["updated_at", "2017-01-25 20:31:10.565881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-81379-6lpon9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a14efa824404ed623858e4c169ef5ae820170125-81379-18skykh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a14efa824404ed623858e4c169ef5ae820170125-81379-aqj3pu.csv' SQL (0.7ms) 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", "failures20170125-81379-6lpon9.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 20:31:10.615939"], ["updated_at", "2017-01-25 20:31:10.644958"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-15qwjbg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-sw6o1a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1hocd4x.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.699785"], ["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-01-25 20:31:10.735475"], ["updated_at", "2017-01-25 20:31:10.735475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-rsoo42' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-n7y1c6.csv'  (0.9ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-1sewed6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.787779"], ["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-01-25 20:31:10.827133"], ["updated_at", "2017-01-25 20:31:10.827133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-81379-z85h3g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-sg4d8w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-81379-pmaoyy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:31:10.862930"], ["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-01-25 20:31:10.900149"], ["updated_at", "2017-01-25 20:31:10.900149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82117-1uexfoz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82117-mli57n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82117-gpdapq.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82170-1ycjvwn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82170-1f0rfkk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82170-1chqnji.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82208-1uqdpky' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82208-7lcglb.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82208-w8h92t.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82259-1f6rsux' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82259-197z4kq.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82259-19wq7dg.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82326-zh3aoc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82326-1innevv.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82326-1wzkz1d.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82398-1g1tacv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82398-t3fn03.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82398-w9vgm2.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82475-6u2m2z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82475-1n4svdr.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82475-2sg5ib.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-d7bysm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1nt0t1t.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1fnf5lv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:14.065339"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:14.116606"], ["updated_at", "2017-01-25 20:47:14.116606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-evwzyq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1r4nfa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-pwe50z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:14.141779"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:14.194478"], ["updated_at", "2017-01-25 20:47:14.194478"]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-wasswl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1d9dxnl.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-xr7npt.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:14.226096"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:14.258136"], ["updated_at", "2017-01-25 20:47:14.258136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-78wx75' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-rf4jzs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1gwdrnq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:14.280789"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:14.311522"], ["updated_at", "2017-01-25 20:47:14.311522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-can6qr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-mai7y5.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-m6ml3x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-c3bd3a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1ioyj9n.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-tmmrmi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1yyg3ji.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-314ytp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1x7booi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-gtd49b.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-1noe2yl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-12robu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-17fxhnz.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-tvy15h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-c8tz47.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-82575-ad4v0j'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-khwhk9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-13cwoqb.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-gk57kc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-l952yd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-2zpazw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1a50djj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-ow9hnk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-sknexc.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-12podvm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1elz5au.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-ymzxfm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-169if7b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1oaptqn.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-104k0g6.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1vuz1dz.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-jpmgle.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-bztazj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-ugn49d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-gawmm4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-eeyet0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-j59vjt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1avmp15.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-wkhj00' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1gpwhm9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-3z7tic.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-1yf1gnb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-v8zlt3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1isaw76.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-10mghqf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1bma0hm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-18rite5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.101011"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.134989"], ["updated_at", "2017-01-25 20:47:15.134989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-82575-3kdx7q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-82575-8qal29.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-82575-10f2zdw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.185867"], ["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-01-25 20:47:15.217521"], ["updated_at", "2017-01-25 20:47:15.217521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-82575-1eioq1a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4771fbaf1caacbd13be8c2e64db3580320170125-82575-8v54zu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4771fbaf1caacbd13be8c2e64db3580320170125-82575-u41nz6.csv' 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", "failures20170125-82575-1eioq1a.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 20:47:15.266788"], ["updated_at", "2017-01-25 20:47:15.299206"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-yq016o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-xf6knl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1rd3und.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.328171"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.358656"], ["updated_at", "2017-01-25 20:47:15.358656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = '--- - ignore - street - number - neighborhood - city - state - country ' WHERE "importers"."id" = ? [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-11t1uot' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-19ktggm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-12rdn3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.431387"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.461815"], ["updated_at", "2017-01-25 20:47:15.461815"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 20:47:15.468006"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-1dxc66g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1egmat6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-12rqeuw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.489037"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.527234"], ["updated_at", "2017-01-25 20:47:15.527234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-wy47zg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-5k2siz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-2p8l7k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.556203"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.588916"], ["updated_at", "2017-01-25 20:47:15.588916"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 14.8ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-g4s72a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1ue7g79.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-yiyte1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.639518"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.672576"], ["updated_at", "2017-01-25 20:47:15.672576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-txdlsa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-tk0hut.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-18uzldw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.703608"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.738176"], ["updated_at", "2017-01-25 20:47:15.738176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-17wsdce' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-uc7t5h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1q410k6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.770807"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.804676"], ["updated_at", "2017-01-25 20:47:15.804676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-3jlsx1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-34umt5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-rb46al.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.850998"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.884426"], ["updated_at", "2017-01-25 20:47:15.884426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-1xc0cpb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-ht3ogt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-kq56qa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:15.922919"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 20:47:15.955130"], ["updated_at", "2017-01-25 20:47:15.955130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-7hs0dk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-lo79z6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1s3381t.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 48ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-1o2cp3g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1oyebhr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1e0kh3e.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to Completed 500 Internal Server Error in 52ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-4umaog' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1pf82ei.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1ixlr7x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.6ms) 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-01-25 20:47:16.265790"], ["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-01-25 20:47:16.303299"], ["updated_at", "2017-01-25 20:47:16.303299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-10tb4vu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-jzm13p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-te261s.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:16.343731"], ["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-01-25 20:47:16.379221"], ["updated_at", "2017-01-25 20:47:16.379221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82575-18c1rhg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-sf9ox6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82575-1orwclx.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 20:47:16.415906"], ["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-01-25 20:47:16.448138"], ["updated_at", "2017-01-25 20:47:16.448138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.2ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82762-2qz92r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82762-12z6uss.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82762-1l1hm7g.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82817-108wfsa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82817-1b1b2jw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82817-jeeaqt.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82914-1b9t0mb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82914-1q2spyn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82914-1b2mzh2.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-82959-1dtivyt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82959-xw7olo.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-82959-1dzwms7.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (3.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-65xquo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-g9zvnz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-bvt45k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:57.986743"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:58.058490"], ["updated_at", "2017-01-25 21:18:58.058490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-5yhj5d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-2tjpgi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-numht5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:58.083799"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:58.119436"], ["updated_at", "2017-01-25 21:18:58.119436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-mehoxh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-10zwjda.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1hotu71' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-111g8lr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-84919-1v9d188'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-6ff27m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-9ie6gt.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-2jydbe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1j8d942.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1wlh3g7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-x1s5g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-14fpcto.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-fvr3l3.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1vnr80z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-10hj3xm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-18nwx3f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1gklbd8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1x8buiu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1iftsny.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1a490lo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-yykj5a.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1t5iale' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-xo0pc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1t195l8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-yv87p9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-ek6qeq.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-h94x4x.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-71n3d4.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-v0xpti.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1u2191e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-11nimqg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1azqi0k.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-11hxgwa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1fv4me1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-19slyrb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1y9p072' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-t71mau.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1jyn73p.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-120q3mn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1jathwy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1h5hbs9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1xlc5mi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-z38cp4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-3gj7ft.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-tgsylx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1c7fx0w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-pfakss.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:58.959669"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:58.991362"], ["updated_at", "2017-01-25 21:18:58.991362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1eeg81a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-zzfvcv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-11851a8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.015493"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:59.053450"], ["updated_at", "2017-01-25 21:18:59.053450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-jt4n2b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1uuvkj8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1c7n5eg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.086550"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:59.115346"], ["updated_at", "2017-01-25 21:18:59.115346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-72wuub' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-130m1a5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1bd4s6h.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.169056"], ["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-01-25 21:18:59.204938"], ["updated_at", "2017-01-25 21:18:59.204938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-2evd15' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-8dv46u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-19vvn0k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.264407"], ["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-01-25 21:18:59.302227"], ["updated_at", "2017-01-25 21:18:59.302227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1wud4qp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-qqlul1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-ix7tef.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.339109"], ["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-01-25 21:18:59.372013"], ["updated_at", "2017-01-25 21:18:59.372013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.2ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-t3k5db' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1pn4i5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-v4n45z.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.413272"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:59.444935"], ["updated_at", "2017-01-25 21:18:59.444935"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 15.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-8gpoop' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-ojo6qt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1b8vhvk.csv' 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-01-25 21:18:59.523253"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:18:59.552290"], ["updated_at", "2017-01-25 21:18:59.552290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-unzotm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-k07ptg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1wtvc5g.csv' 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-01-25 21:18:59.585521"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:18:59.616255"], ["updated_at", "2017-01-25 21:18:59.616255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1mpdznx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1n1yfio.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-13nrvcc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.646377"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:59.677891"], ["updated_at", "2017-01-25 21:18:59.677891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-lacgnv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1poqkkb.csv'  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1ctr76m.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.719641"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:59.753679"], ["updated_at", "2017-01-25 21:18:59.753679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-xv3xau' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1ikl58a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-179dke.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.793778"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:59.829861"], ["updated_at", "2017-01-25 21:18:59.829861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 17ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-am9zu6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1m3jr77.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1fn13kn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.895076"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:18:59.930619"], ["updated_at", "2017-01-25 21:18:59.930619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-148salo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-h7ug3l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-10ydlc5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:18:59.972450"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:19:00.007914"], ["updated_at", "2017-01-25 21:19:00.007914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 2ms (Views: 1.0ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-uojlbm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1c9helo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1a0oytd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:19:00.085314"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:19:00.118940"], ["updated_at", "2017-01-25 21:19:00.118940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-1emak0l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-5cfy96.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-rj8vfh.csv' SQL (1.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:19:00.143208"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:19:00.178487"], ["updated_at", "2017-01-25 21:19:00.178487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-84919-1mvz2dy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-84919-zzl1fz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-84919-1u5z8zc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:19:00.247562"], ["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-01-25 21:19:00.284475"], ["updated_at", "2017-01-25 21:19:00.284475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-84919-1qnjxhv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/aef3c008ff711d0840e6bea7162c01e420170125-84919-1sc3iej.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/aef3c008ff711d0840e6bea7162c01e420170125-84919-1ov3h1g.csv' 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", "failures20170125-84919-1qnjxhv.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:19:00.328556"], ["updated_at", "2017-01-25 21:19:00.356475"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-84919-16bn8h8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1vszd8s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84919-1e6f5at.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:19:00.381023"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:19:00.412600"], ["updated_at", "2017-01-25 21:19:00.412600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = '--- - ignore - street - number - neighborhood - city - state - country ' WHERE "importers"."id" = ? [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-1ebnyd4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1gwl9e5.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1oi5vs1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:23.719409"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:23.770337"], ["updated_at", "2017-01-25 21:20:23.770337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-l5srfj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1gyxf9m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1riu5rk.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:23.798744"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:23.831557"], ["updated_at", "2017-01-25 21:20:23.831557"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-he7vix' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-90d6oo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1errvla.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:23.898027"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:23.931688"], ["updated_at", "2017-01-25 21:20:23.931688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-knpir3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1ca3k01.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-qaxgxm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:23.958677"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:23.990115"], ["updated_at", "2017-01-25 21:20:23.990115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = '--- - ignore - street - number - neighborhood - city - state - country ' WHERE "importers"."id" = ? [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-85131-1f0cctx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-85131-19n7ubq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-85131-4vow7a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:24.065528"], ["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-01-25 21:20:24.099126"], ["updated_at", "2017-01-25 21:20:24.099126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-85131-1g8jrl5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8fb16e4ac5425402a12fa67b318b908420170125-85131-8e5rw5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8fb16e4ac5425402a12fa67b318b908420170125-85131-1i32sch.csv' 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", "failures20170125-85131-1g8jrl5.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:20:24.142408"], ["updated_at", "2017-01-25 21:20:24.172804"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-1lpy0v1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1pfj80o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1u7bmhr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:24.294403"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:24.330295"], ["updated_at", "2017-01-25 21:20:24.330295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-jzoy0w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-j4i95t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-chxrs.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:24.356245"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:24.386917"], ["updated_at", "2017-01-25 21:20:24.386917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-1kzlc8v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-60xiz0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-17yx7ul.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:24.411303"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:24.443646"], ["updated_at", "2017-01-25 21:20:24.443646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-196i78r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-iysmj6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1eyolay.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-a5v69r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-wx7e85.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1rsvf21.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1lowbig.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-kug6l5.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-xfmd55' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1akb71b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1u68xf2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-11m0fwf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-11ye7na.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-wjazsz.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-1pmms38' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-ystgi0.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-kid8fw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-yhcsbw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-85131-rr7fzi'  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-dwut9a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-9mj42y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-150v6fs.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-mzgsj9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1am1u4j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1i8ae08.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1ibi4iv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-lnqzwl.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1ps9k7m.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-v8aksp.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1mn0dv0.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-6ioftp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-2t7i5z.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-z5oa38' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-13wwobr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-16p218m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-15oy0ab' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1b4169n.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-qk5lnp.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-7is3zq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-ec7x1k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1kcnq3w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-jhls6q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-g68i78.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-9vdxab.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-k6sv92' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-50niu2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-4ay58z.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:25.205940"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:25.240412"], ["updated_at", "2017-01-25 21:20:25.240412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-ok9pcm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1uhpc5p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-kn78hw.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:25.280310"], ["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-01-25 21:20:25.314053"], ["updated_at", "2017-01-25 21:20:25.314053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-14vdsv5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-106qccv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-17daotu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:25.366184"], ["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-01-25 21:20:25.403068"], ["updated_at", "2017-01-25 21:20:25.403068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.3ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-tuwh0m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1nvcotp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-a8n0zm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:25.441581"], ["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-01-25 21:20:25.477779"], ["updated_at", "2017-01-25 21:20:25.477779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-1aqvfab' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1qcps5l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-4uts23.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:25.518368"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:25.553218"], ["updated_at", "2017-01-25 21:20:25.553218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["Bairro", "Cidade", "Cod", "Estado", "Nome", "Nome", "Numero", "Pais", "Rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 12.9ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-clngyp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-e1tznr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-q3yb45.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:25.632509"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:25.667526"], ["updated_at", "2017-01-25 21:20:25.667526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-1g4nqd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1ivh375.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-ppy9yy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:25.707274"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:25.739145"], ["updated_at", "2017-01-25 21:20:25.739145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-1js0yit' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1gdlb91.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-ss6z15.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:25.776780"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:25.811002"], ["updated_at", "2017-01-25 21:20:25.811002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-1ly5ue7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-cbsgb7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-sehaed.csv' 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-01-25 21:20:25.862507"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:20:25.891064"], ["updated_at", "2017-01-25 21:20:25.891064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-7ux09c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-12ummxn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-d1wnui.csv' 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-01-25 21:20:25.928491"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:20:25.958288"], ["updated_at", "2017-01-25 21:20:25.958288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.3ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-1mw94p0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1pgj8r8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-1oj1p3f.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:25.992669"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:26.027910"], ["updated_at", "2017-01-25 21:20:26.027910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85131-9vjz2j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-m771ug.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85131-pvcqh3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:20:26.059554"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:20:26.090368"], ["updated_at", "2017-01-25 21:20:26.090368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-cjjwvu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-ty0rpd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-gjtc4m.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:42.429275"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:42.479871"], ["updated_at", "2017-01-25 21:22:42.479871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-rsyl3u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1af3p4q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1cg5q5m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:42.517385"], ["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-01-25 21:22:42.547539"], ["updated_at", "2017-01-25 21:22:42.547539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-gfi9hu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1v0e90n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-13t5834.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:42.612375"], ["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-01-25 21:22:42.648400"], ["updated_at", "2017-01-25 21:22:42.648400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.2ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-1gpw1aw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-a17m2x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-7rep39.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:42.699704"], ["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-01-25 21:22:42.737821"], ["updated_at", "2017-01-25 21:22:42.737821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-2domyr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-hu4zcb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-19st1vp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1ihjlal.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-19bleos.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-wogtmt.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-sfm756.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-ruqqnf.csv'  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-di2p33' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-lzl20x.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-1nf3drc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-ts7t29.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-4v4m3l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1ihx0vp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-ussp44.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-velj31.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-kyxcst.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-2t3y7o.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-15syo9u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-l7vhg8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-85343-1d6yqpu'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-12wsie5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-5odv5x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1x6ki97.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-xx5uhl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1nsnphl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1kbcej.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-zchvve.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1cmv52z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1wrv0hq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1glk1kq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-12ky2zi.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-9subsv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-qoibol.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1lnmtxd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-1wd7vfo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-18zqg61.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1cy05sj.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-2bbypw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-101h4u3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-kbeuoc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-vfjukw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-ui64pn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-vaox5y.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-1a5ggwv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-ouus6u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1rw8quf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:43.543266"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:43.579318"], ["updated_at", "2017-01-25 21:22:43.579318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-46o377' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-w7skzh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-16383t4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:43.610784"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:43.643477"], ["updated_at", "2017-01-25 21:22:43.643477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-1b76y7b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-a8oy1v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1cedanh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:43.665743"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:43.697814"], ["updated_at", "2017-01-25 21:22:43.697814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-1bvl1p2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-wh67ob.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-bmri45.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:43.724782"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:43.755489"], ["updated_at", "2017-01-25 21:22:43.755489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-pvi1qf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1djkyr8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1rrtemt.csv' 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-01-25 21:22:43.842484"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:22:43.872023"], ["updated_at", "2017-01-25 21:22:43.872023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.6ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-lcxus2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1sbwy5p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-ueo5p8.csv' 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-01-25 21:22:43.911531"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:22:43.942532"], ["updated_at", "2017-01-25 21:22:43.942532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-f8b4k3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-uxe8ga.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-ndo4b7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:43.982691"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:44.015553"], ["updated_at", "2017-01-25 21:22:44.015553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-1vcsxlt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1p97qbi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-v7lmln.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:44.055403"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:44.088816"], ["updated_at", "2017-01-25 21:22:44.088816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-6b7p77' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-nhehgg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-e414er.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:44.127179"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:44.161784"], ["updated_at", "2017-01-25 21:22:44.161784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-d1fnee' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1dc0m8w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-100x4mf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:44.209143"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:44.242595"], ["updated_at", "2017-01-25 21:22:44.242595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-1obkrsb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1ly9osl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1i8d3d4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:44.284472"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:44.320954"], ["updated_at", "2017-01-25 21:22:44.320954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-1ri0v6i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-15q6uh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-495wxj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:44.371878"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:44.404700"], ["updated_at", "2017-01-25 21:22:44.404700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["Bairro", "Cidade", "Cod", "Estado", "Nome", "Nome", "Numero", "Pais", "Rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-lsdwa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-djou35.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-lmbzw9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:44.445814"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:44.480539"], ["updated_at", "2017-01-25 21:22:44.480539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-2btlfk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-ffucsv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-8ugnnf.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:44.508052"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:44.542729"], ["updated_at", "2017-01-25 21:22:44.542729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85343-ancn6b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-1w0oaob.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85343-vmz859.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:44.625155"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:22:44.659364"], ["updated_at", "2017-01-25 21:22:44.659364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = '--- - ignore - street - number - neighborhood - city - state - country ' WHERE "importers"."id" = ? [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-85343-s2d1k0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-85343-12c3lo0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-85343-hgtxcf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:22:44.703243"], ["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-01-25 21:22:44.736856"], ["updated_at", "2017-01-25 21:22:44.736856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-85343-yezbz5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0589ad43708c96e9a9b37cab826691cb20170125-85343-1iqvp76.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0589ad43708c96e9a9b37cab826691cb20170125-85343-j4bwur.csv' 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", "failures20170125-85343-yezbz5.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:22:44.776955"], ["updated_at", "2017-01-25 21:22:44.814189"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-n450c9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-rgcter.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1qqj4cd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:23.819095"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:23.870875"], ["updated_at", "2017-01-25 21:23:23.870875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-brt2yg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-hetu4s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-28r10r.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:23.900543"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:23.946013"], ["updated_at", "2017-01-25 21:23:23.946013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 17ms (Views: 10.9ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-ganlep' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-y6v93x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-x9779h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:23.996829"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:24.027363"], ["updated_at", "2017-01-25 21:23:24.027363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["Bairro", "Cidade", "Cod", "Estado", "Nome", "Nome", "Numero", "Pais", "Rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 16ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-5yfhu6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-bgxczc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1si8vjz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.108741"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:24.140580"], ["updated_at", "2017-01-25 21:23:24.140580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1n89pqz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-13a47g0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-145k4dl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.177481"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:24.209506"], ["updated_at", "2017-01-25 21:23:24.209506"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-vawocg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1umch79.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-16cve4w.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.248085"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:24.278353"], ["updated_at", "2017-01-25 21:23:24.278353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-179sszm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-jnrghl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-37c336.csv' 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-01-25 21:23:24.336896"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:23:24.367171"], ["updated_at", "2017-01-25 21:23:24.367171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1m69pxm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-qv22rc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-jeiqo1.csv' 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-01-25 21:23:24.402905"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:23:24.433979"], ["updated_at", "2017-01-25 21:23:24.433979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1hhp9g6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-fuxief.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-175542a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.466187"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:24.499276"], ["updated_at", "2017-01-25 21:23:24.499276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-19e8tkv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-131z6he.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-usg95a.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.538740"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:24.575142"], ["updated_at", "2017-01-25 21:23:24.575142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1ag5yzi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1k1r9vj.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1wxbvt5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.600463"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:24.637429"], ["updated_at", "2017-01-25 21:23:24.637429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-12sj79j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-621cp8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-cd0442.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.689986"], ["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-01-25 21:23:24.721164"], ["updated_at", "2017-01-25 21:23:24.721164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1vw4wic' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-110zveo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1fhohjs.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.765076"], ["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-01-25 21:23:24.798286"], ["updated_at", "2017-01-25 21:23:24.798286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-jqefl2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-zuk1zk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1a9t5lk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.846469"], ["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-01-25 21:23:24.879236"], ["updated_at", "2017-01-25 21:23:24.879236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.3ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1e04vxz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1w4n3un.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1h2vdhx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:24.984553"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:25.019359"], ["updated_at", "2017-01-25 21:23:25.019359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-nie6nr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-oh6bmq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-s9w111.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:25.042331"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:25.076761"], ["updated_at", "2017-01-25 21:23:25.076761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1xuji07' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-jmpt05.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1dpsscb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:25.102008"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:25.134150"], ["updated_at", "2017-01-25 21:23:25.134150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-al89v3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-16ilkfp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-85513-1goizh1'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-mlxo0d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1ouqte9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1bgzh0q.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1trl9sc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1oobxgt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1556dzd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-js4qyv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-tn2t49.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-15fjwm7.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1vhyped.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-gec7nn.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-y52zp3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-10r4q0v.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-18d0e0k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1mzyoey.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-kn259g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-joqbi9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1hf7bq2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1vgsyc5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-jexaby.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-ca1s4.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-153g2kd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-ufzp76.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-4m354s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1p5ejyj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-yw0kqs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-503tbt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1eqa61.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-11pvlot.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-10545cv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1yb0drh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-4iqlne.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-lkzgrz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-fnd1kk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-j7n9ck.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1nc5pvm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-6pl927.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-wnjmwy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1v2ak7t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-177dqqo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-zsiuav.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85513-1g8i52i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1b0f8ht.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85513-1vrlzfv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:25.924452"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:23:25.955654"], ["updated_at", "2017-01-25 21:23:25.955654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-85513-1f21kjd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-85513-nmursm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-85513-6c6i6o.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:23:25.982750"], ["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-01-25 21:23:26.017555"], ["updated_at", "2017-01-25 21:23:26.017555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-85513-1l2pzgy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/866f6dd21a6070c9c036021f3857f28b20170125-85513-1wbzz41.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/866f6dd21a6070c9c036021f3857f28b20170125-85513-1ywxl8l.csv' SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170125-85513-1l2pzgy.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:23:26.048954"], ["updated_at", "2017-01-25 21:23:26.078293"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85686-17f0n7n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85686-b8vlnl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85686-6xq5jm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:24:17.980816"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:24:18.032923"], ["updated_at", "2017-01-25 21:24:18.032923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85686-8d02vv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85686-11hmk6l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85686-132y9xz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85686-3kevy6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85686-wlcopl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85686-1wgs6gr.csv'  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85728-1a09b2t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85728-cxtqr0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85728-60ha8t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:24:28.788975"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:24:28.836085"], ["updated_at", "2017-01-25 21:24:28.836085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85728-1av9z2v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85728-1cotg5d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85728-1xz1j82.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85728-1vpevxw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85728-1h69lzd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85728-1b6uvl5.csv'  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85844-52ui3p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85844-tp2m6v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85844-85y1lp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:25:59.747764"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:25:59.802057"], ["updated_at", "2017-01-25 21:25:59.802057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85844-1hnfpis' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85844-wlvpob.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85844-orv1yw.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:25:59.827409"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:25:59.857738"], ["updated_at", "2017-01-25 21:25:59.857738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85927-1wy54v2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85927-1iggeae.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85927-wh513i.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:39.748215"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:39.797758"], ["updated_at", "2017-01-25 21:26:39.797758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85927-1997tju' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85927-ys20c0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85927-d16b8p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:39.820109"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:39.848961"], ["updated_at", "2017-01-25 21:26:39.848961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85969-qmtdwn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85969-fbohki.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85969-1rh465a.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:49.396807"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:49.444156"], ["updated_at", "2017-01-25 21:26:49.444156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85969-12ns2i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85969-1tftcnt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85969-9y0yqp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:49.466998"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:49.505130"], ["updated_at", "2017-01-25 21:26:49.505130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.2ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-1cddj4s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-fi3a9y.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-vx9899.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:55.288668"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:55.339841"], ["updated_at", "2017-01-25 21:26:55.339841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-e142q1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-rag1ji.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-sa6r0n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1byoram.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-85998-znblad'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-1phnqs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-c9ek6h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-b5zpfq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-ywht87' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1bpq5bx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-2fz8xn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-et7jp0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1sw8lcp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-7pgc1j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1q5w5zm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1w47fwy.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-1b0drww' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1gs6wxb.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-jnoyte' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-oytkjo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-tyh2js.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-p9eeo2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1683ab7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-11q9awd.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-12o541q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-5n4nhu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-rifaje.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1ac35j4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-159kedf.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-7s529b.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1wpb7l2.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-oos1iu.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-1e5rjjd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-b752ue.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-11i2z08.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:55.893049"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:55.924082"], ["updated_at", "2017-01-25 21:26:55.924082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-axigvo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1k16sb5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-r1xlxz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-xnvvaf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-yfnowe.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-11y6hkq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-9is12r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-103bogl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1eerurd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:56.051671"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:56.084638"], ["updated_at", "2017-01-25 21:26:56.084638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-oee45a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-2xxsi2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1lmtj3l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:56.107500"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:56.152468"], ["updated_at", "2017-01-25 21:26:56.152468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-11f1m3q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-16hqs1h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-sr4p87.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:56.182889"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:56.217925"], ["updated_at", "2017-01-25 21:26:56.217925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-85998-qdyjnd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-1avhbeb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-85998-pzps9q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:26:56.255741"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:26:56.288832"], ["updated_at", "2017-01-25 21:26:56.288832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-1pc86wi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1fwrkqd.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1x3apq9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:00.733623"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:00.782849"], ["updated_at", "2017-01-25 21:27:00.782849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-1es1brg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-lmqbjn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-191ozod.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:00.813715"], ["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-01-25 21:27:00.861149"], ["updated_at", "2017-01-25 21:27:00.861149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-1fksnjo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-mf6ww2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-9ihf6h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:00.918976"], ["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-01-25 21:27:00.956512"], ["updated_at", "2017-01-25 21:27:00.956512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-1hmadld' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-19are6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1y43d15.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:00.995023"], ["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-01-25 21:27:01.026963"], ["updated_at", "2017-01-25 21:27:01.026963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-86070-cf0ru7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86070-6yibx8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86070-me9mn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:01.071563"], ["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-01-25 21:27:01.104483"], ["updated_at", "2017-01-25 21:27:01.104483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-86070-pwkn99.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bd2bf049e1bcad4f9eedb99fdce466aa20170125-86070-wln3yv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bd2bf049e1bcad4f9eedb99fdce466aa20170125-86070-h2f940.csv' 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", "failures20170125-86070-pwkn99.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:27:01.145680"], ["updated_at", "2017-01-25 21:27:01.175508"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-1r24n5f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1rptq0d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-18npiyl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-4et9a6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-5dkm3o.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-emjief.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-12z9l1a.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1hr191l.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-1299vcw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-13ho15f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-9tz9r5.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-1i0fj23' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-wawt6n.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-17c27wl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-177qjz.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-l9yvi4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1cqcogd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1eqi5sq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1uw27k5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-frxp35.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-8uhe8f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1h9v3fp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-v0oza5.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-kc1bx8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1e7qrpm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-cj8i20.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1sphv8e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-bczkf6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-nkoive.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-gf2cti' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1oexcov.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-86070-twlzo9'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-13vgsm1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1l1m1zx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-yyinga.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-2014mx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-om7q56.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-nsbddl.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-119w4gj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1j9mmun.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-y2pqxq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:01.823586"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:01.854339"], ["updated_at", "2017-01-25 21:27:01.854339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-k9hzce' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-6lq2is.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-k4p86f.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:01.880635"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:01.911956"], ["updated_at", "2017-01-25 21:27:01.911956"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-d38c0w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-jlgdkt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1mmpvf4.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:01.937249"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:01.968664"], ["updated_at", "2017-01-25 21:27:01.968664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-1cf0yk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1wdl3cb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-9v6miu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:01.991369"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.025679"], ["updated_at", "2017-01-25 21:27:02.025679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-vqc4qe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-46u1nh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-q7h18o.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:02.049465"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.079942"], ["updated_at", "2017-01-25 21:27:02.079942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-wb0jtm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-teyqdq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-p25p3e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:02.130892"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.163019"], ["updated_at", "2017-01-25 21:27:02.163019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-f9ph3w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1fbigxk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1qaz8k5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:02.188105"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.219669"], ["updated_at", "2017-01-25 21:27:02.219669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-8ol8gm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1wmus5i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1bsgn9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:02.303408"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.336858"], ["updated_at", "2017-01-25 21:27:02.336858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-1gwyh41' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-pxu2j8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-rxl8kc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:02.390190"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.420698"], ["updated_at", "2017-01-25 21:27:02.420698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-xqwxl8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1r3qcbb.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-wib1mo.csv' 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-01-25 21:27:02.461605"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:27:02.491040"], ["updated_at", "2017-01-25 21:27:02.491040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-qgp9va' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1hm9t5r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1l9ope8.csv' 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-01-25 21:27:02.525182"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:27:02.554133"], ["updated_at", "2017-01-25 21:27:02.554133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-n9we3o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-67rmol.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1h60daf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:02.600212"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.633933"], ["updated_at", "2017-01-25 21:27:02.633933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["Bairro", "Cidade", "Cod", "Estado", "Nome", "Nome", "Numero", "Pais", "Rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-qgt93x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-oatxmf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-r1e0hr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.7ms) 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-01-25 21:27:02.745320"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.780097"], ["updated_at", "2017-01-25 21:27:02.780097"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-11dkd2l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-182q12n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-z8gjus.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:02.822066"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.857549"], ["updated_at", "2017-01-25 21:27:02.857549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86070-g3wkba' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-1aebvso.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86070-13qtmxg.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:27:02.900222"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:27:02.935880"], ["updated_at", "2017-01-25 21:27:02.935880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1fqw2dk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1lueus0.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-tstb3r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.023397"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:29.069668"], ["updated_at", "2017-01-25 21:28:29.069668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-c6u5tc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-u2hu68.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-7ccszy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.108654"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:29.155960"], ["updated_at", "2017-01-25 21:28:29.155960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-n9ea8p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-ttox5t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-j3sqjr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.189836"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:29.221804"], ["updated_at", "2017-01-25 21:28:29.221804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-86277-46ti2b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86277-1w0lzwk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86277-rcun2k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.300210"], ["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-01-25 21:28:29.336456"], ["updated_at", "2017-01-25 21:28:29.336456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-86277-14ckax5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b3bdc4cc5b3f258a4bb509b070df2cf920170125-86277-i3ju2s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b3bdc4cc5b3f258a4bb509b070df2cf920170125-86277-dy2uvp.csv' 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", "failures20170125-86277-14ckax5.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:28:29.383104"], ["updated_at", "2017-01-25 21:28:29.414825"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-dgooaj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-opeslt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-tngrxf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.504493"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:29.541420"], ["updated_at", "2017-01-25 21:28:29.541420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.8ms) Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-a2dq6j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-tlaiqu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-bsm2ir.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.582615"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:29.613629"], ["updated_at", "2017-01-25 21:28:29.613629"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-ea55sw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1obfrjk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-14ta8vc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.697209"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:29.738277"], ["updated_at", "2017-01-25 21:28:29.738277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1bcw1l5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-cg44ky.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-tptduk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.776303"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:29.806924"], ["updated_at", "2017-01-25 21:28:29.806924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1nr1juq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-wsi1xg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1593lzj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.840823"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:29.875081"], ["updated_at", "2017-01-25 21:28:29.875081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1jzthh3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-iroyuh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-3tnl01.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:29.913284"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:29.945709"], ["updated_at", "2017-01-25 21:28:29.945709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1acc1s5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-onw5zy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1u04g0r.csv' 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-01-25 21:28:29.988715"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:28:30.017995"], ["updated_at", "2017-01-25 21:28:30.017995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-lmwkj7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-49wrbw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-nluwtm.csv' 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-01-25 21:28:30.053818"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:28:30.087229"], ["updated_at", "2017-01-25 21:28:30.087229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-qaihuu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1u3kz0w.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-sm6f4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-6fccga.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-u14x5w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-8p6y2j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-3tp5ig.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1p2h819.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1bcgo9z.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-24mexa.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-w0pgdi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-odh788.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1aga045' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1s4grcj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-hp8vfc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-on2gpt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-sl38tr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-cozfbl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-f74o6k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-vb3zlw.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1vrot4x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1x0kikf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-86277-8fwxa4'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1xk9s58' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-g0d9q2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-5w79dw.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-12p5edt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-u8danl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-v8she8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1eolval.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-10cuojq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-voygzg.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1i8eira' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-eviqol.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1f0kz23.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:30.641659"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:30.674147"], ["updated_at", "2017-01-25 21:28:30.674147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-18czcee' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-569d33.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-cfrygk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1tjlw53' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-gh27n9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-m8i9kq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1epr2ae' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-ikz11j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-k81v53.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:30.800239"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:30.833298"], ["updated_at", "2017-01-25 21:28:30.833298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-3rjmsc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1wf2dti.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1s7h29x.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:30.861485"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:30.898612"], ["updated_at", "2017-01-25 21:28:30.898612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-af07qr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-n7491k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-3otmrx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:30.926661"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:30.958394"], ["updated_at", "2017-01-25 21:28:30.958394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-i78lqq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-tmabe0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-latxoe.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:30.980966"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:28:31.023553"], ["updated_at", "2017-01-25 21:28:31.023553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-sd91n9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-a0ofaw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-8mz4rz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:31.051112"], ["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-01-25 21:28:31.085313"], ["updated_at", "2017-01-25 21:28:31.085313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-1336n48' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-gldwrj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-ry26cl.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:31.121157"], ["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-01-25 21:28:31.154308"], ["updated_at", "2017-01-25 21:28:31.154308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86277-19von8o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1js84h3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86277-1mjrbrh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:28:31.205279"], ["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-01-25 21:28:31.239078"], ["updated_at", "2017-01-25 21:28:31.239078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-nrr8xl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-u6joa3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-ljzopw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:13.491265"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:13.542757"], ["updated_at", "2017-01-25 21:29:13.542757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-86458-11dzdyv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86458-16p1k5a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86458-cd7b75.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-01-25 21:29:13.636013"], ["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-01-25 21:29:13.668260"], ["updated_at", "2017-01-25 21:29:13.668260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-86458-1u26pb1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/193f846bbb7fe79fac6e311d2433258720170125-86458-1wr0v90.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/193f846bbb7fe79fac6e311d2433258720170125-86458-gfc00s.csv' SQL (0.1ms) 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", "failures20170125-86458-1u26pb1.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:29:13.728941"], ["updated_at", "2017-01-25 21:29:13.762147"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1copuhg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1gjetxy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-ox9irs.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:13.790631"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:13.822223"], ["updated_at", "2017-01-25 21:29:13.822223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-13impbk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-37edi9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-a7yiqv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:13.849770"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:13.881992"], ["updated_at", "2017-01-25 21:29:13.881992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1vpdv9l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-xtblca.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1udbden.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:13.911812"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:13.946534"], ["updated_at", "2017-01-25 21:29:13.946534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1hkbcya' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-nzmmhn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1tfr2p3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:13.991718"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:14.025907"], ["updated_at", "2017-01-25 21:29:14.025907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1ass8xd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1k866lv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1q1otzz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:14.062183"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:14.093497"], ["updated_at", "2017-01-25 21:29:14.093497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1uk6lxb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1ha8e03.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1tljacp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:14.127072"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:14.157502"], ["updated_at", "2017-01-25 21:29:14.157502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-13129xi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-cx9pis.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1qan2sw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:14.234024"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:14.267353"], ["updated_at", "2017-01-25 21:29:14.267353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-01-25 21:29:14.277499"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1mozm0y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1sx6zbo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-glf100.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:14.306393"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:14.342432"], ["updated_at", "2017-01-25 21:29:14.342432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["bairro", "cidade", "cod", "estado", "nome", "numero", "pais", "rua"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-nw3iq5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-xrzlx6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-b4zhzo.csv' 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-01-25 21:29:14.382980"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:29:14.411258"], ["updated_at", "2017-01-25 21:29:14.411258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 51ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-e4i0p4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-17xjhkq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1c398zu.csv' 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-01-25 21:29:14.449133"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:29:14.481471"], ["updated_at", "2017-01-25 21:29:14.481471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1ece1nk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1nwfg4v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-po1pwb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:14.580362"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:14.613230"], ["updated_at", "2017-01-25 21:29:14.613230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1ca80ke' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1aqcw5m.csv'  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-7q1dpg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:14.637175"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:14.671797"], ["updated_at", "2017-01-25 21:29:14.671797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-jofpt9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1hwlhgl.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-sd4aj9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:14.700450"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:14.734762"], ["updated_at", "2017-01-25 21:29:14.734762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-18zfmft' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-uus89a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-zxz6s0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1krypjo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-aueh03.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1q4chu3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1bh64js.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-y5qunq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-o1rh72' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-wqb1dd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-u0og9j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1bh34bz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1sikcwd.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-sq7xen.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-8l6uho.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-oqt6xi.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-9u7gd4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-jbe319.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1c66zlm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-n5bnhn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-u2mrew.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1ponctc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-784p4k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-3hewn9.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-afs4eg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1nbzpd2.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1aokph6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-hbrdxk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-37hle2.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-njbh0c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-rjv5lp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-86458-16vz2ai'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1vooabm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1jtzy25.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1kozyak.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:15.281339"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:15.314066"], ["updated_at", "2017-01-25 21:29:15.314066"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1ml2wj9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-gfl985.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-5lejq0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1yemla5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-6e1dc2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-kgkx3.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (1.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1o1rle2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-6osf4h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-4ypigq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:15.454265"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:15.486125"], ["updated_at", "2017-01-25 21:29:15.486125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1vn3yvo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-14uji2m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-7rsu1d.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:15.512166"], ["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-01-25 21:29:15.545050"], ["updated_at", "2017-01-25 21:29:15.545050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-ebbsrw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-747zq0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1v5ieo7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:15.598346"], ["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-01-25 21:29:15.633036"], ["updated_at", "2017-01-25 21:29:15.633036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86458-1l707uq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-17m7ya6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86458-1xe95ql.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:15.667330"], ["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-01-25 21:29:15.699440"], ["updated_at", "2017-01-25 21:29:15.699440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1uezj5b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-kfns22.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-6e9vqm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:46.525231"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:46.573932"], ["updated_at", "2017-01-25 21:29:46.573932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1f9rxu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1s6dc80.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1k5q73x.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:46.604293"], ["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-01-25 21:29:46.651020"], ["updated_at", "2017-01-25 21:29:46.651020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-16td237' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-11ijgqi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-l1cuxo.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:46.698076"], ["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-01-25 21:29:46.733352"], ["updated_at", "2017-01-25 21:29:46.733352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1bltnij' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-6i0viz.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1swuesh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:46.780527"], ["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-01-25 21:29:46.817196"], ["updated_at", "2017-01-25 21:29:46.817196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1tudffi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1xm902m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-j8rz50.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:46.896334"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:46.928156"], ["updated_at", "2017-01-25 21:29:46.928156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-4e65vo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-dq0o4q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-8akpsf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:46.953482"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:46.987807"], ["updated_at", "2017-01-25 21:29:46.987807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-86599-1en9i36' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86599-cpl3i1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86599-1ig4dp5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:47.048940"], ["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-01-25 21:29:47.084134"], ["updated_at", "2017-01-25 21:29:47.084134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-86599-q2d5io.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0e87617b9ead1be93f9fa79dce5c289920170125-86599-1f7q8fa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0e87617b9ead1be93f9fa79dce5c289920170125-86599-kwgdy8.csv' 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", "failures20170125-86599-q2d5io.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:29:47.117280"], ["updated_at", "2017-01-25 21:29:47.150694"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1k5121w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-193jbh0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-oi1ti7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-rsb5jx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-voyapi.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1s9q4py.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-jutjuk.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-okn10c.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-597aun' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-oqyeiz.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-plf4x9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1jnz2e6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-18nemr9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-iz2y29.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1qhe85z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1bng0bj.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1rutv3i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-223xe3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1qnyo6i.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-zyb37j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1gm638l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-86599-1o1dby9'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1xtje1w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-x50lfi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-sp8ufz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-3unnwi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-107ipzy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-wsumxf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1y0gnxt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-kjaps7.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-s8o1rn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-3ifnld.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1uw8ffe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1qy4pol.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1k6py1k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-97lp0n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-6ptca1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-752cge.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1l69c5b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1bm0jv6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1gar1ce.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:47.866479"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:47.898000"], ["updated_at", "2017-01-25 21:29:47.898000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1e0tz6u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1s1pqa6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1sdx176.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:47.924372"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:47.958624"], ["updated_at", "2017-01-25 21:29:47.958624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1v6july' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-y31tq9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1s4q9r3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:47.980695"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:48.011244"], ["updated_at", "2017-01-25 21:29:48.011244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-11enysk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1d4mp4i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-3j1ag7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:48.034863"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:48.069429"], ["updated_at", "2017-01-25 21:29:48.069429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-n4zcsd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-6jsv01.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1f9bcbw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:48.095280"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:48.129199"], ["updated_at", "2017-01-25 21:29:48.129199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.5ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-fpuw8u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1atcj3j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-3nwhea.csv' 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-01-25 21:29:48.185268"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:29:48.214624"], ["updated_at", "2017-01-25 21:29:48.214624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 56ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-rjflra' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-141zbqk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-xj94oy.csv' 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-01-25 21:29:48.252626"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:29:48.284200"], ["updated_at", "2017-01-25 21:29:48.284200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-txu4ln' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1rn6077.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1b8xpct.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:48.314244"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:48.349120"], ["updated_at", "2017-01-25 21:29:48.349120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1u773b9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-xymqhu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-6q8fz8.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:48.391542"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:48.423057"], ["updated_at", "2017-01-25 21:29:48.423057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-2rhwqu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-havvfn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1gh97yf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:48.458083"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:48.493203"], ["updated_at", "2017-01-25 21:29:48.493203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-01-25 21:29:48.504011"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1v0iiyp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1dm2egj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1bk85fc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:48.531611"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:48.564814"], ["updated_at", "2017-01-25 21:29:48.564814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 21:29:48.575406"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-j70nfh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-7rwc3n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-1l3yauv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:48.663780"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:48.700612"], ["updated_at", "2017-01-25 21:29:48.700612"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 21:29:48.710394"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86599-1ez5wye' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-tva3if.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86599-t0gmz4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:29:48.737070"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:29:48.770914"], ["updated_at", "2017-01-25 21:29:48.770914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1b8e91i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-eno3wj.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-dd217v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:07.837478"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:07.885652"], ["updated_at", "2017-01-25 21:30:07.885652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-6cfgv4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-19igr3r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-c5d5q5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:07.938764"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:07.970695"], ["updated_at", "2017-01-25 21:30:07.970695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 21:30:07.998717"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 23ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-13ilt2y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-pkcd6i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-35a386.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.031810"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:08.064200"], ["updated_at", "2017-01-25 21:30:08.064200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 21:30:08.076932"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1gpnik7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1muruyy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1vlcj13.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.107530"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:08.136837"], ["updated_at", "2017-01-25 21:30:08.136837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 21:30:08.145894"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1gd83c0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-jso5w4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-18zfbir.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.175080"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:08.205801"], ["updated_at", "2017-01-25 21:30:08.205801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 21ms (Views: 15.0ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1wqpofl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-zh6sqb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1aqp6ih.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.254075"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:08.287297"], ["updated_at", "2017-01-25 21:30:08.287297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1avyaub' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1ptn4z7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-dnzwev.csv' 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-01-25 21:30:08.325306"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:30:08.354016"], ["updated_at", "2017-01-25 21:30:08.354016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-tle8m3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1p7snr6.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-5gr224.csv' 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-01-25 21:30:08.388501"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:30:08.420394"], ["updated_at", "2017-01-25 21:30:08.420394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.6ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1snbxcp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1rdutg8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1ukx4g0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.460753"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:08.490783"], ["updated_at", "2017-01-25 21:30:08.490783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-86739-1v72anx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86739-93b7fo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-86739-1pej8aj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.533052"], ["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-01-25 21:30:08.568670"], ["updated_at", "2017-01-25 21:30:08.568670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-86739-hfrzzf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6e25e56d1b0df10fbd8a5c2ed9ad4c3920170125-86739-woyve7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6e25e56d1b0df10fbd8a5c2ed9ad4c3920170125-86739-zs0b90.csv' 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", "failures20170125-86739-hfrzzf.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:30:08.608015"], ["updated_at", "2017-01-25 21:30:08.636935"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1q86yld' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1q3wpt6.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-16px3ye.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.685967"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:08.717419"], ["updated_at", "2017-01-25 21:30:08.717419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-lh855i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-96u44n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1teps4k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.742007"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:08.775029"], ["updated_at", "2017-01-25 21:30:08.775029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1hijbfj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1q320u4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1byqee.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.800847"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:08.833942"], ["updated_at", "2017-01-25 21:30:08.833942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-16th05y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-dnweyz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1iqka2n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:08.854883"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:08.886469"], ["updated_at", "2017-01-25 21:30:08.886469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-romu75' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-ojnisw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-lyjhlw.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1pbfnpz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-129m2ur.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-qgcooz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-12ms3no.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-3hesfp.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1g5dxor.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-3lb3b0.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1gfgkpe.csv'  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-724dal' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1w1rmiq.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1t1j22t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-inj2kr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-nd5n44.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1wf3rg9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1t4wjub.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1oqbnhi.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-13ar11e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-r7nqc2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-86739-23294z'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1dkhbpt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-hpmgt8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-13ds5e6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1voedy4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-be1mur.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1iuanhr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1bcqks9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-tnxvwm.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-yvy2uc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-w08ipk.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-g88wdj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-a31hdk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1wc3pzn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:09.436067"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:09.467443"], ["updated_at", "2017-01-25 21:30:09.467443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1if8i0s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1o06527.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-ishemd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-3obzzv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-19np4p7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-ifyt9d.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1om06cv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-17qe5k1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1j1q68m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:09.597568"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:09.629773"], ["updated_at", "2017-01-25 21:30:09.629773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1g5wn70' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1mr1ul5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-127pk82.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:09.656338"], ["source", "company"], ["columns", "---\n- Nome\n- Numero\n- Cidade\n- Estado\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:30:09.691371"], ["updated_at", "2017-01-25 21:30:09.691371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-uhvir1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-57mc85.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-13h9vw6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:09.786878"], ["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-01-25 21:30:09.820173"], ["updated_at", "2017-01-25 21:30:09.820173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1v9ax8d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1r4jnk0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1btoebj.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:09.857657"], ["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-01-25 21:30:09.888871"], ["updated_at", "2017-01-25 21:30:09.888871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-86739-1tjzl0j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-57jdaa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-86739-1ggvs3q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:30:09.933178"], ["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-01-25 21:30:09.967729"], ["updated_at", "2017-01-25 21:30:09.967729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-57l6qc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-13ivrnd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-uhb05.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:09.561754"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:09.615375"], ["updated_at", "2017-01-25 21:32:09.615375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-62ni6c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-hc9hre.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1fqoij1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:09.710575"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:09.749244"], ["updated_at", "2017-01-25 21:32:09.749244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 21:32:09.781478"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-rda9iq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1wk2e74.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-5cgkda.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:09.808473"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:09.840791"], ["updated_at", "2017-01-25 21:32:09.840791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-x5nhn8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-t7dfna.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-3rsfs4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:09.870599"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:09.904633"], ["updated_at", "2017-01-25 21:32:09.904633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.1ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-1n8vu0b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-ustj3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1trpuuf.csv' 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-01-25 21:32:09.968011"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:32:10.000853"], ["updated_at", "2017-01-25 21:32:10.000853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.4ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-v3scor' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1wwslik.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-99pyb6.csv' SQL (0.1ms) 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-01-25 21:32:10.043953"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:32:10.076456"], ["updated_at", "2017-01-25 21:32:10.076456"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 0.5ms)  (0.3ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-gxr1mf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-7rq245.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-kvdk18.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.108527"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:10.141520"], ["updated_at", "2017-01-25 21:32:10.141520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 21:32:10.152455"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-135flqg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-17z1vcd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1j5moqe.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.181670"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:10.215727"], ["updated_at", "2017-01-25 21:32:10.215727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-25 21:32:10.226872"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-en3fsx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-5lrxpl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-6w9gj7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.258151"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:10.292091"], ["updated_at", "2017-01-25 21:32:10.292091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-25 21:32:10.302178"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-oj8hrt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-4v8smd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1sjbkkf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.332760"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:10.365280"], ["updated_at", "2017-01-25 21:32:10.365280"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-lk4xxq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-v241r0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-p392sm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.399542"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:10.431584"], ["updated_at", "2017-01-25 21:32:10.431584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-7l1s84' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-pw4lgu.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-zyb8de.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.467801"], ["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-01-25 21:32:10.501227"], ["updated_at", "2017-01-25 21:32:10.501227"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-hvqr3j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-14e6mki.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1kc526x.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.548841"], ["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-01-25 21:32:10.580738"], ["updated_at", "2017-01-25 21:32:10.580738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-117y5n9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-13e49ml.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-aenijj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.627678"], ["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-01-25 21:32:10.662028"], ["updated_at", "2017-01-25 21:32:10.662028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-3ezy8q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1a5udqc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-13xr6yh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.751874"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:10.784145"], ["updated_at", "2017-01-25 21:32:10.784145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-2jbgzv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1an57wk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1uxg59j.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.825994"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:10.867200"], ["updated_at", "2017-01-25 21:32:10.867200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-13crj1c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-4skch3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-8y0pne.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:10.894862"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:10.941103"], ["updated_at", "2017-01-25 21:32:10.941103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-ti2jqe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1bf8t9p.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-yoi7jg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-vpyl3f.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-hhjs4o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-cp3jzd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-qwuynz.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-q7yvla' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1d5t2i4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-tiq70l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-ftk7do.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-ga6c9s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-vy6wd6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1698tje.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-7rjg13.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-1m9jjh0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1ihl8s1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1j3tund.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-ulw7wf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-mjxnf4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-zjxqgl.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-md40uo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-xsi60c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170125-87110-1qjzhyq'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-yctd0i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1n3rtht.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-mggrbj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1224w10.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1ankcx3.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-15oyysh.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-qpf21v.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-nppzc0.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-g9llmu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-18xit60.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1y5d6df.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-1fs6bcw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-y1an6k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-9ydvxu.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-65meat' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1kqpebe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1xguzil.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:11.612898"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:11.645697"], ["updated_at", "2017-01-25 21:32:11.645697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170125-87110-ne7cmw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-1gjcolh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-87110-14peg2a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:11.676243"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-25 21:32:11.710173"], ["updated_at", "2017-01-25 21:32:11.710173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170125-87110-tiz63s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-87110-5qz4v8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-87110-bxr1e1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-25 21:32:11.739627"], ["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-01-25 21:32:11.773033"], ["updated_at", "2017-01-25 21:32:11.773033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-87110-1ky9gnk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e0791da5485648cfe56dd876a765ebef20170125-87110-19equqg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e0791da5485648cfe56dd876a765ebef20170125-87110-s5x0n7.csv' 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", "failures20170125-87110-1ky9gnk.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-25 21:32:11.808580"], ["updated_at", "2017-01-25 21:32:11.843115"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1313zpl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-ytjryc.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-ctdr33.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:36.784408"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:36.845798"], ["updated_at", "2017-01-26 17:12:36.845798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1xbe33n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-ma81jx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1pf7n51.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:36.877212"], ["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-01-26 17:12:36.909750"], ["updated_at", "2017-01-26 17:12:36.909750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.2ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1spctt8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-18dwmz4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-13pxipq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:36.965349"], ["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-01-26 17:12:37.001242"], ["updated_at", "2017-01-26 17:12:37.001242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-oo14ol' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-gla9mw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1hjcj93.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:37.038160"], ["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-01-26 17:12:37.074381"], ["updated_at", "2017-01-26 17:12:37.074381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1pwgb80' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1r7pjp1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1g5449p.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:37.322934"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:37.355260"], ["updated_at", "2017-01-26 17:12:37.355260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-fnjzn2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-15xeosi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-i4ayg3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:37.380615"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:37.414490"], ["updated_at", "2017-01-26 17:12:37.414490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:12:37.433371"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-yc8wh7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-5lkam4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-19z0njd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:37.501312"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:37.538511"], ["updated_at", "2017-01-26 17:12:37.538511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1vjj0xl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1b0rho6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-adpf09.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:37.654574"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:37.687008"], ["updated_at", "2017-01-26 17:12:37.687008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1n89jsx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1weovxe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1oour6t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:37.722541"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:37.756008"], ["updated_at", "2017-01-26 17:12:37.756008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:12:37.768249"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 31ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-uou5q1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-j744zs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-19gc34h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:37.817192"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:37.852137"], ["updated_at", "2017-01-26 17:12:37.852137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:12:37.862816"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-15h470i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-yaxwm4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-5743kj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:37.890645"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:37.924351"], ["updated_at", "2017-01-26 17:12:37.924351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:12:37.936362"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-19t6tmt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1wrme52.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-158yyh5.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:37.963899"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:37.996946"], ["updated_at", "2017-01-26 17:12:37.996946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-27355-1c1twj5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-27355-1c03o3r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-27355-e28jaz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:38.064378"], ["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-01-26 17:12:38.104015"], ["updated_at", "2017-01-26 17:12:38.104015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-27355-hl9693.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d9bc55cdb4901c9dcf70a8626970804c20170126-27355-g5pftk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d9bc55cdb4901c9dcf70a8626970804c20170126-27355-er4ct8.csv' 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", "failures20170126-27355-hl9693.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:12:38.146568"], ["updated_at", "2017-01-26 17:12:38.175935"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1suoat' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-u8qgk4.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-v1knqe.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:38.201081"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:38.241477"], ["updated_at", "2017-01-26 17:12:38.241477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1gt5cyu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-gsmfut.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-145iuft.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:38.269399"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:38.304163"], ["updated_at", "2017-01-26 17:12:38.304163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1yt3gwv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-103c80f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1p2ea1t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-26 17:12:38.328030"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:38.361867"], ["updated_at", "2017-01-26 17:12:38.361867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1nbtjrm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-tlqdhn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-7tuqqq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1d32f11.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-6nl4d6.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-n2702a.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-11ba8zt.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-l3cu89.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-btvdjp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-vz1g3.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-4bejj4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-14evbz9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-c7jngm.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1x19lx6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1n21r6l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-27355-81ekxk'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-ckro1q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-ilg4gp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-15tooh8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-t0inwv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1vwiv2g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-7nsg6b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-17amvqr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1hd9eve.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-dhqta4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-15dl5eo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1y0qt77.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-5d3yqw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-ic1wyy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1vkd58.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-vwvkz3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-p3t09y.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-aa9eod' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1urmngm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1n600ae.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:38.943697"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:38.976936"], ["updated_at", "2017-01-26 17:12:38.976936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-127zhtn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1h4uja6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1swee0y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-1gd8npl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-xvw3mn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-1965pwg.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27355-metxnv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-mxxjur.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27355-n4xzj8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:12:39.110494"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:12:39.145835"], ["updated_at", "2017-01-26 17:12:39.145835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.2ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.1ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-gj4d9c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1nsm9jp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-12pvr9e.csv' SQL (1.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:03.957751"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.022510"], ["updated_at", "2017-01-26 17:15:04.022510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-qd9ckg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-16xek51.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-g5z0wy.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.128327"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.160998"], ["updated_at", "2017-01-26 17:15:04.160998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 24ms (Views: 15.4ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-zvgfi7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-6hh1hr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1n1nq2y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.224564"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.256185"], ["updated_at", "2017-01-26 17:15:04.256185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-neoejz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-8xjcs5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-15c1yqr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.331277"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.363762"], ["updated_at", "2017-01-26 17:15:04.363762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 25ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-t1iqfg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1m4peup.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-e4zu0m.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.418206"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.451582"], ["updated_at", "2017-01-26 17:15:04.451582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:15:04.462659"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 27ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1rzs4zv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-7ztx21.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1bgairk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.535092"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.566711"], ["updated_at", "2017-01-26 17:15:04.566711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.5ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:15:04.588929"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-nfj45h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-u0qzps.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1cs08fk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.615173"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.648009"], ["updated_at", "2017-01-26 17:15:04.648009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:15:04.657827"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 17ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1n141f2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-l0a1at.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1krew23.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.762384"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.795479"], ["updated_at", "2017-01-26 17:15:04.795479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-hj4o6q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-ewb733.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-t60zii.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.820277"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.853506"], ["updated_at", "2017-01-26 17:15:04.853506"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1kyn5s7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-9dqm9m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1taz1nd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.877631"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.909553"], ["updated_at", "2017-01-26 17:15:04.909553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1t5kcc1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1xzh9ys.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1syu3x2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:04.933924"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:04.970329"], ["updated_at", "2017-01-26 17:15:04.970329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-187w82h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-17pcwx9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1pvio57.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-13w6yy4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1m0atvn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-yza5kj.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1wnq7on' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-17gh1hf.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1ew3oqf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-a2dnid.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-n3lyr2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-74zcmv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1hxl60h.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-tcys9q.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-47lg4z.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-rr7bks.csv'  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1h7bjq0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-lroy5z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1kei8o4.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1s4p2q7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1408qnh.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-81046k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-6rmdel.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-27618-1n7q77'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1867fyf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1p3tvze.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1i566ym.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-txuu58.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1lmtdua.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1jiuzze.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-12oy0xg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-me4y7c.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-b883nv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-58fiwp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-8m3uv0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:05.532043"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:05.564587"], ["updated_at", "2017-01-26 17:15:05.564587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1ai7z9r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1297bsy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-fellki.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1ir1yp1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1qxslog.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-q70f77.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1bn9j67' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-jmjbip.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1ysfd4y.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:05.703492"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:05.737864"], ["updated_at", "2017-01-26 17:15:05.737864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-dnr6i9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-rysiq4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-kd5y5j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:05.764410"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:05.796906"], ["updated_at", "2017-01-26 17:15:05.796906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:15:05.803730"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-27618-v1uqzp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-27618-1xor7v5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-27618-vnkk04.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:05.825717"], ["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-01-26 17:15:05.860659"], ["updated_at", "2017-01-26 17:15:05.860659"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-27618-1pqa3bs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0b4412adc3997018962591fd7abaa42d20170126-27618-z51nnt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0b4412adc3997018962591fd7abaa42d20170126-27618-yfr9si.csv' SQL (0.5ms) 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", "failures20170126-27618-1pqa3bs.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:15:05.904712"], ["updated_at", "2017-01-26 17:15:05.936043"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1hmvdv0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1908oja.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-3hz1ly.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:05.961929"], ["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-01-26 17:15:05.993324"], ["updated_at", "2017-01-26 17:15:05.993324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-1bb9r2l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-z3161a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1i1pswi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:06.029281"], ["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-01-26 17:15:06.062381"], ["updated_at", "2017-01-26 17:15:06.062381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.2ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.3ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27618-edgv99' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-1d9klam.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27618-f9b1ks.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:06.099099"], ["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-01-26 17:15:06.133179"], ["updated_at", "2017-01-26 17:15:06.133179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1d2jgxq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1x95zlw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-h3zigm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:29.473168"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:29.533490"], ["updated_at", "2017-01-26 17:15:29.533490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-27755-h44pew' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-27755-11j2s1l.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-27755-r1qhxb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:29.559261"], ["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-01-26 17:15:29.590133"], ["updated_at", "2017-01-26 17:15:29.590133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-27755-1di5xra.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1367d5644f93bc4423d0628671268ec220170126-27755-1jxlik3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1367d5644f93bc4423d0628671268ec220170126-27755-qyq6b9.csv' 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", "failures20170126-27755-1di5xra.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:15:29.671056"], ["updated_at", "2017-01-26 17:15:29.703166"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1gngf2f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-4w4cj6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-cq0u3d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:29.741842"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:29.775058"], ["updated_at", "2017-01-26 17:15:29.775058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-wgp3vz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1x4k8za.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-8mwlrr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:29.801303"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:29.837109"], ["updated_at", "2017-01-26 17:15:29.837109"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-n76fhd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-66y9xw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-9o07bv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:29.862104"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:29.893558"], ["updated_at", "2017-01-26 17:15:29.893558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-autuwk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-b30cvd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-mds3kl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:29.916886"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:29.954799"], ["updated_at", "2017-01-26 17:15:29.954799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1gpwqor' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1v4k710.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-27755-ogl77a'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1wxgfdo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-yppixu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1nnid7y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1vd2b6w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-lotzck.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1i4lt02.csv'  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1yd022c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-h9n4zd.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-6s9rnq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1pjuzgt.csv'  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1jzr69e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1ss34bp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-djeewe.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1xbrad2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-7k7jf3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-tbjcgk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-ys45kf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-171rlli.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1pcdwvm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-ovrixg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-12ubwfu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1hhiwmm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-a6enke.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-ujmixn.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-ta97km.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1ng9ui3.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1hqnr1y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-3nok8l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-8o917f.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-8zig0o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-162m0pi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1hxi0b5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1iycppq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-17xd5jh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-hqwm72.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-eadcsd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-gizq35.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-149spzk.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:30.610711"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:30.645778"], ["updated_at", "2017-01-26 17:15:30.645778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-2nrz9o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1bwfs9f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1omcu50.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:30.775189"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:30.813404"], ["updated_at", "2017-01-26 17:15:30.813404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:15:30.836138"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-f76tn3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-eapwv8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-bvqw6i.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:30.863590"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:30.898536"], ["updated_at", "2017-01-26 17:15:30.898536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-15pfjrq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-6al10q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-dppiyl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:30.967783"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:31.001450"], ["updated_at", "2017-01-26 17:15:31.001450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1ef0zbr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1kqzldu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-15sc34t.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:31.053327"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:31.086124"], ["updated_at", "2017-01-26 17:15:31.086124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1buiam2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1g5raze.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-z6s1zn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:31.119119"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:31.152371"], ["updated_at", "2017-01-26 17:15:31.152371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1t1rdex' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1qo18wm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1238ofz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:31.188527"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:31.223996"], ["updated_at", "2017-01-26 17:15:31.223996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:15:31.237502"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 28ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-dnmhdf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-57iyv7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-rhvr4i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:31.286351"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:31.319530"], ["updated_at", "2017-01-26 17:15:31.319530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:15:31.331389"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-vkjghn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1hxv3fo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-13ic5yf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:31.358238"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:15:31.388550"], ["updated_at", "2017-01-26 17:15:31.388550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:15:31.398925"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1e83tlt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1tr9exl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1kvk82x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:31.428446"], ["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-01-26 17:15:31.462436"], ["updated_at", "2017-01-26 17:15:31.462436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-ueos49' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-4rteo2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-dctu3d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:31.498260"], ["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-01-26 17:15:31.532720"], ["updated_at", "2017-01-26 17:15:31.532720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27755-1mt14w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-1cxyn00.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27755-4vx8pk.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:15:31.568946"], ["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-01-26 17:15:31.601282"], ["updated_at", "2017-01-26 17:15:31.601282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1w698ei' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-uqqsjp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1dght0j.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.051687"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:06.108217"], ["updated_at", "2017-01-26 17:18:06.108217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-gozapu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1jskzpl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-16zkhi1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.169817"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:06.203608"], ["updated_at", "2017-01-26 17:18:06.203608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:18:06.230043"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 36ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-qhan0d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1kzzohs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1jtuet0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.272049"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:06.302606"], ["updated_at", "2017-01-26 17:18:06.302606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:18:06.313871"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-19vel8y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-zazswo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-ms2wfb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.345261"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:06.380508"], ["updated_at", "2017-01-26 17:18:06.380508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:18:06.400446"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1if22ww' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1isrk1t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1pgs3ek.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.427430"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:06.457348"], ["updated_at", "2017-01-26 17:18:06.457348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 22ms (Views: 15.0ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-q4ls8i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1a3ww5k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-2w1vto.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.509684"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:06.543366"], ["updated_at", "2017-01-26 17:18:06.543366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1sh8v15' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-iz6xus.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-163f29o.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.576659"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:06.608190"], ["updated_at", "2017-01-26 17:18:06.608190"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-azbib' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1gfnoeu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-10ir0j3.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.828700"], ["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-01-26 17:18:06.861176"], ["updated_at", "2017-01-26 17:18:06.861176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-cc3h9p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1ttqa6p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1vg182r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.918116"], ["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-01-26 17:18:06.956822"], ["updated_at", "2017-01-26 17:18:06.956822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1n8v8xk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1ul1911.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-16bfksp.csv' SQL (0.9ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:06.993855"], ["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-01-26 17:18:07.031310"], ["updated_at", "2017-01-26 17:18:07.031310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1f4lwaw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-124k0pc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-okfh83.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:07.088054"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:07.125788"], ["updated_at", "2017-01-26 17:18:07.125788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:18:07.135740"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-wt9kg0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1i7obg2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1so63id.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:07.160722"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:07.192946"], ["updated_at", "2017-01-26 17:18:07.192946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1p4f6qr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-qbvujt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-16i2xp2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:07.239742"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:07.273111"], ["updated_at", "2017-01-26 17:18:07.273111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-unl5ye' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-88wjuh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-idejuw.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-ls04v5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-15bfd7z.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1thro7x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1ezmlvw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-15zy445.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1o9dteu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1c5edg3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-tcmtas.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1yhi6t5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1o80qbz.csv'  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1489vva' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-mpxcsg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1svcxb9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-lx4ehs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-xcu4so.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-h72rhk.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1lgsetv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-176f4ic.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1fshjl4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-7hcz7w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-dnsri6.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-tl7or4.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-kvx8s0.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-tyqsnm.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-m43fn1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-uh86k5.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-124nz3p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1dyqkq7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-27974-1en55ca'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-14r5rw0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1j43972.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-sql72o.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1npvrko' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-b86jf3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-kn6iri.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1uan084' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1spjrdx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1yhwwlg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:07.950136"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:07.981318"], ["updated_at", "2017-01-26 17:18:07.981318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-1uepc8k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-jc32b7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-k9d5du.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:08.008655"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:08.040975"], ["updated_at", "2017-01-26 17:18:08.040975"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-vutv65' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-hz1gg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-19c6wvf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:08.064887"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:08.104032"], ["updated_at", "2017-01-26 17:18:08.104032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-27974-efi3n9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-6fug95.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-27974-1pa9012.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:08.129679"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:08.163201"], ["updated_at", "2017-01-26 17:18:08.163201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-27974-l5325f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-27974-122iwyr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-27974-19vytkp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:08.188739"], ["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-01-26 17:18:08.222315"], ["updated_at", "2017-01-26 17:18:08.222315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-27974-cx2o7z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/01c9568b238f9b0e1433831ebb9c9adc20170126-27974-3qwgee.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/01c9568b238f9b0e1433831ebb9c9adc20170126-27974-xburtu.csv' 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", "failures20170126-27974-cx2o7z.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:18:08.258955"], ["updated_at", "2017-01-26 17:18:08.293907"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1er3kz9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-9u4bkz.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1bo4nta.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:48.627073"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:48.687549"], ["updated_at", "2017-01-26 17:18:48.687549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1o8blxt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1xjnzpu.csv'  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-18istke.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:48.714742"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:48.750414"], ["updated_at", "2017-01-26 17:18:48.750414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-19laj33' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1h4vxja.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1x55bw3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:48.776929"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:48.808353"], ["updated_at", "2017-01-26 17:18:48.808353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1bv1x6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1ov1rhs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-3q4zkn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-3wocjx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1g6mjya.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1r5mts3.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-b036xv.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-3d0nsg.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-k0qgdf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1vv16iq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-28133-1be6avy'  (0.1ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-z4njy4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-fj05kr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1jazyp1.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1qzd21w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-3a5hbd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1y713bu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-eb4its.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-srt2pj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-ygkay2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1oj7ia3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-mrdldx.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-rtkhjq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-18pllg4.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1xmleus' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1yhwv0w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-fvltqa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1dqomdr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-gjn515.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-6l01m.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1t264n7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-ev984p.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1h2l5w6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-h2ob82.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-drbnfb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:49.388715"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:49.418888"], ["updated_at", "2017-01-26 17:18:49.418888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-12q3die' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-n1oh1o.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-9eo1ow.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-ixs6mb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-doo212.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-vi3jl1.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-zu30bp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1jlxq5a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-ya73fw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:49.555629"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:49.590132"], ["updated_at", "2017-01-26 17:18:49.590132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-jro7aq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1xlzoba.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-19ylxbw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:49.621219"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:49.654206"], ["updated_at", "2017-01-26 17:18:49.654206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1v1bh3s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-11xbzb8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-nsvu3c.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:49.836751"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:49.869229"], ["updated_at", "2017-01-26 17:18:49.869229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-liaszh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1r1teoa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-ygprd3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:49.895084"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:49.929729"], ["updated_at", "2017-01-26 17:18:49.929729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:18:49.942196"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-u3wo42' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1hm82a4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-13b7olw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:49.998714"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:50.032464"], ["updated_at", "2017-01-26 17:18:50.032464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:18:50.046343"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1hz3uiq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1odn7c8.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1m8okuv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:50.075903"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:50.110251"], ["updated_at", "2017-01-26 17:18:50.110251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-01-26 17:18:50.121803"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-rld8po' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-m28tws.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-10z4ysg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:50.155616"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:50.185139"], ["updated_at", "2017-01-26 17:18:50.185139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:18:50.197874"], ["id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-3ca3ez' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-4fz7ty.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1vnu4l4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:50.224235"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:50.258877"], ["updated_at", "2017-01-26 17:18:50.258877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 14.9ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-ir2qez' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-17vrc0j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1h6ojnh.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:50.310089"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:50.344617"], ["updated_at", "2017-01-26 17:18:50.344617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1uo8ich' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-11ouk0m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-txhecl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:50.384346"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:18:50.422513"], ["updated_at", "2017-01-26 17:18:50.422513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.6ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-19lg5tn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-hfe0ah.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-3zc0gy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:50.502878"], ["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-01-26 17:18:50.538413"], ["updated_at", "2017-01-26 17:18:50.538413"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-19mecss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-1oi78ig.csv'  (0.6ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-58yykv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:50.595955"], ["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-01-26 17:18:50.631635"], ["updated_at", "2017-01-26 17:18:50.631635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.2ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28133-1c2av9y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-147p3jh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28133-7x22xf.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:50.670741"], ["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-01-26 17:18:50.704022"], ["updated_at", "2017-01-26 17:18:50.704022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-28133-1iskrj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-28133-1tchzfg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-28133-e5hcog.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:18:50.765569"], ["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-01-26 17:18:50.801625"], ["updated_at", "2017-01-26 17:18:50.801625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-28133-1q0tz4z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e9aa653d7a9d76ca1e6a5a00765f10c620170126-28133-tn53r9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e9aa653d7a9d76ca1e6a5a00765f10c620170126-28133-wfjt0i.csv' 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", "failures20170126-28133-1q0tz4z.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:18:50.838004"], ["updated_at", "2017-01-26 17:18:50.869286"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-srjrqo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-6pogtq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-m709cj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:38.813012"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:38.873017"], ["updated_at", "2017-01-26 17:22:38.873017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-1q72h3u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1tvqtmo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-o3lj56.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.008157"], ["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-01-26 17:22:39.039631"], ["updated_at", "2017-01-26 17:22:39.039631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-1idj5iv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-qkqi30.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-15t0mp8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.121846"], ["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-01-26 17:22:39.152827"], ["updated_at", "2017-01-26 17:22:39.152827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.3ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-18vdlxf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1xlqker.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1rycux2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.188092"], ["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-01-26 17:22:39.221604"], ["updated_at", "2017-01-26 17:22:39.221604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-28419-1uwg4i1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-28419-16xg4xh.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-28419-1n6nsp2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.263277"], ["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-01-26 17:22:39.321093"], ["updated_at", "2017-01-26 17:22:39.321093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-28419-1ia3064.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/17e7c2f79a1d5c8e4b41b705fd7e54c820170126-28419-1r8brij.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/17e7c2f79a1d5c8e4b41b705fd7e54c820170126-28419-2q2zm8.csv' 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", "failures20170126-28419-1ia3064.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:22:39.369550"], ["updated_at", "2017-01-26 17:22:39.399825"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-1r7b9s5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1b37np4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-6rwli7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.428289"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:39.460103"], ["updated_at", "2017-01-26 17:22:39.460103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-9atz8p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1ccoht.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-j16ag9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.499655"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:39.533819"], ["updated_at", "2017-01-26 17:22:39.533819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:22:39.540969"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-18i2onk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-17zt4on.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-s9yup7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.648359"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:39.676541"], ["updated_at", "2017-01-26 17:22:39.676541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 20ms (Views: 15.9ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-16mbqem' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1r456by.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-17t35j6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.730178"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:39.766207"], ["updated_at", "2017-01-26 17:22:39.766207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:22:39.777277"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-zecjgo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-u1qq4c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-6wjnyk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.807559"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:39.837964"], ["updated_at", "2017-01-26 17:22:39.837964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:22:39.848215"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-12qsexe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-rdhjoj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1g63fgr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.874176"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:39.905024"], ["updated_at", "2017-01-26 17:22:39.905024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:22:39.915393"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-1e8mnu1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-vzcubz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-17xqnxu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:39.945555"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:39.980947"], ["updated_at", "2017-01-26 17:22:39.980947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-7x63ez' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1epx21n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1kawxfg.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:40.049970"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:40.084130"], ["updated_at", "2017-01-26 17:22:40.084130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-119kjm9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-pp56a2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-c984i7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:40.129828"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:40.162050"], ["updated_at", "2017-01-26 17:22:40.162050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-8izo6q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-16s8amx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-avlk66.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:40.186287"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:40.228851"], ["updated_at", "2017-01-26 17:22:40.228851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-bdohbx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-2f26dc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1sv7sud.csv'  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-s7qe95' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-19vr6kp.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-u4s7sn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-x2kn7m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1coj0fb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-x0g0h9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-13nyts6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1pja1pn.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-1g6lv8f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-18wr3jk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1yeuw3l.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-g21n1x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-e9bkze.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-66cimt.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-w8j4xb.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-10osirg.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-11k7dmu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1huzfhp.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-1nj5ug3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-nuo8v5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1dhrlyu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-tuerdx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-lnfajy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1yaugqm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-rxqabe.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1clcwnq.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-42xuqr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-a3ha5y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-28419-896p0q'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-ok7zv6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-12b80ct.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-9i4yif.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:40.778033"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:40.810187"], ["updated_at", "2017-01-26 17:22:40.810187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-1bd46cw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-11fh7mc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-qopkca.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-18orxms' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-13q8rzw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-gi7920.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-rdctm4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1d5pzrr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1i0pf37.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:40.946818"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:40.981872"], ["updated_at", "2017-01-26 17:22:40.981872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28419-1cqncjc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-yx72dw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28419-1hkrv98.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:22:41.008143"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:22:41.042235"], ["updated_at", "2017-01-26 17:22:41.042235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-o2roj5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1873k3z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-12rr4dm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:00.100570"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:00.163907"], ["updated_at", "2017-01-26 17:23:00.163907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-28556-zs4m5t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-28556-j1ufmd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-28556-4i3wpt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:00.322905"], ["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-01-26 17:23:00.352756"], ["updated_at", "2017-01-26 17:23:00.352756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-28556-veg3ez.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c6ebd79b9822827f898291a266be8d6820170126-28556-1obydoc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c6ebd79b9822827f898291a266be8d6820170126-28556-usi4mm.csv' 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", "failures20170126-28556-veg3ez.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:23:00.425624"], ["updated_at", "2017-01-26 17:23:00.458372"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-10udio3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-12icbj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-3396c3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:00.513253"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:00.548864"], ["updated_at", "2017-01-26 17:23:00.548864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:23:00.577176"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-acl2ay' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-x411ug.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1bq32xu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:00.598676"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:00.630621"], ["updated_at", "2017-01-26 17:23:00.630621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1kiuzss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-3pck9a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-ual7qj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:00.702292"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:00.734365"], ["updated_at", "2017-01-26 17:23:00.734365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-01-26 17:23:00.746735"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 19ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-12dty41' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1watr3j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-86pk1e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:00.785184"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:00.820530"], ["updated_at", "2017-01-26 17:23:00.820530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:23:00.830657"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-dfvu2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1qawj8l.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1i30sfy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:00.856884"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:00.885836"], ["updated_at", "2017-01-26 17:23:00.885836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:23:00.896166"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1p2u3wj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-9mvybq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-6ku3u6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:00.924141"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:00.955058"], ["updated_at", "2017-01-26 17:23:00.955058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1a2xq9s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-57c4ul.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-kztkq5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:01.001339"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:01.036608"], ["updated_at", "2017-01-26 17:23:01.036608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1icwjt6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-waaedm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1o831uf.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:01.113123"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:01.146578"], ["updated_at", "2017-01-26 17:23:01.146578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1bc1rfk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1qs8qk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-fqf3mc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:01.182771"], ["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-01-26 17:23:01.214030"], ["updated_at", "2017-01-26 17:23:01.214030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-6zwdhl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-gvffwy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-y9eylj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:01.248961"], ["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-01-26 17:23:01.285727"], ["updated_at", "2017-01-26 17:23:01.285727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.4ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1u1vz5n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-nro82s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1wju1ap.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:01.327838"], ["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-01-26 17:23:01.358873"], ["updated_at", "2017-01-26 17:23:01.358873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-myt0s5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-sny5rg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-v4v4wd.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:01.405051"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:01.438295"], ["updated_at", "2017-01-26 17:23:01.438295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-3qzyu9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1tcrtzp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-5uikoy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1ob7hyl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1v1b2py.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1bb0k4g.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1wx5eoi.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-jlakpm.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-sv1wqb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1nv16j1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-28556-c4np0s'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-iiylzp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-v3zpbb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-vjtgus.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1vkpn27.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1sy2qj9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1pbi404.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1j9kgjf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1bt7qef.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-byxyhb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-ook5v1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1oedav2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-dm1mxz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1qv0u0a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1m8swvh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-3n86oi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-rwuhk7.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-puvt7q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1uyhv7o.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-aougyi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-odooyi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-6qaium.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1t0sx6h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-zbonol.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1vlgj15.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-gzhio' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-15pw78a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-11dimqe.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1x1lirp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1m90da3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1j0d14a.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:02.078971"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:02.111447"], ["updated_at", "2017-01-26 17:23:02.111447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1eizgt9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1qe9qz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1c6lt6k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:02.138408"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:02.172170"], ["updated_at", "2017-01-26 17:23:02.172170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1187g3s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-4d5211.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-yeynrm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:02.198559"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:02.235764"], ["updated_at", "2017-01-26 17:23:02.235764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28556-1uzio5l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1b8in6l.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28556-1jcuz90.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:23:02.262100"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:23:02.294161"], ["updated_at", "2017-01-26 17:23:02.294161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-pd82v1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1mv18ai.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-18dtdgt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:21.398241"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:21.456037"], ["updated_at", "2017-01-26 17:25:21.456037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 10ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1gb0zuf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-5qqosx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1f8rgh8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.5ms) 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-01-26 17:25:21.681957"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:21.726612"], ["updated_at", "2017-01-26 17:25:21.726612"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-w506bj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-iu5qaq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-u12lfm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:21.779544"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:21.812180"], ["updated_at", "2017-01-26 17:25:21.812180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-aj1dqi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-jfoz1s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1yrwyd3.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:21.853044"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:21.885839"], ["updated_at", "2017-01-26 17:25:21.885839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:25:21.907748"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 40ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1r5gi27' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-ab58ro.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1ciuf6s.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:21.962067"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:21.995133"], ["updated_at", "2017-01-26 17:25:21.995133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:25:22.004504"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 16ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1reukhi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-5mcolm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-dtfz5d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:22.040015"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:22.071478"], ["updated_at", "2017-01-26 17:25:22.071478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:25:22.085024"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.5ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1g9n7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-ww4bp7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1ogmnyn.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:22.119220"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:22.152324"], ["updated_at", "2017-01-26 17:25:22.152324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 7ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-28784-159ornk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-28784-50hlvh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-28784-1gazb15.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:22.194954"], ["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-01-26 17:25:22.228314"], ["updated_at", "2017-01-26 17:25:22.228314"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-28784-15yhmp3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d7c9f2547600638d13c02dc50fc57d1720170126-28784-1thskih.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/d7c9f2547600638d13c02dc50fc57d1720170126-28784-1swxr2d.csv' 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", "failures20170126-28784-15yhmp3.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:25:22.276153"], ["updated_at", "2017-01-26 17:25:22.310540"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-iou7ld' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-sdj38h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-s88hip.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:22.352625"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:22.392442"], ["updated_at", "2017-01-26 17:25:22.392442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-ucrl99' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-4jom63.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-c8hlib.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:22.428823"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:22.465495"], ["updated_at", "2017-01-26 17:25:22.465495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-100si3m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1i1f8j1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-8oh1kq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:22.488980"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:22.529920"], ["updated_at", "2017-01-26 17:25:22.529920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-ceazg8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1rx9w3j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1l2h81l.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:22.554545"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:22.588933"], ["updated_at", "2017-01-26 17:25:22.588933"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-17gtkfg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-q0ovnf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-28784-pxm8pg'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-14ismka' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-jwaegf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-rfbgpp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-j8rhdw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1yooyio.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-qbtws1.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1hqx5vn.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-30osx4.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-4vd06v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1cgbdi0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1v8haym.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-n6wi8e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1suesdo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1metgmt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1tuzr8w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-128nfd8.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1rbjyz2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-wy85z1.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-l712dt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-b22nwp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-rrw4ic.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-ewr5x9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-7anxc0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1tkn2dk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1yrfyyt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-na0kin.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-y8842c.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1fajp4t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1w7u18v.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1ncxa2b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-13a2gpf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-ppi8ly.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:23.151696"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:23.186601"], ["updated_at", "2017-01-26 17:25:23.186601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1y90vyb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-g847fs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1ucw7sg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1c70rxc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1pkkpw4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1jwg7t9.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-jt8ng5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1p2zsdk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1mn507v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:23.316371"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:23.352488"], ["updated_at", "2017-01-26 17:25:23.352488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:25:23.360476"], ["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1j3i39w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-pcqyb2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-p6hq84.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:23.383607"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:25:23.416093"], ["updated_at", "2017-01-26 17:25:23.416093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-15yuuk0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1n9e3oe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-6sxc2k.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:23.444055"], ["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-01-26 17:25:23.475072"], ["updated_at", "2017-01-26 17:25:23.475072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-1w7w25b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1y82nly.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-1rmbl79.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:23.529645"], ["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-01-26 17:25:23.567763"], ["updated_at", "2017-01-26 17:25:23.567763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-28784-scofk4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-58l85t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-28784-10ncnwi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:25:23.602198"], ["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-01-26 17:25:23.635075"], ["updated_at", "2017-01-26 17:25:23.635075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.4ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-1l7ldfy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-m44sjh.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-7pk55.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:13.785362"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:13.835804"], ["updated_at", "2017-01-26 17:28:13.835804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-u4fos2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-4f4rnz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1jh2xhv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-26 17:28:13.865090"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:13.898502"], ["updated_at", "2017-01-26 17:28:13.898502"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:28:13.938646"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-1hu4zce' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-yhg3q9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-zwfc1k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:13.959918"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:13.994184"], ["updated_at", "2017-01-26 17:28:13.994184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-b46vpp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-ohou2j.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-a4inzg.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:14.117953"], ["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-01-26 17:28:14.157637"], ["updated_at", "2017-01-26 17:28:14.157637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-1p1xxhe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1qqqp65.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-c0v3zl.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:14.225465"], ["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-01-26 17:28:14.257470"], ["updated_at", "2017-01-26 17:28:14.257470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-x2ir0i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-ohgbe9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-ojkepv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:14.316998"], ["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-01-26 17:28:14.349346"], ["updated_at", "2017-01-26 17:28:14.349346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-10gk351' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1pd5omv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-dl42kr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:14.406208"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:14.438646"], ["updated_at", "2017-01-26 17:28:14.438646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-st9e0j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1u12fvi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-sf1hbc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:14.483804"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:14.516797"], ["updated_at", "2017-01-26 17:28:14.516797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 10ms (Views: 3.9ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-101nw1p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1euasjm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1yrulwi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:14.553345"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:14.587288"], ["updated_at", "2017-01-26 17:28:14.587288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-01-26 17:28:14.601227"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-sg2mtj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-17rt5su.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1884j7c.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:14.629778"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:14.661090"], ["updated_at", "2017-01-26 17:28:14.661090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:28:14.672386"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-6n97qp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1j7magt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-kidt0h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:14.699815"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:14.734011"], ["updated_at", "2017-01-26 17:28:14.734011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:28:14.745499"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 18ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-1rh2i8b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-9swhjv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-tftbi0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:14.819574"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:14.850984"], ["updated_at", "2017-01-26 17:28:14.850984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-10i6o64' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-bfdwax.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-qlbuhi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.6ms) 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-01-26 17:28:14.884381"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:14.918478"], ["updated_at", "2017-01-26 17:28:14.918478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-1p0ssc1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-t28f4m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-18rtzmo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-whphhj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1uqrvjo.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1l7by9m.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-m9a1zl.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-bfch3h.csv'  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-14i2mby' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-u6tsuk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-29002-1pxvwpz'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-6dgyq4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1cuz53k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1j0imbi.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-jtx01y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1lk2wtk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-xg1045.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-ru411m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1rrid3d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-786ry3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1v6kw5g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-wzf53s.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-yk545s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-23aw7d.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-oi8qjh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1dy3sh2.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-1i7adxj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-kzsd37.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-rdsu77.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1si24yl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-9dcx67.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-8za7er.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-1ufpe7x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-lnuri4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-dc199v.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-5ygxiq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-ybc1l8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1bmsk2m.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-dcj9a8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-uz5rwb.csv'  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-svc01h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:15.578392"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:15.611121"], ["updated_at", "2017-01-26 17:28:15.611121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-1acap7f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1qsjgm5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-qoh3om.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:15.638047"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:15.672554"], ["updated_at", "2017-01-26 17:28:15.672554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-126uuqk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1s3fk6a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1llnzor.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:15.697972"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:15.735969"], ["updated_at", "2017-01-26 17:28:15.735969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29002-htjf4s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1qbciij.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29002-1n0ojuf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:15.762833"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:15.795620"], ["updated_at", "2017-01-26 17:28:15.795620"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-29002-16itn9b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29002-1v0gl0t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29002-1gig2nt.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:15.843500"], ["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-01-26 17:28:15.876225"], ["updated_at", "2017-01-26 17:28:15.876225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-29002-igofgq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c0ac3f05502e9650383779062b556d9320170126-29002-1fr8l54.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/c0ac3f05502e9650383779062b556d9320170126-29002-1jxlxie.csv' 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", "failures20170126-29002-igofgq.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:28:15.913808"], ["updated_at", "2017-01-26 17:28:15.946158"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1ay0oeb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1h5bci0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1grw6bg.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:36.450360"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:36.506045"], ["updated_at", "2017-01-26 17:28:36.506045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-119g2p6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-xsqclh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-yyr10b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:36.537276"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:36.572870"], ["updated_at", "2017-01-26 17:28:36.572870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-qetw87' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-slygqj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-2mm9ha.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:36.609619"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:36.643522"], ["updated_at", "2017-01-26 17:28:36.643522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:28:36.670115"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-29143-f0wywz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29143-dj5q9m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29143-k71bzz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:36.731834"], ["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-01-26 17:28:36.763516"], ["updated_at", "2017-01-26 17:28:36.763516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-29143-1v25x8a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/28e04e6a544394fef27cd83fb64a46e920170126-29143-6ifcsl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/28e04e6a544394fef27cd83fb64a46e920170126-29143-1036mif.csv' 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", "failures20170126-29143-1v25x8a.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:28:36.815357"], ["updated_at", "2017-01-26 17:28:36.845296"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-2o0smh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-hoc3kl.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-eo6q6v.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:36.910080"], ["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-01-26 17:28:36.946103"], ["updated_at", "2017-01-26 17:28:36.946103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1peutqv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1vmg21k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-146kabz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:36.997250"], ["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-01-26 17:28:37.033292"], ["updated_at", "2017-01-26 17:28:37.033292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1yr4k88' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-oha7zs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1pkjpg3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:37.094975"], ["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-01-26 17:28:37.126107"], ["updated_at", "2017-01-26 17:28:37.126107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.2ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1i0kql7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-njtia1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-133swh1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:37.160705"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:37.193356"], ["updated_at", "2017-01-26 17:28:37.193356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-r52dlt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-htt8g1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-5umngy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:37.222961"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:37.256166"], ["updated_at", "2017-01-26 17:28:37.256166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-16dgu0f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-sog51s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-jf8vqf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1bfmk6o.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-160zquh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-c9130y.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-10rx8ot' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1g97jhc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-29143-1pipkhk'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1hjogk8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-k4ycs0.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1nvs351' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1wj4pf8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1xu4rbn.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-stk9bv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-jzbk4m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1vadbxw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-qv3vab.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1ey4jd9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-sy24ro.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1ed2ot4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1582fdm.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-8ma88p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1dv63jg.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-wtyext' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-l93901.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-an24y6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-55i1a4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-snpsey.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1jaxxvn.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-8x4a97.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-11ltysd.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1fpof9r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1pj4qit.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1x0gvlx.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:37.810305"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:37.845608"], ["updated_at", "2017-01-26 17:28:37.845608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1lmfw7z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-wsridn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1j7wl2m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-15nhmk8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-17tmiau.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1383r6n.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-10gdfzl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-2e99x4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1l6ymon.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:37.981580"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:38.014022"], ["updated_at", "2017-01-26 17:28:38.014022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-4kixlv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1nvb9gn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-ahe1rb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:38.038390"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:38.072816"], ["updated_at", "2017-01-26 17:28:38.072816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-4xm2np' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-kko8cc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-xi74kk.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:38.201015"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:38.236640"], ["updated_at", "2017-01-26 17:28:38.236640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1y51dr6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-5mz9ts.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1qj2nnc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:38.286289"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:38.320595"], ["updated_at", "2017-01-26 17:28:38.320595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.5ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-f48569' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1md5y91.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1ncllsq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:38.400660"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:38.433668"], ["updated_at", "2017-01-26 17:28:38.433668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.2ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-qdofp3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-hgjta8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-1vi8yaq.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:38.469734"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:38.501387"], ["updated_at", "2017-01-26 17:28:38.501387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-01-26 17:28:38.513828"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 13ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-drdlo3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-zuvtxx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-tg2zws.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:38.542087"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:38.574697"], ["updated_at", "2017-01-26 17:28:38.574697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-01-26 17:28:38.585203"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 24ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29143-1htx94b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-y3xnib.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29143-11mod4j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:28:38.631241"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:28:38.665599"], ["updated_at", "2017-01-26 17:28:38.665599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:28:38.677371"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-rpaky0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1ndb04g.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1fit88c.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:13.913139"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:13.972463"], ["updated_at", "2017-01-26 17:29:13.972463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-1gyzu98' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-oq2fxi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-6p17l7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:14.054774"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:14.089400"], ["updated_at", "2017-01-26 17:29:14.089400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-r1ra1q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-qu2cje.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-vpeteo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:14.116144"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:14.156140"], ["updated_at", "2017-01-26 17:29:14.156140"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-1yzllqg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-w69k8z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-pnku2l.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:14.189519"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:14.221801"], ["updated_at", "2017-01-26 17:29:14.221801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-14ct9y4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-sh125k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-nowxki.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:14.248002"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:14.281087"], ["updated_at", "2017-01-26 17:29:14.281087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-cgyew1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-668yxc.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-1dsxlqv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-fapqaa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-110cfwo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-frduh3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-qojdzp.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-167gcu0.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-16n4t4r.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1r48u2q.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-1r3jcbh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-13iaxgt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1qo71t0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1sfi6c3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-lcbk9n.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-g30yd7.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-e6emxd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-3zqu7j.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-6hs3ws' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-5egfoh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-29291-qhgpdb'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-9czel7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-4bwfzb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-lnpzjx.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-zv5bhc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-14kpjtq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1ddhn5m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1gyyo8h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1gavh3m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-r0qkn1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1kaqk9z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-5vekik.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-pegoiv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-11yvatd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1seyilz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-142j29p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-etxgbi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1ifkh6j.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-82s00j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-bbaen2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-3bduc9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:14.983492"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:15.016371"], ["updated_at", "2017-01-26 17:29:15.016371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-29291-lxa0t5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29291-1rskqmc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29291-s0q13w.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-01-26 17:29:15.044752"], ["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-01-26 17:29:15.085854"], ["updated_at", "2017-01-26 17:29:15.085854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-29291-1qs4kex.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1832c1881fea27599279f23a02c0a60f20170126-29291-1dg8vai.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1832c1881fea27599279f23a02c0a60f20170126-29291-tkiq4a.csv' 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", "failures20170126-29291-1qs4kex.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:29:15.155638"], ["updated_at", "2017-01-26 17:29:15.184859"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-qjxo9i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1kgumpi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1eup4sz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:15.294718"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:15.327907"], ["updated_at", "2017-01-26 17:29:15.327907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:29:15.336106"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-1hjh526' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-5ke0y7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1jy7va2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:15.360005"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:15.390582"], ["updated_at", "2017-01-26 17:29:15.390582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-g2lvfz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-ajl33k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-xdg59c.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:15.419865"], ["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-01-26 17:29:15.454343"], ["updated_at", "2017-01-26 17:29:15.454343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-zwz9u6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-qedxj2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-7a586u.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-26 17:29:15.509017"], ["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-01-26 17:29:15.544596"], ["updated_at", "2017-01-26 17:29:15.544596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.2ms) SELECT "companies"."state" FROM "companies"  (0.2ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-1oz1sok' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-vjeqjr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-10mlfy5.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:15.585088"], ["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-01-26 17:29:15.616336"], ["updated_at", "2017-01-26 17:29:15.616336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.2ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-pngmk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-k4q5a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1ntrpve.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:15.678208"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:15.713152"], ["updated_at", "2017-01-26 17:29:15.713152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 15ms (Views: 14.7ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-i8cvcr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-174ionp.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1k7ia2v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:15.759115"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:15.795361"], ["updated_at", "2017-01-26 17:29:15.795361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 10ms (Views: 4.3ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-20o72k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-f8qlg3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-a0wlbb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:15.836528"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:15.870118"], ["updated_at", "2017-01-26 17:29:15.870118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:29:15.880798"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-1jd59ny' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1kgsgfz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-rthuse.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:15.906042"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:15.936987"], ["updated_at", "2017-01-26 17:29:15.936987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:29:15.946584"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-7ja2gt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-19mk6ps.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-dfuag4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:15.977466"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:16.009315"], ["updated_at", "2017-01-26 17:29:16.009315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:29:16.021893"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29291-13wnr1o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-kq040n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29291-1avuglu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:29:16.093093"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:29:16.129804"], ["updated_at", "2017-01-26 17:29:16.129804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-goe9t0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-197j1xf.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-4orfuo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:19.395174"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:19.447180"], ["updated_at", "2017-01-26 17:31:19.447180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-uymunx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-k26slj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1u86zt1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:19.496070"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:19.529015"], ["updated_at", "2017-01-26 17:31:19.529015"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:31:19.557363"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 26ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-mgxcbm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1hnll38.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-153l8fs.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:19.593405"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:19.623795"], ["updated_at", "2017-01-26 17:31:19.623795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:31:19.636593"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 12ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1v0ytec' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1ue0s60.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-f5b9v1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:19.666390"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:19.696870"], ["updated_at", "2017-01-26 17:31:19.696870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:31:19.707344"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 12ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1xh0n4o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1lznkmd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-153nw0a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:19.739029"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:19.770203"], ["updated_at", "2017-01-26 17:31:19.770203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 24ms (Views: 16.7ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1nqp9lp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1dm4zh6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-npmfbp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:19.823937"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:19.855541"], ["updated_at", "2017-01-26 17:31:19.855541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1y3ir90' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1hb0ffx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1fex72.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:19.982327"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:20.016281"], ["updated_at", "2017-01-26 17:31:20.016281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1getdym' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1m7bscb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-qqt1u3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:20.051554"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:20.089582"], ["updated_at", "2017-01-26 17:31:20.089582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-12bxwuu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-12vvfhx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-k8h89t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:20.113803"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:20.144080"], ["updated_at", "2017-01-26 17:31:20.144080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1el9pb5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-udp5bf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1l88lh0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:20.166440"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:20.199867"], ["updated_at", "2017-01-26 17:31:20.199867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1099upm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-rjsq7l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1rpfp5j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:20.225845"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:20.259596"], ["updated_at", "2017-01-26 17:31:20.259596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1xxksar' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-dwex7a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1x2hmnh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-s2r0cx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1lv3ba3.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-ulutt5.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1ji3bik.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1d3b66i.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1h145y8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1cgal4j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-29522-t0e05k'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-ojaufx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-n5jd8r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1bs841z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1hdt622.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-e6y4bz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-15dntt3.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-10mtbva' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1hp1ccw.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1ludj8j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-zl01cj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-7883d1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1arlxx5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-157acs1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1bc8iky.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-13cunn5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-b1ivsq.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-12i2nbq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1eqeoae.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1yuk8fk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1di6xgf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-e11t5u.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1a3wc7i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1oxouu8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-vegy95.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:20.804494"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:20.835348"], ["updated_at", "2017-01-26 17:31:20.835348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-43nb0y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1x7u99w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1fgs0tq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-1lhtir4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-zvsrna.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1nhkepx.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-uqfrwh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-77ijgz.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1kyorxp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:21.033749"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:21.067157"], ["updated_at", "2017-01-26 17:31:21.067157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-wdnlx5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-ztbk93.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-14ed4m6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:21.132944"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:21.166080"], ["updated_at", "2017-01-26 17:31:21.166080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:31:21.175935"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-d1hn0b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-d04ai0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-95dfui.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:21.254566"], ["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-01-26 17:31:21.290885"], ["updated_at", "2017-01-26 17:31:21.290885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-3epjnk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1p6jai.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-1bpfhjm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:21.348922"], ["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-01-26 17:31:21.384226"], ["updated_at", "2017-01-26 17:31:21.384226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29522-16vgief' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-rf2i5c.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29522-3uq6f9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:21.419292"], ["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-01-26 17:31:21.453113"], ["updated_at", "2017-01-26 17:31:21.453113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-29522-1ocws8m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29522-dst0ms.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29522-19addz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-01-26 17:31:21.491570"], ["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-01-26 17:31:21.525065"], ["updated_at", "2017-01-26 17:31:21.525065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-29522-5i1a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/32d8c7427d3561dd65c0e47810a01a2820170126-29522-1603r64.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/32d8c7427d3561dd65c0e47810a01a2820170126-29522-1rc7zb5.csv' 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", "failures20170126-29522-5i1a.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:31:21.559575"], ["updated_at", "2017-01-26 17:31:21.589757"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-rvppgc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1qigrvm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1lbvwmv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:42.284521"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:42.344086"], ["updated_at", "2017-01-26 17:31:42.344086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1g9mco3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-16pnbkv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-13ub30.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:42.413983"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:42.445277"], ["updated_at", "2017-01-26 17:31:42.445277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 26ms (Views: 16.4ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1de9qh3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1wte2bf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1pm98x6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:42.590020"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:42.623102"], ["updated_at", "2017-01-26 17:31:42.623102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-vcp990' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-52o5w6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1mab33k.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:42.663467"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:42.696960"], ["updated_at", "2017-01-26 17:31:42.696960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 24ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-jz6ddd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1srca3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-15efysu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:42.746946"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:42.780711"], ["updated_at", "2017-01-26 17:31:42.780711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:31:42.792635"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-13dwlnz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1hwaqde.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-tubdi6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:42.828092"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:42.860131"], ["updated_at", "2017-01-26 17:31:42.860131"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:31:42.892027"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 30ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-uavlt5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-kw5vxx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-f2ihh4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:42.922775"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:42.952754"], ["updated_at", "2017-01-26 17:31:42.952754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:31:42.975484"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-103cocp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-4ygojn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-uepcpt.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:43.002470"], ["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-01-26 17:31:43.036790"], ["updated_at", "2017-01-26 17:31:43.036790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.2ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1n9kg9d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1mo4k4b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1go1v6c.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:43.099566"], ["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-01-26 17:31:43.135102"], ["updated_at", "2017-01-26 17:31:43.135102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-bcxc3j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-wrcrda.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-vbr0v0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:43.173536"], ["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-01-26 17:31:43.207645"], ["updated_at", "2017-01-26 17:31:43.207645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-11pge67' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-ls2b73.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-odwjf1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:43.241511"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:43.273077"], ["updated_at", "2017-01-26 17:31:43.273077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:31:43.280699"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1yeootw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-119itbj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-vae120.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:43.302049"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:43.333394"], ["updated_at", "2017-01-26 17:31:43.333394"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1u1xn99' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-27covk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1tdjz5h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:43.376564"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:43.412279"], ["updated_at", "2017-01-26 17:31:43.412279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1xpg81b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-ph1ics.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1pmy3qi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:43.434252"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:43.468177"], ["updated_at", "2017-01-26 17:31:43.468177"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-l1cyys' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-183ldb5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-2hk0pv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:43.504204"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:43.539562"], ["updated_at", "2017-01-26 17:31:43.539562"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1lbz81h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-n0zxyv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-84rp0u.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:43.566695"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:43.601803"], ["updated_at", "2017-01-26 17:31:43.601803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-12udrgb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-tyrue1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-9k2etp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1xhc0ec.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1a5xbgo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-ejbc7p.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-phqw8y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-p9c5hv.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-f6nr9g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-m6ejvq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-sk4wd8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1iaqsb2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-29660-1ltyia4'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-ev5o7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1m66aj3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1928zc8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1uzqpyh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-yqtbb.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1qlzqeu.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-npejf0.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1v4nyqq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1r4si7v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-505x4p.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1f0g50f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-13wsuc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-hmdj32.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-3cy2rx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-17920cx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-18nnf6g.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-tk56xz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-ppjxtg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-4zj9go.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-4lohf3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1945z2a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-11fitt5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:44.150095"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:31:44.182565"], ["updated_at", "2017-01-26 17:31:44.182565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1wdb0pa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-ceq5b0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-ptzs0b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29660-1knr1n0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-1kmoyrh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29660-nhe0cl.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-29660-1hy4f80' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29660-1dw4pyj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29660-198q9ie.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:31:44.365570"], ["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-01-26 17:31:44.397328"], ["updated_at", "2017-01-26 17:31:44.397328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-29660-165adk7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/283b93c9f82e19a7cd2d7b3aeca8fbd120170126-29660-gddx74.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/283b93c9f82e19a7cd2d7b3aeca8fbd120170126-29660-mhm1vl.csv' 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", "failures20170126-29660-165adk7.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:31:44.437042"], ["updated_at", "2017-01-26 17:31:44.467171"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-11p4ibv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1zhg3e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-zuzzlc.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:39.439346"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:39.504202"], ["updated_at", "2017-01-26 17:34:39.504202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-1j6ou2y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1d7d59v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1810qad.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:39.553635"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:39.588042"], ["updated_at", "2017-01-26 17:34:39.588042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:34:39.613065"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 37ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-7ijyo5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1sdr3db.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1bl6774.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:39.660727"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:39.697188"], ["updated_at", "2017-01-26 17:34:39.697188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:34:39.708757"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-18jfzr4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1uqfmm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-clumak.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:39.737980"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:39.769435"], ["updated_at", "2017-01-26 17:34:39.769435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:34:39.780384"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-r178ud' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-ikw2x6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-w7v673.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:39.808330"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:39.839087"], ["updated_at", "2017-01-26 17:34:39.839087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 21ms (Views: 15.3ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-15cx8nw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-a596a7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1fyi8jw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:39.957069"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:39.992024"], ["updated_at", "2017-01-26 17:34:39.992024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-kqk1mk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1pi9uua.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-wrtyhu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.047032"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:40.083293"], ["updated_at", "2017-01-26 17:34:40.083293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-11tuqzk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-cxmif5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-56k95g.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.124326"], ["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-01-26 17:34:40.159493"], ["updated_at", "2017-01-26 17:34:40.159493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-uxi9xe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1y9v3t2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-187b69j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.216373"], ["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-01-26 17:34:40.249414"], ["updated_at", "2017-01-26 17:34:40.249414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.2ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.2ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-b39hb8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-akz0cd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-wt758i.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.285789"], ["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-01-26 17:34:40.320313"], ["updated_at", "2017-01-26 17:34:40.320313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-29945-1bkhnsc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29945-1q0mijh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-29945-1ki22t4.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.357479"], ["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-01-26 17:34:40.390156"], ["updated_at", "2017-01-26 17:34:40.390156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-29945-1lvmnay.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/83fb86b14628534d8c63bc6890c03cfe20170126-29945-1qtknzi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/83fb86b14628534d8c63bc6890c03cfe20170126-29945-110pb2e.csv' SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170126-29945-1lvmnay.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:34:40.428138"], ["updated_at", "2017-01-26 17:34:40.462542"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-1wjixeb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1uwhfrr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-6eadwo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.510726"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:40.544508"], ["updated_at", "2017-01-26 17:34:40.544508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-1uftbgn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1sibjwy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-13cbw4j.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.570575"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:40.603006"], ["updated_at", "2017-01-26 17:34:40.603006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:34:40.610239"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-wwfyio' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-d1wre2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-gkqd53.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.645476"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:40.681054"], ["updated_at", "2017-01-26 17:34:40.681054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-aoixod' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1u26zu.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1ngcbn3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.707137"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:40.741624"], ["updated_at", "2017-01-26 17:34:40.741624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-up4iht' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1lorpl9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-enfs9p.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:40.769637"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:40.806895"], ["updated_at", "2017-01-26 17:34:40.806895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-uws34g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1lctmvb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1ac0c5b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-19a6ano.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1ju65eu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1as46c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-db2khs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-16av8jl.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-1xsw8q7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1idj8fg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-6rfshz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1w4xj1h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-97xa81.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-10ynj8s.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1qaxs2k.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-ilt6qh.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-zigq5q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-vg7ln2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-6zy5f8.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-16jbpqs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-ebg33h.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-17gnd9o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1h95hlm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1lxjmqx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-7uu14g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-mtacbp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1e1pg27.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-oci15s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-a50eyk.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-1589j0s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-16v2pic.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-29945-1iyalpg'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-lkjrmb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-h2vif.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1hhbxyg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:41.386072"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:41.419196"], ["updated_at", "2017-01-26 17:34:41.419196"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-mwhp3c' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1kvmhw5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-197i2ku.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-chyllo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-2p0hn8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-yoagha.csv'  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-29945-1nocj21' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-6xzmmb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-29945-1fpvtfk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:34:41.606591"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:34:41.642473"], ["updated_at", "2017-01-26 17:34:41.642473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-8surw8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-15ynwyd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1fxj9ge.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:49.790288"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:49.854704"], ["updated_at", "2017-01-26 17:35:49.854704"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1x1gt9w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1uxoigq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-vct05h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:49.883124"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:49.919596"], ["updated_at", "2017-01-26 17:35:49.919596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 28ms (Views: 16.6ms | ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-b1rb1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1uz4da9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1x7dpzb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:49.988146"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:50.019817"], ["updated_at", "2017-01-26 17:35:50.019817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 23ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-148m951' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1lk2gr4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-62g9ga.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.073308"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:50.111177"], ["updated_at", "2017-01-26 17:35:50.111177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:35:50.122575"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 12ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-14qrmmw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-18em9s2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1whwd1o.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.158623"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:50.192809"], ["updated_at", "2017-01-26 17:35:50.192809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:35:50.220032"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1aui4st' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-16f53oh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1udikmt.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.248060"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:50.278276"], ["updated_at", "2017-01-26 17:35:50.278276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:35:50.292013"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 13ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1is4th5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-l4so17.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-12g15c4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.322976"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:50.356593"], ["updated_at", "2017-01-26 17:35:50.356593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-81n4zs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-9tjtvn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-r3ol6i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.572569"], ["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-01-26 17:35:50.608385"], ["updated_at", "2017-01-26 17:35:50.608385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-npc94m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-ji7t22.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1a5f2gd.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.652745"], ["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-01-26 17:35:50.687856"], ["updated_at", "2017-01-26 17:35:50.687856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-zjp2qt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-14xf7sr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1n70uci.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.738228"], ["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-01-26 17:35:50.771924"], ["updated_at", "2017-01-26 17:35:50.771924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-7spqtw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-brzie6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1v8uov3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.824859"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:50.861104"], ["updated_at", "2017-01-26 17:35:50.861104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-01-26 17:35:50.870380"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-m5batp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-14tqkfd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1p6jent.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.891747"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:50.930202"], ["updated_at", "2017-01-26 17:35:50.930202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-30103-1px5f7z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-30103-9d8yxf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-30103-qfbc8q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:50.956696"], ["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-01-26 17:35:50.989606"], ["updated_at", "2017-01-26 17:35:50.989606"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-30103-9qqoc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/852c24c969cb0dcd6120ac4669cd887720170126-30103-y1cgkj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/852c24c969cb0dcd6120ac4669cd887720170126-30103-q055a2.csv' 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", "failures20170126-30103-9qqoc.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:35:51.026030"], ["updated_at", "2017-01-26 17:35:51.055843"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (1.4ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1y538cn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-xgl9ef.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1b1652a.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:51.112552"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:51.151236"], ["updated_at", "2017-01-26 17:35:51.151236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1i9b886' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-6lk5yw.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-pmdlsm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:51.185373"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:51.224855"], ["updated_at", "2017-01-26 17:35:51.224855"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-13uvgev' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-18cflg2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-a5l11t.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:51.254454"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:51.290190"], ["updated_at", "2017-01-26 17:35:51.290190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-5719z6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1nbt776.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1gpbpof.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:51.315214"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:51.344791"], ["updated_at", "2017-01-26 17:35:51.344791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-8nrp2b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-15ljdzw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-vt0vg8.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1y38l05' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1pujs7u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-15sqwr2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-pu8upq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1yxnle4.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-o0z1jp.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-abjyak.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1vnjtr9.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1wn30rs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-8ohpk2.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-16ay7an' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-7kq0id.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-175dtqi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-hfntva.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-onki5d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-x89fn6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-82zvmx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-ai5vaq.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-rqc9he' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-898t4p.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1lt64tg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-m5wye2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-18znc32.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-16dqsd2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-skfwhi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1cp02g1.csv'  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-6rx1z2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-3udmvn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-30103-1o9x831'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1m3or1v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-qrlvmw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-r1io3s.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:35:51.908827"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:35:51.941408"], ["updated_at", "2017-01-26 17:35:51.941408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-bgz1fw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1h450yy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-n1spzq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30103-1rya3kk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-1oveoz5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30103-glpjqp.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30234-1q4k3oi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30234-fegwrm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30234-v67vpk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:36:12.488473"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:36:12.550331"], ["updated_at", "2017-01-26 17:36:12.550331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30307-xuved7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30307-19j3kqn.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30307-16lkm89.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:36:57.175851"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:36:57.226796"], ["updated_at", "2017-01-26 17:36:57.226796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30328-dq7m5v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30328-ng3pn2.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30328-11b7vmq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:04.401296"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:04.452495"], ["updated_at", "2017-01-26 17:37:04.452495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30363-wrt8o9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30363-90rnw8.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30363-1dnd92e.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:15.071515"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:15.122905"], ["updated_at", "2017-01-26 17:37:15.122905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-1brhqyg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-5adxg0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1gl749g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:20.934433"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:20.986615"], ["updated_at", "2017-01-26 17:37:20.986615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-30381-1m18qdd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-30381-129gclg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-30381-bjny4j.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.024422"], ["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-01-26 17:37:21.058731"], ["updated_at", "2017-01-26 17:37:21.058731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.7ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-30381-1de3q2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0cd2763aa16400df9d1b2a1dfe317c3b20170126-30381-13vdlj8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/0cd2763aa16400df9d1b2a1dfe317c3b20170126-30381-i486ny.csv' 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", "failures20170126-30381-1de3q2.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:37:21.140036"], ["updated_at", "2017-01-26 17:37:21.170504"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-4lozin' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1muocb0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-100ldut.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.273067"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:21.305874"], ["updated_at", "2017-01-26 17:37:21.305874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.1ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-tp2wox' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-11hm726.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-ibqx85.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.357844"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:21.391727"], ["updated_at", "2017-01-26 17:37:21.391727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-1tj0ee6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-9pnikk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1rwtf7i.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.423279"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:21.456382"], ["updated_at", "2017-01-26 17:37:21.456382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-fr7udw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-o524ny.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-tk919s.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.490160"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:21.522882"], ["updated_at", "2017-01-26 17:37:21.522882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-01-26 17:37:21.555278"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 23ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-1vpnaht' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1uh382v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-7wju02.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.606195"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:21.652803"], ["updated_at", "2017-01-26 17:37:21.652803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:37:21.668903"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-g2lbpe' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-irl1qn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1s1crie.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.694318"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:21.727888"], ["updated_at", "2017-01-26 17:37:21.727888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:37:21.737865"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-1fdypwd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-9vehbf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1lj6f7f.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.789977"], ["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-01-26 17:37:21.822427"], ["updated_at", "2017-01-26 17:37:21.822427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-6nj0vy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1614adj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1gkofp8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.856534"], ["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-01-26 17:37:21.889381"], ["updated_at", "2017-01-26 17:37:21.889381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-p3u9go' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1xkmzx8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-jvb1p.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:21.924718"], ["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-01-26 17:37:21.957470"], ["updated_at", "2017-01-26 17:37:21.957470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-1sp8bty' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1449mdk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1cpij7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:22.009396"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:22.043265"], ["updated_at", "2017-01-26 17:37:22.043265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-1oxgd0h' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-13gxs5k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-hg1hub.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:22.070170"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:22.107752"], ["updated_at", "2017-01-26 17:37:22.107752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:37:22.116282"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-z6tx9v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1acw0c9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1r2jmbz.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:22.157415"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:22.190676"], ["updated_at", "2017-01-26 17:37:22.190676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.4ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-1voreaa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1lucdfe.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-30381-1gqimj2'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-ee17rl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1l8hkdc.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-7q4d5b' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-pxejmy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-qex1ot.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-xf4yih.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1bh6h2o.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-r8n6n6.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-17y1n40' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1avad6v.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-za85m.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-c29fln' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-17ig857.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-e70d0t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1i3ktia.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1f614m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-psk2s3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-k6ibf0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1ijkurx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-5gwm10.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1qg3bjk.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-1xuzl34' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-h3pd2f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1b2ykxj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1wweuft.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-g0ako4.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-t1y9qz.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1hvh5yf.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1y9cehn.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-1kewg39' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-17z4xoi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-tf2x23.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-wn6a3w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1pxpnt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1nx27e.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-15fir3e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1cwhxl3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1e7ibg3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:22.877644"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:22.907548"], ["updated_at", "2017-01-26 17:37:22.907548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-qi5i1a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1g9cdzy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1xuo306.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:22.935800"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:22.969294"], ["updated_at", "2017-01-26 17:37:22.969294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-p08gqa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1iburkt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1c7xta0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:22.994162"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:23.027554"], ["updated_at", "2017-01-26 17:37:23.027554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30381-wib2wd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-rwkswq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30381-1p7exg3.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:37:23.051593"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:37:23.086675"], ["updated_at", "2017-01-26 17:37:23.086675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (2.0ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-yj45s8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-639gbk.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-ur64ee.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:18.258818"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:18.311244"], ["updated_at", "2017-01-26 17:44:18.311244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-nvi8cq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-f903gj.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1fxmg88.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:18.341828"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:18.372424"], ["updated_at", "2017-01-26 17:44:18.372424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 21ms (Views: 13.2ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-1yyvqea' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1ylzxdl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-ie47rb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:18.425234"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:18.459472"], ["updated_at", "2017-01-26 17:44:18.459472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 23ms (Views: 3.4ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-5u6xw0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-jhj73e.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-g9oez8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:18.510257"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:18.544029"], ["updated_at", "2017-01-26 17:44:18.544029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-01-26 17:44:18.555111"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 15ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-1t0139v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-cgm937.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-15xahkf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:18.590891"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:18.622805"], ["updated_at", "2017-01-26 17:44:18.622805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:44:18.641642"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-13cboal' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-44mb3w.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1twx7mb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:18.668823"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:18.700891"], ["updated_at", "2017-01-26 17:44:18.700891"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:44:18.712216"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-15rsmlp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-u16z8q.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-120lnud.csv' 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-01-26 17:44:18.758474"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-26 17:44:18.788021"], ["updated_at", "2017-01-26 17:44:18.788021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-jheln2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1ab5fv2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1gdcxfy.csv' 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-01-26 17:44:18.823916"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-26 17:44:18.854150"], ["updated_at", "2017-01-26 17:44:18.854150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-187j0rn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1tgcctd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-7hwer0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:18.888584"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:18.923945"], ["updated_at", "2017-01-26 17:44:18.923945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-eoc0p1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-jvf3wc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-nxp7u9.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:19.035370"], ["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-01-26 17:44:19.070474"], ["updated_at", "2017-01-26 17:44:19.070474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-8hpk35' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1am1cy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-17ahuno.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:19.131462"], ["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-01-26 17:44:19.165448"], ["updated_at", "2017-01-26 17:44:19.165448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-125d7ka' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-v3j321.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-kaxnuv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:19.200748"], ["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-01-26 17:44:19.233063"], ["updated_at", "2017-01-26 17:44:19.233063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-30864-agi4ym' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-30864-1d7qs0a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-30864-17sek46.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:19.276027"], ["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-01-26 17:44:19.308941"], ["updated_at", "2017-01-26 17:44:19.308941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-30864-1mthr0r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6c21f4cfae14792d8df60669842b8ea020170126-30864-16fhtef.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6c21f4cfae14792d8df60669842b8ea020170126-30864-5hltkm.csv' 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", "failures20170126-30864-1mthr0r.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:44:19.345901"], ["updated_at", "2017-01-26 17:44:19.378595"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-1vthtx7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1ybdcd6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-wqnxcq.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:19.434785"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:19.469430"], ["updated_at", "2017-01-26 17:44:19.469430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-1lpcgd9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1ol2gsp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1wrq224.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:19.493849"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:19.524627"], ["updated_at", "2017-01-26 17:44:19.524627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-11ce8c0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-k2yknr.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-12eip6l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1i3ctug.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-19jmzi9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1j831rf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-6u0app.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-w7zag9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-zr6gny.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-7smffi.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-1ko6qxw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-12jedx1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-30864-uvpeg8'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-x0z6uj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1jg55fr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-uja933.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-i3rbuz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-hz2ey7.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-jhkpjh.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-4b5hwu.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-19smop6.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-3534ck' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-mxrav7.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-2h1q5z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-ne9ekq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1bqklai.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-1kygmda' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-uqteni.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-125io7x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-a27cl5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-4jozns.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1ltlg55.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-1nxw5c2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-mnarr1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-18ocy3i.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-118qe5a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1ymbwes.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-9pr33x.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-hg1j0f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-2teh6m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1hilsmv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:20.187989"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:20.218218"], ["updated_at", "2017-01-26 17:44:20.218218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-1rd1rpi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1i7udcy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-17c97ei.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:20.244165"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:20.274688"], ["updated_at", "2017-01-26 17:44:20.274688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-i7mywr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1a94k9p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1lv8cgp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:20.301438"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:20.334524"], ["updated_at", "2017-01-26 17:44:20.334524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-16vnao4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1nt430d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-e3urhe.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:20.382422"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:20.418743"], ["updated_at", "2017-01-26 17:44:20.418743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30864-1awdvev' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-b9txu0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30864-1i4wuty.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:20.444160"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:20.482192"], ["updated_at", "2017-01-26 17:44:20.482192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:44:20.489913"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.7ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.9ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-d1i5yf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1ki0rms.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-133v8d7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:26.274889"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:26.327150"], ["updated_at", "2017-01-26 17:44:26.327150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170126-30993-19uq50u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-30993-1vpgp7j.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170126-30993-vcfu1q.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:26.373663"], ["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-01-26 17:44:26.407379"], ["updated_at", "2017-01-26 17:44:26.407379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170126-30993-wxw7ja.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2561ef5b825f2540354ff3b38e331fc820170126-30993-1rq61ho.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2561ef5b825f2540354ff3b38e331fc820170126-30993-1csmygg.csv' 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", "failures20170126-30993-wxw7ja.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-01-26 17:44:26.473172"], ["updated_at", "2017-01-26 17:44:26.504736"], ["id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.4ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1sm12pb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1a6f932.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-cfe4ke.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:26.534506"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:26.568759"], ["updated_at", "2017-01-26 17:44:26.568759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1kqegtc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-14a5c1f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-4a4qt9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:26.598558"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:26.634065"], ["updated_at", "2017-01-26 17:44:26.634065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1asvdza' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1dybv9l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1y87mgo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:26.660987"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:26.698546"], ["updated_at", "2017-01-26 17:44:26.698546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1gkue0e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-m30oyy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-i9p6iy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:26.724034"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:26.757165"], ["updated_at", "2017-01-26 17:44:26.757165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-akk36v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1yl6d68.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-kdmdv9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1p4b7z0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-7vtecs.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-7u2k4w.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-n5zs8e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-jrhqz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1xrmg9n.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-13f26m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-y2auwe.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-wu7716.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-ivu9f0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1c22ib8.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1q5u771' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-107xtd0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-wrvvd4.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-sxnnv1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-bfv78m.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-7mle1j.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-17pdmn2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-vnihhu.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-5ch783.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1vzs543.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-zrpg9y.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1c04v7o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-186pueo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170126-30993-1sm2lo9'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-jl4y1r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1lzol17.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-j86wjz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1kma6nm.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1te9g7r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1lh1tes.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-16cl6mv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:27.347724"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:27.382065"], ["updated_at", "2017-01-26 17:44:27.382065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-nhy90w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-raz8d3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-rldn2r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-ql3x4l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-ajojw7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-lqr5jm.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1fkfes7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-xl77fn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1yfgbw7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:27.519103"], ["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-01-26 17:44:27.550678"], ["updated_at", "2017-01-26 17:44:27.550678"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-gekcla' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-hv5lyo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-ti0yi5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:27.622242"], ["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-01-26 17:44:27.659710"], ["updated_at", "2017-01-26 17:44:27.659710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1gchtss' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-8d3t6d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1e3cl3y.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:27.704335"], ["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-01-26 17:44:27.736530"], ["updated_at", "2017-01-26 17:44:27.736530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-xy8btx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-15y8ei9.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1vi4e4a.csv' SQL (0.5ms) 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-01-26 17:44:27.818796"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-26 17:44:27.852097"], ["updated_at", "2017-01-26 17:44:27.852097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.7ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1m28j48' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-uv5ydy.csv'  (0.7ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1oqaoo1.csv' 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-01-26 17:44:27.893055"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-01-26 17:44:27.925936"], ["updated_at", "2017-01-26 17:44:27.925936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 60ms (ActiveRecord: 1.1ms)  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-1798rym' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-u6gp4o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1pi2xf9.csv' SQL (0.9ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:27.973730"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:28.007614"], ["updated_at", "2017-01-26 17:44:28.007614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-wdbxgu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1vrw8eo.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1y0rp4y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:28.056153"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:28.090635"], ["updated_at", "2017-01-26 17:44:28.090635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:44:28.103893"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 29ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-4p73op' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1mfb5tv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-4s6hdb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:28.155154"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:28.190148"], ["updated_at", "2017-01-26 17:44:28.190148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:44:28.208348"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-h98wmd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1dzh22i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-bpqny.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:28.237118"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:28.271381"], ["updated_at", "2017-01-26 17:44:28.271381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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-01-26 17:44:28.281931"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-f0q2l8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1eja52l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-l5ci27.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:28.311363"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:28.343568"], ["updated_at", "2017-01-26 17:44:28.343568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.5ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-awm8e9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-179nk6b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1xf4rm2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:28.377241"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:28.411903"], ["updated_at", "2017-01-26 17:44:28.411903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-18t0rm8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-b6pqck.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-byfag.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:28.470768"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:28.504554"], ["updated_at", "2017-01-26 17:44:28.504554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170126-30993-mb50yx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-zqo2re.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170126-30993-1r0knkl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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-01-26 17:44:28.531306"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-01-26 17:44:28.567670"], ["updated_at", "2017-01-26 17:44:28.567670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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-01-26 17:44:28.575194"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.6ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.5ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-xjti0z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-fmsq5n.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-tcm307.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-19hrptc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-eogzjs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-o4hcou.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-uv2y0t' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1rq65rw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-18u380.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-qbe6hb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-xru8v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-12rhgtr.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-vzdph4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1tamn97.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-lqm2pd.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-x8u5cc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1s1vx89.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1yqeqrc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-zw35di' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1cizmpb.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1guutdr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1y43td4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-137faj8.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-yvvc7w' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1mxji5g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170405-54106-8isdjq'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-6jh0et' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-151xu8x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1ajtas5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-htdvkp.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1g73qc5.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-oafabq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1me1nkg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-13wu7t3.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-sebi9l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-6whw0w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1t2fomu.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1ibnxsg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1q12365.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-pku9er.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1gh0l14.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-q5yd48.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1d3w07i.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-12bf7sh.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1dggn9o.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-wutd4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1841qp6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-12revum.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1ptld93.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1ku21v2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-347ena.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-nkdje9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-nr9k2v.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1bzd2pw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-176039t.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1jreo6c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1wyw0gw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1szvfvl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-468eee.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-15iwyn9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-hlgpsw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-cy2kxz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170405-54106-jzcc8l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170405-54106-6iz3fh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170405-54106-f8h12u.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170405-54106-13fpq5g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/33031800b6a638223817f8f2bca10f0220170405-54106-1988v1y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/33031800b6a638223817f8f2bca10f0220170405-54106-1eyx43j.csv' 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1usuhqb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-g5vjge.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-dqp97r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-3kyudq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-15qu4s.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-pqy8si.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1lxq69l' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1kzi2ku.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-17z5dfv.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-daxrnw' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-jk1359.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-mib1yg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1m20y92' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1gb22a6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-9purvp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-iborje' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-8jqcd7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-yk40ad.csv' 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1w6ubfy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-qu0czi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1p88mao.csv' 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 53ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1vg0gtd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-148zeqm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-y83ku1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-1we8paj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1j5fz90.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1kz9hsc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 13ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-18m3f80' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-qhucfi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-n0g2ob.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170405-54106-sajo8d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1jc2knq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170405-54106-1gcf0y0.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-zuh3ag' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-2p6fjg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lrr9oi.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1m2akre' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-c79kr3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-h4b6z7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 31ms (Views: 19.3ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-inhput' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-eel28t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-s7pt3e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-y3ebob' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1seunbn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-bngfyc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 23ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-14p5teo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-163nbc2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-qgc72i.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 13ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1w0txnc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-noc3lp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1ksum9g.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1i28ri4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-8lbdz7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-datbs7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-of5d1j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-vgysm7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1el6xhr.csv' 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.5ms) Importer Load (0.7ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1mkr0pb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1wjqoec.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-jzwzif.csv' 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170406-92002-19gzjw9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-92002-h0wvma.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-92002-irolfa.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170406-92002-8pd0oz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4f34ac7af1d85937a68bd0b0b45b0e4020170406-92002-cak0jm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/4f34ac7af1d85937a68bd0b0b45b0e4020170406-92002-15qx3v8.csv' 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-135oref' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-15xywcl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-19ttdeo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1pmprmn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-ue1zrq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1hf8etu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1g8nw4n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-8nx5je.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1tf5phh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-p9mqww' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-48wp7i.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1sx077.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-h4de84' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-105320a.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1eoaxun.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1y6ivoa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-davwbb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1tazzjr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-otzkwa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-khlxvq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-fd1u2q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1uxe68h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-ed9fj6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-10qk2bn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1wj0h4n.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-15efexu.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1npjp58.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1s6sct9.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1cmaz34' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-y2v8hg.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1kvw3ww' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lefmoa.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170406-92002-1kf3h4h'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1b68nu9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-14057k3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-170ifbc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lz1el9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1ug41gf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-hauh8y.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-ybydwx' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-wxvf3h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-4n9mki.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1esfjqy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-16nui6e.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-k3wqco' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1kpaomf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lhx0p4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-x79fwf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-2tclls.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1phze2w.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1vk8jo7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-wiv477.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-pp8heh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1vedv1z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-n65bux.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1ee78ce.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.2ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-t6yjoy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-h79gxz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1j5yg0d.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-od4cjr' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-10kaj5z.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-1sqndg6.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1dii11q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-6lcac5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-bh7pjr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-92002-1fpdcio' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-3zr2cz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-92002-lkis0n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (2.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-fc5ffv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-37ry8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-813v91.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:50.610804"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:50.670623"], ["updated_at", "2017-04-06 21:09:50.670623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-j9rlwf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-cp1hy0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-iyvvi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:50.702593"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:50.735485"], ["updated_at", "2017-04-06 21:09:50.735485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-tzgyaj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-7kqzcv.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1vsfss7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-x7cti4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-7bicbi.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:50.938217"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-04-06 21:09:50.967550"], ["updated_at", "2017-04-06 21:09:50.967550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1a36hqy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-a6eg2h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-fg3i79.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.032560"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.065971"], ["updated_at", "2017-04-06 21:09:51.065971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1ct66rs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1fh2na6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-z5io7d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.154000"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.181603"], ["updated_at", "2017-04-06 21:09:51.181603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-04-06 21:09:51.215094"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-10n94va' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1rgaek5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-12kfqan.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.235398"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.263273"], ["updated_at", "2017-04-06 21:09:51.263273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1e0xa3q' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1aezs4f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1ui4ot8.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.302028"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:09:51.329218"], ["updated_at", "2017-04-06 21:09:51.329218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 54ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1sftryk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1vxkz6m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-14bxdmb.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.364222"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:09:51.392402"], ["updated_at", "2017-04-06 21:09:51.392402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 52ms (ActiveRecord: 0.4ms) Importer Load (0.5ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-rriz7f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-ec8nwn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-180d5t8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.439018"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.470590"], ["updated_at", "2017-04-06 21:09:51.470590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 17.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1d9xxwj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-e76cux.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-xgn5vi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.520398"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.548041"], ["updated_at", "2017-04-06 21:09:51.548041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:09:51.559103"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-16vss43' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1p62s7v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-19kh9fy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.589206"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.621032"], ["updated_at", "2017-04-06 21:09:51.621032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:09:51.633386"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 17ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1fz1cxm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-612ywf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-d79ugv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.668029"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.697347"], ["updated_at", "2017-04-06 21:09:51.697347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:09:51.709866"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-t3zgds' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-3yggla.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-itac29.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.735565"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.765205"], ["updated_at", "2017-04-06 21:09:51.765205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-689491' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-14fla3k.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-ajhjq2.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.800070"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.832034"], ["updated_at", "2017-04-06 21:09:51.832034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170406-94054-i2x3ei' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94054-vz86fy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94054-15d8mgk.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-04-06 21:09:51.866542"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:51.896519"], ["updated_at", "2017-04-06 21:09:51.896519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1n955px' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1euxcms.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1lpxj9x.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:51.978740"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.007519"], ["updated_at", "2017-04-06 21:09:52.007519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-9iwv5g' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1koeo3o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-yl7ymi.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:52.029325"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.059214"], ["updated_at", "2017-04-06 21:09:52.059214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-197pp6u' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-b112qf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-189zr8j.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:52.084342"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.115669"], ["updated_at", "2017-04-06 21:09:52.115669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-12z9zx7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-phhqqm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-19qpgnq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:52.141097"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.174550"], ["updated_at", "2017-04-06 21:09:52.174550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1xr0a59' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-s7n6vy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170406-94054-1nbi8z5'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-rdot73' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-12u0h0y.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-bli3mf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1g3eqmr.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1qtyq2p.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-deji3z.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-k4btzm' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-12hsow9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-jk36hl.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-ki9v1d' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1z04ob7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-cvzbq4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-rzng7b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1m8c7wy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-rszrfu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-i67swv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-16pvpbz.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1vq5mvl' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-16fibjb.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-aw2evz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-rwwlpl.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-125a7e9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1fywvqb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-ae09oq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1ndwlbf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-jimye0.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-87n36k.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1raaetb.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1apimnt.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-1jf0u9k' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-13eciyu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-pr0mf2.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:09:52.707659"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:09:52.740461"], ["updated_at", "2017-04-06 21:09:52.740461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-wfmwfo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-db4m8z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1w0ik8v.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94054-c1bpuz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-nh9s4p.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94054-1fa1pdf.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1yrkpfy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1iqv9t.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1c8x1f5.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.041279"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.096445"], ["updated_at", "2017-04-06 21:10:06.096445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-15vzd41' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1siwdpa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-19p1d77.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.196357"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.223386"], ["updated_at", "2017-04-06 21:10:06.223386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.3ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-19v02xd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1s2rdj0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1woqi9y.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.257522"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.289617"], ["updated_at", "2017-04-06 21:10:06.289617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-04-06 21:10:06.315721"], ["id", 1]]  (21.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170406-94183-v5vntj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94183-11kwtgl.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94183-1licqm7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-04-06 21:10:06.357933"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.387739"], ["updated_at", "2017-04-06 21:10:06.387739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1t5lyoq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1epbfqi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1kgs0v6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.467814"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.497647"], ["updated_at", "2017-04-06 21:10:06.497647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-bvk6nu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-13jgcz8.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-cxebxs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-15qsmj3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1xd9xg4.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.612633"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-04-06 21:10:06.641046"], ["updated_at", "2017-04-06 21:10:06.641046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-b0nd1x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1mi6epd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1llzrwr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.700362"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.733261"], ["updated_at", "2017-04-06 21:10:06.733261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-969wba' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ofd78l.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-71qi0k.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.805621"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.838662"], ["updated_at", "2017-04-06 21:10:06.838662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.2ms) Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1v2edqk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-wsqva1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1iazs62.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.886019"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.920949"], ["updated_at", "2017-04-06 21:10:06.920949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:06.930639"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 19ms (ActiveRecord: 0.4ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1dx3uyh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-i3yxok.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-usbsqc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:06.967223"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:06.996527"], ["updated_at", "2017-04-06 21:10:06.996527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:07.008017"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-4ns6yp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-9gvpdi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-13erv8z.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.033934"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.063486"], ["updated_at", "2017-04-06 21:10:07.063486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:07.077041"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-x9c4uk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-18bzxnd.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-rnvddj.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.110335"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:10:07.139475"], ["updated_at", "2017-04-06 21:10:07.139475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1f19hle' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-521l1m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-xfw110.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.182102"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:10:07.211090"], ["updated_at", "2017-04-06 21:10:07.211090"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 55ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1vygulf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-18f2zjm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-bfnbk4.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.249210"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.283160"], ["updated_at", "2017-04-06 21:10:07.283160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1rvm65i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-a5jif8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-113o1ym.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.316225"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.347304"], ["updated_at", "2017-04-06 21:10:07.347304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-cgz1s4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ema7k5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-ickz30.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.404544"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.437228"], ["updated_at", "2017-04-06 21:10:07.437228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-3jco1i' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-whfijq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ljxxmf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.464483"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.491922"], ["updated_at", "2017-04-06 21:10:07.491922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-10vbh5e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-15x2xma.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-ae4xkr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.514588"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.547365"], ["updated_at", "2017-04-06 21:10:07.547365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1diabab' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-2agf65.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-19t4a4d.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:07.569306"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:07.600028"], ["updated_at", "2017-04-06 21:10:07.600028"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1nv519z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-htgfpg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-16przre.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ue8pst.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ju5ydf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-qcj95k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1m32vgb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-p2pt1n.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-gdcud3' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1dthstp.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1af9yrt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-se5kmw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170406-94183-8lj9te'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-j2tynj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1191fva.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-riq2p6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1wht370.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-3nosjt.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-ahuyhb' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-z20zx8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1yonfq0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-rtnc79.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-l2th65.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-impp9r.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-19h97e' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-nfyya.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-9x81pf.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-2qgzy4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1ol2ebe.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1j2yqtc.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1alk5tu.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1czushh.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-1qhqxn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1y856sk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-1nb97w.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:08.142818"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:08.178256"], ["updated_at", "2017-04-06 21:10:08.178256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-lx71g7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-l9u02.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-lsqji1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94183-qhtp6s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-181f536.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94183-15xzqrk.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddsAdditionalDataToImporters (20170405100034)  (0.0ms) begin transaction  (0.4ms) ALTER TABLE "importers" ADD "additional_data" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170405100034"]]  (1.5ms) commit transaction Migrating to AddsAdditionalAttributesToCompany (20170505100034)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "companies" ADD "one_additional_attribute" varchar  (0.2ms) ALTER TABLE "companies" ADD "other_additional_attribute" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170505100034"]]  (0.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.6ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-5iemyf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-buo6v1.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-dysjmq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.341367"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.396467"], ["updated_at", "2017-04-06 21:10:32.396467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170406-94335-zo6dk7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94335-x43pkq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170406-94335-12wp5p7.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-04-06 21:10:32.487182"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.524479"], ["updated_at", "2017-04-06 21:10:32.524479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.4ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170406-94335-1j4fnr0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67628934b218fc18f00c226e1de766020170406-94335-ji1kqx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67628934b218fc18f00c226e1de766020170406-94335-38ca15.csv' SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170406-94335-1j4fnr0.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-04-06 21:10:32.619639"], ["updated_at", "2017-04-06 21:10:32.646822"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-zz4t51' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-qrggwu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1m0xvku.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.732849"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.764463"], ["updated_at", "2017-04-06 21:10:32.764463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.0ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-ezecx0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1m2at58.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-z6cjot.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.800785"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-04-06 21:10:32.831683"], ["updated_at", "2017-04-06 21:10:32.831683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1ggrs4a' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1cass8b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1bnoo63.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.881015"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.912060"], ["updated_at", "2017-04-06 21:10:32.912060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-18dhz62' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1nn0wr5.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1etw7vu.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:32.945953"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:32.976275"], ["updated_at", "2017-04-06 21:10:32.976275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-11ndndf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-197reje.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-xioz76.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.013180"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.043059"], ["updated_at", "2017-04-06 21:10:33.043059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1pdqtzq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-2e79gw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-174p5xb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.068759"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.098712"], ["updated_at", "2017-04-06 21:10:33.098712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1bjk0a6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-23j6nx.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1t65jj0.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.120960"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.150629"], ["updated_at", "2017-04-06 21:10:33.150629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-c4y247' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1ouf5m3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-wtpx0d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1lk2io9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1xbvxbq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-17zb3x4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-irs9fh.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1p18e0d.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-xouwr0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-n82yu6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-kt40z9.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1526rit' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-krlyux.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-6yjojo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1uub4yb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170406-94335-4x1dlh'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-o048iq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-ehfnxg.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-t71655' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-4hpgj6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-uvwqxi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1jvsfzm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-d2xqzt.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1glch99.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1sljfp7.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1yh2ai9.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1496tyc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1nil60z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1k8osrc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-n3ctmq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1w4j8w3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1c8wbc6.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-16hncac' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-v12n7p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1bvgk9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.667534"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.698267"], ["updated_at", "2017-04-06 21:10:33.698267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1t7titu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-auakko.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-17pu9u7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1ymgdl1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-esn3ia.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1i0hgxt.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1p5iztc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-a3wd0r.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-132p6rv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.820664"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.852302"], ["updated_at", "2017-04-06 21:10:33.852302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-aodz9x' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1qf6m5h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-10doagi.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.882908"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.915581"], ["updated_at", "2017-04-06 21:10:33.915581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-10fwyos' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-157d091.csv'  (0.3ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1utzpq.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:33.940285"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:33.971706"], ["updated_at", "2017-04-06 21:10:33.971706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-04-06 21:10:33.979619"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-aw7y4o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-10inv1x.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-467v28.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.004243"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.034248"], ["updated_at", "2017-04-06 21:10:34.034248"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:34.051478"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-15fskh' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1aazu8h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-tyjt4g.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.081544"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.114631"], ["updated_at", "2017-04-06 21:10:34.114631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:34.129712"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 14ms (ActiveRecord: 0.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1lyy8qu' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-m4tiqa.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-drds2f.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.157464"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.188189"], ["updated_at", "2017-04-06 21:10:34.188189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-04-06 21:10:34.200925"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-9dl7op' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-gizpna.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1bhgnta.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.228147"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.263201"], ["updated_at", "2017-04-06 21:10:34.263201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 19ms (Views: 14.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-8ytp0n' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1ndpylr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1s44dn9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.311498"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.344197"], ["updated_at", "2017-04-06 21:10:34.344197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-id4gko' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-17ofw9b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-12lirhh.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.395067"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:10:34.423319"], ["updated_at", "2017-04-06 21:10:34.423319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 58ms (ActiveRecord: 0.6ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-11jzi30' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1pl5rq4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1el7xps.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.468931"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-04-06 21:10:34.500232"], ["updated_at", "2017-04-06 21:10:34.500232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 74ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170406-94335-1f7j7en' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1cvbqas.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170406-94335-1vrn3gr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-04-06 21:10:34.544195"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-04-06 21:10:34.576518"], ["updated_at", "2017-04-06 21:10:34.576518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.9ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.7ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1gkt0ny' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-14lmszr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-w1ee6f.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:47.735103"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:47.799793"], ["updated_at", "2017-06-02 23:16:47.799793"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-aohpk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1fbex16.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-4xgnp1.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:47.847915"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-06-02 23:16:47.882882"], ["updated_at", "2017-06-02 23:16:47.882882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1ryd4t2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1f11ne0.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-17jpvog.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.035680"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.067807"], ["updated_at", "2017-06-02 23:16:48.067807"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-cg6zvk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1qupuyh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1sykpjr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.099437"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.133505"], ["updated_at", "2017-06-02 23:16:48.133505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-zvua3f' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1c71b22.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-5tl7zz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.164181"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.197836"], ["updated_at", "2017-06-02 23:16:48.197836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170602-53937-dtcipa' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-53937-56r4fu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-53937-q5a3r.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-06-02 23:16:48.230909"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.263831"], ["updated_at", "2017-06-02 23:16:48.263831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170602-53937-1jv81f1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6c674803fdfc79e87f644bd03561862c20170602-53937-15ucexl.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/6c674803fdfc79e87f644bd03561862c20170602-53937-8sl7gk.csv' SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170602-53937-1jv81f1.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-06-02 23:16:48.319935"], ["updated_at", "2017-06-02 23:16:48.353289"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1b16djs' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1s17sw7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1k1jgyl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.391571"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.425430"], ["updated_at", "2017-06-02 23:16:48.425430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1voxwtc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-12gccoc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-pfqziv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.468976"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.503161"], ["updated_at", "2017-06-02 23:16:48.503161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-06-02 23:16:48.509344"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-9ga6z6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1e95j83.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-nw16tg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.565948"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.603087"], ["updated_at", "2017-06-02 23:16:48.603087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-3yn7f0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-6umc7p.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-elj0kh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.630884"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.667848"], ["updated_at", "2017-06-02 23:16:48.667848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-fpgecf' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1r1xzyk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1hwony8.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:48.691559"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:48.726727"], ["updated_at", "2017-06-02 23:16:48.726727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-54r3nn' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1ba6341.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1kf212h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-zdtvfo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-cxpg3m.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-14xnsum.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-mycw4i.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ydn8ur.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-y0vwtk' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1hz0gdc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-yip222.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-zgu5ik.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1c1yn0e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1ozb3aa.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1os3osq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-w247xp.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-134doei' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1kg74rg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-17hg28o.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-5i709r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ccnkuy.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170602-53937-rl1ola'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-tte7wq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-7p7tpc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1xdlecw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-zne8x2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-o1ca9k.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-133p03e.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ncrw56.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ljsefp.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-kc4455' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-b5zqz4.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-hykku5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-d04eok.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-kxui0g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.280253"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.311643"], ["updated_at", "2017-06-02 23:16:49.311643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-wbhfdj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1ef3gs1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-t7t89u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1tc63ph' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-vdf4d7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-grjx8f.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-tcfabp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-7lf8zk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1tb1tt3.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.450144"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.480840"], ["updated_at", "2017-06-02 23:16:49.480840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-2m2cce' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1cf0oi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-hmkfpj.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.577275"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:16:49.607356"], ["updated_at", "2017-06-02 23:16:49.607356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 59ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-ifvjj1' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-vjsaxv.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1iy2kpq.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.649900"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:16:49.683281"], ["updated_at", "2017-06-02 23:16:49.683281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-aeq1cz' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1gu48ki.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-7oplxo.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.724176"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.755458"], ["updated_at", "2017-06-02 23:16:49.755458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 22ms (Views: 21.4ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1fgo074' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-ymqrzt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-10pgfee.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.805920"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.837211"], ["updated_at", "2017-06-02 23:16:49.837211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-btutwv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1h6abox.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1iymfij.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.886710"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:49.918673"], ["updated_at", "2017-06-02 23:16:49.918673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:16:49.930035"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 41ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1icgeha' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-hidvsn.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-18czwfm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:49.988903"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:50.023621"], ["updated_at", "2017-06-02 23:16:50.023621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:16:50.037059"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 19ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-1y5cawv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-1lbva4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-18x79sz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:50.074276"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:50.106936"], ["updated_at", "2017-06-02 23:16:50.106936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.5ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:16:50.119952"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-53937-7sphoi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-80j83b.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-53937-u2bduv.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 153], ["attachment_updated_at", "2017-06-02 23:16:50.145742"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:16:50.176592"], ["updated_at", "2017-06-02 23:16:50.176592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.8ms) DELETE FROM "companies";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (1.0ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.0ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-da3l1v' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1aic5uo.csv'  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-8qwr5p.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.319916"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.371365"], ["updated_at", "2017-06-02 23:19:01.371365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-sjknkg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1nhb79f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-bbtgo0.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.424021"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-06-02 23:19:01.453397"], ["updated_at", "2017-06-02 23:19:01.453397"]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1oekn8m' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-2j10sm.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-vodyoe.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.528056"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.559297"], ["updated_at", "2017-06-02 23:19:01.559297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-xoh1zq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-sts0j7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-rd6uyz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.597177"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.631600"], ["updated_at", "2017-06-02 23:19:01.631600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-vmvb1o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1smx1rr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-7vjjkg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.693842"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.726974"], ["updated_at", "2017-06-02 23:19:01.726974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1ae8g1p' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1v9dwku.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-7phio8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.760952"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.791647"], ["updated_at", "2017-06-02 23:19:01.791647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-06-02 23:19:01.810792"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-djw2g8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-ia9q7m.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-w8c2hb.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:01.833707"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.864765"], ["updated_at", "2017-06-02 23:19:01.864765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170602-54115-qy9aok' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-54115-h83std.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-54115-1737ub1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-06-02 23:19:01.890857"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:01.923369"], ["updated_at", "2017-06-02 23:19:01.923369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170602-54115-m6aill.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9e6be1aa757f08ed72d42871057d395720170602-54115-1ep8yrz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/9e6be1aa757f08ed72d42871057d395720170602-54115-7g5umk.csv' SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170602-54115-m6aill.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-06-02 23:19:01.957007"], ["updated_at", "2017-06-02 23:19:01.988369"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-t8g7js' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ajxte2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-176i83k.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.082462"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.112634"], ["updated_at", "2017-06-02 23:19:02.112634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:02.136082"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-3p3v3r' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ecegbs.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1jumod1.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.161277"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.194024"], ["updated_at", "2017-06-02 23:19:02.194024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:02.205218"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 17ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-wdbf81' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-4kymij.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-g5wo02.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.242496"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.273859"], ["updated_at", "2017-06-02 23:19:02.273859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:02.284876"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.5ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-14d8y0z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-b589wy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-hh8hak.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.314229"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.344754"], ["updated_at", "2017-06-02 23:19:02.344754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 12.8ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1q107ek' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ycyof3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1x39ugg.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.409989"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:19:02.438179"], ["updated_at", "2017-06-02 23:19:02.438179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 61ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-c3dmuq' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-kosw78.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-10htr4h.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.485201"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:19:02.515404"], ["updated_at", "2017-06-02 23:19:02.515404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 63ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1td200y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-nuavzk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1dem6ty.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.549615"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.583739"], ["updated_at", "2017-06-02 23:19:02.583739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-83sd00' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1a1k89p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1doi772.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:02.614480"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:02.644208"], ["updated_at", "2017-06-02 23:19:02.644208"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1n01hfi' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-extstc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1gptxao.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-ypnwt.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1usfdy2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-hod22u.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-12pu2ak' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1og6kee.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-rkcyb3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-18t3wq7.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-3n4wnl.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-zl9lv9.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-174a5mb.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-153ob2.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-gmyjp4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-2lztgu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-lfyvsy.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1uq3t62' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1q3g6eu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170602-54115-1ok1sjb'  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1pupei5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ovkmei.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1li1032' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-x2rf2b.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1vq4o1n.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-18wzmiq.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ywyje6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ti8pnn.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1ayz5fg.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-ctiwt0.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-zm5apv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1azj5u3.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-18b28u8' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-nyhhzz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1luam9n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.257557"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.293919"], ["updated_at", "2017-06-02 23:19:03.293919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-zzsj4o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-ob63j9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-10gog69.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-1evq8qy' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-td5opj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1qw4sn0.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-goe61z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1msg0y4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-woubjh.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.423609"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.457446"], ["updated_at", "2017-06-02 23:19:03.457446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-i2jep4' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1l0mmwq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-vwi6y6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.483453"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.518676"], ["updated_at", "2017-06-02 23:19:03.518676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-8yerza' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-zhfs4h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-jl8b41.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.546247"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.580483"], ["updated_at", "2017-06-02 23:19:03.580483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54115-lxssnj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-qiinw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54115-1mrjsfo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:03.604723"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:03.635516"], ["updated_at", "2017-06-02 23:19:03.635516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (1.3ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.6ms) DELETE FROM "users";  (1.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1yvotqo' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1ck4ci6.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1ju1hdn.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.251721"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.306388"], ["updated_at", "2017-06-02 23:19:10.306388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1r7lm5y' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-inq30i.csv'  (0.4ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-q9eb1r.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.336459"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.368764"], ["updated_at", "2017-06-02 23:19:10.368764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 21ms (Views: 13.9ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 16ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-ned24j' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-18npkla.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1imr9u8.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.456606"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:19:10.486572"], ["updated_at", "2017-06-02 23:19:10.486572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 62ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1gd2ivg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1a11u98.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1cssqqj.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "importable_type", "importable_id", "source", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.528148"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2017-06-02 23:19:10.556845"], ["updated_at", "2017-06-02 23:19:10.556845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 57ms (ActiveRecord: 0.4ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1t95mo0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1k8x3zu.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-mxn7sg.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.593624"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.623957"], ["updated_at", "2017-06-02 23:19:10.623957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:10.656354"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 14ms (ActiveRecord: 0.4ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-821iq6' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-rxuq8l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1a6rb54.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.692684"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.725357"], ["updated_at", "2017-06-02 23:19:10.725357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:10.735040"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-12uqycj' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-12iob6p.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-vewa4b.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.766677"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.798454"], ["updated_at", "2017-06-02 23:19:10.798454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2017-06-02 23:19:10.818776"], ["id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 12ms (ActiveRecord: 0.6ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-6zlwbd' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1nzv17d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1lkfrow.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.848211"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.878917"], ["updated_at", "2017-06-02 23:19:10.878917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-m61v4z' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1pk3ugg.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-17ceoqr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.914044"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:10.945878"], ["updated_at", "2017-06-02 23:19:10.945878"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-47l1hv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-19zd6ob.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-7d0ta9.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:10.975832"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.007744"], ["updated_at", "2017-06-02 23:19:11.007744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-18rj0ru' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1b1a8bw.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1rfrrnr.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.032947"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.066497"], ["updated_at", "2017-06-02 23:19:11.066497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-06-02 23:19:11.073637"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20170602-54234-m8qnbc' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-54234-1i4qv3d.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170602-54234-qkwe84.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-06-02 23:19:11.097796"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.130499"], ["updated_at", "2017-06-02 23:19:11.130499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170602-54234-sjr6h8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/81d0775305805a9a61e7b5574a87a18720170602-54234-1lld1gj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/81d0775305805a9a61e7b5574a87a18720170602-54234-1dhuejk.csv' SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170602-54234-sjr6h8.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2017-06-02 23:19:11.176496"], ["updated_at", "2017-06-02 23:19:11.206301"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1xp94hp' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-bt89e3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-mmbryv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.304439"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.341853"], ["updated_at", "2017-06-02 23:19:11.341853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1ur7lh0' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1u63dhr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1mio654.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.381451"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.413697"], ["updated_at", "2017-06-02 23:19:11.413697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-10f817o' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-kq5gqq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1vk1att.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.448102"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 2], ["created_at", "2017-06-02 23:19:11.479297"], ["updated_at", "2017-06-02 23:19:11.479297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-rpd7p5' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1xbbpju.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-4lnv3h.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.528983"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.564407"], ["updated_at", "2017-06-02 23:19:11.564407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1xbyv39' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-z3kqrh.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-ntjv0h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.642679"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.675845"], ["updated_at", "2017-06-02 23:19:11.675845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-2zo2q7' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-hsfyqw.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-pg8ekz.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:11.702718"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:11.736430"], ["updated_at", "2017-06-02 23:19:11.736430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-oxsgmt' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1wedsdc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-bnn0gd.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1wskm7x.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-26xhkh.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-kit208.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-6k3bqb.csv' [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. Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1ll717l.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1ewsfz2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-bhat5e.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-4xtble' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1ol2jdz.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-17l9ra9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1mis0ya.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1jhep.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-patp5f.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1pvkyw8.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1rz6524.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-18rdr6d.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-anhum6.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1h4u5rg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1k0t8dm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20170602-54234-1uggieg'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-8f6e68' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-11z39u.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-qd36r.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1qr89je.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1djyvnu.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-cxns3.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-11d6pgg' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-dc5663.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-cqin4y.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1c5sir2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-13vwkct.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1hi56qt.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:12.301361"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:12.338229"], ["updated_at", "2017-06-02 23:19:12.338229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-pt3wp9' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1hgorjw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-yondhm.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1e77z1s' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-wsg185.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-16nh00f.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-1vjd5p2' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-t1dze2.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-2woerb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:12.483804"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:12.519069"], ["updated_at", "2017-06-02 23:19:12.519069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20170602-54234-q95tne' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-1lsaioi.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170602-54234-8d6oqr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-06-02 23:19:12.544622"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2017-06-02 23:19:12.581106"], ["updated_at", "2017-06-02 23:19:12.581106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.1ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.9ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1mv566' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1mv566 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-189gm80.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-189gm80.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-gpq0wz.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-gpq0wz.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-189gm80.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-cpgl61.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-cpgl61.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:56.060440"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:56.135692"], ["updated_at", "2018-03-30 18:38:56.135692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20180330-46149-xhrwbn' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20180330-46149-xhrwbn to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-46149-sh03xi.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-46149-sh03xi.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-46149-60j0q3.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-46149-60j0q3.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-46149-sh03xi.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-46149-13nbeo1.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-46149-13nbeo1.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:56.205039"], ["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", "2018-03-30 18:38:56.248965"], ["updated_at", "2018-03-30 18:38:56.248965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180330-46149-1h2khva.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ceeecc663912a1d222cf206beaa2df5c20180330-46149-omni12.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180330-46149-1h2khva.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ceeecc663912a1d222cf206beaa2df5c20180330-46149-omni12.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ceeecc663912a1d222cf206beaa2df5c20180330-46149-1gen6mc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ceeecc663912a1d222cf206beaa2df5c20180330-46149-1gen6mc.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ceeecc663912a1d222cf206beaa2df5c20180330-46149-omni12.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ceeecc663912a1d222cf206beaa2df5c20180330-46149-xkt0mu.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ceeecc663912a1d222cf206beaa2df5c20180330-46149-xkt0mu.csv' SQL (0.1ms) 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", "failures20180330-46149-1h2khva.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2018-03-30 18:38:56.330897"], ["updated_at", "2018-03-30 18:38:56.366911"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-134vrp5' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-134vrp5 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-upqchf.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-upqchf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-g51i3p.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-g51i3p.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-upqchf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-tqgzgj.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-tqgzgj.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:56.434969"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:56.474897"], ["updated_at", "2018-03-30 18:38:56.474897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2018-03-30 18:38:56.503957"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-fnwvdq' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-fnwvdq to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1jcdxt5.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1jcdxt5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-jgijl9.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-jgijl9.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1jcdxt5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-xem8p7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-xem8p7.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:56.530269"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:56.569277"], ["updated_at", "2018-03-30 18:38:56.569277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1cffr50' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1cffr50 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-u2dhp0.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-u2dhp0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1ls1htd.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1ls1htd.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-u2dhp0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1xka4e5.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1xka4e5.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-u2dhp0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-t83gc8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-t83gc8.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-u2dhp0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1nbmzgx.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1nbmzgx.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-u2dhp0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-sbsj3j.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-sbsj3j.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-u2dhp0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-n51ctg.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-n51ctg.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-u2dhp0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-123gevo.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-123gevo.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1ufgb79' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1ufgb79 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1mpeo4e.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1mpeo4e.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-go5mlp.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-go5mlp.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1mpeo4e.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1m8lqdt.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1m8lqdt.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1mpeo4e.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-xdhk5i.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-xdhk5i.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1mpeo4e.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-f24mrf.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-f24mrf.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1mpeo4e.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1wndybu.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1wndybu.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-13upecj' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-13upecj to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-q4a7k.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-q4a7k.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-vtug3v.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-vtug3v.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-q4a7k.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-5kr0ws.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-5kr0ws.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-6bwx4h' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-6bwx4h to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-8n4grr.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-8n4grr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-ddfxao.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-ddfxao.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-8l4mgt' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-8l4mgt to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-11jt34t.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-11jt34t.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-11izdhx.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-11izdhx.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-46149-1hqja91' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-46149-1hqja91 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-46149-a9p3ed [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-46149-1hqja91 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-46149-ial9jp  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1spwoww' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1spwoww to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-en6tar.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-en6tar.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-18mriiu.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-18mriiu.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-ta4az' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-ta4az to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-188k9ex.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-188k9ex.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-e24z49.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-e24z49.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-188k9ex.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1dd1ybn.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1dd1ybn.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-188k9ex.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-14k56ay.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-14k56ay.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-188k9ex.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-v22934.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-v22934.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-188k9ex.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1dzu8t3.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1dzu8t3.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-188k9ex.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-14g0kbq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-14g0kbq.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-188k9ex.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1l4qkjq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1l4qkjq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-wlb1tr' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-wlb1tr to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-mv8aci.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-mv8aci.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-16ony5f.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-16ony5f.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-mv8aci.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-12aynhv.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-12aynhv.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-rucwwr' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-rucwwr to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-gmx7bv.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-gmx7bv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-x8u355.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-x8u355.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-gmx7bv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-isl7eh.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-isl7eh.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1k1229p' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1k1229p to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-e2zlzk.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-e2zlzk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1s05ryq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1s05ryq.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-e2zlzk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-31y7cw.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-31y7cw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:57.422059"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:57.463460"], ["updated_at", "2018-03-30 18:38:57.463460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-19cqsm8' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-19cqsm8 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-72xka5.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-72xka5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-43cg0l.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-43cg0l.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-72xka5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-8d8jnm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-8d8jnm.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:57.497295"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:57.538297"], ["updated_at", "2018-03-30 18:38:57.538297"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-du6epw' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-du6epw to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-e397k1.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-e397k1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1ukcgta.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1ukcgta.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-e397k1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-13j5syw.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-13j5syw.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:57.564680"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:57.607693"], ["updated_at", "2018-03-30 18:38:57.607693"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-2py4s9' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-2py4s9 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1rl1ttw.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1rl1ttw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-iagjhm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-iagjhm.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1rl1ttw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-3cow5v.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-3cow5v.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:57.639068"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:57.679500"], ["updated_at", "2018-03-30 18:38:57.679500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-er91pt' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-er91pt to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1bdgu34.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1bdgu34.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1x2owmk.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1x2owmk.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1bdgu34.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-3jzity.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-3jzity.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:57.708146"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:57.751325"], ["updated_at", "2018-03-30 18:38:57.751325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1io9sus' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-1io9sus to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-11zisl0.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-11zisl0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-rigtdg.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-rigtdg.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-11zisl0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-ua52hu.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-ua52hu.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:57.784117"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:57.821996"], ["updated_at", "2018-03-30 18:38:57.821996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 18ms (Views: 17.4ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-i4ezgo' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-i4ezgo to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-15cwdtd.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-15cwdtd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-q6vhwd.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-q6vhwd.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-15cwdtd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-goj0m7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-goj0m7.csv' 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", "2018-03-30 18:38:57.890223"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2018-03-30 18:38:57.936898"], ["updated_at", "2018-03-30 18:38:57.936898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 85ms (ActiveRecord: 0.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-650fjf' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-650fjf to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-178d7vd.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-178d7vd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-rk44vg.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-rk44vg.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-178d7vd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1keufxy.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1keufxy.csv' 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", "2018-03-30 18:38:57.992793"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2018-03-30 18:38:58.028757"], ["updated_at", "2018-03-30 18:38:58.028757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 73ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-ufzag8' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-ufzag8 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-nm8lw7.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-nm8lw7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-112btip.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-112btip.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-nm8lw7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-v28vtj.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-v28vtj.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:58.075071"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:58.113689"], ["updated_at", "2018-03-30 18:38:58.113689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-92jqvl' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-92jqvl to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1l67bwl.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1l67bwl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-59afol.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-59afol.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1l67bwl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1jqlq5f.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1jqlq5f.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:58.149986"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:58.194885"], ["updated_at", "2018-03-30 18:38:58.194885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2018-03-30 18:38:58.206898"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-vq446v' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-vq446v to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1fsibqx.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1fsibqx.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-atvb04.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-atvb04.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1fsibqx.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1nhey4q.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1nhey4q.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:58.239809"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:58.278423"], ["updated_at", "2018-03-30 18:38:58.278423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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", "2018-03-30 18:38:58.290209"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 12ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-15gz2ck' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-15gz2ck to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-mvk93l.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-mvk93l.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-mwonad.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-mwonad.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-mvk93l.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-xxo8pc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-xxo8pc.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:58.323652"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:58.368202"], ["updated_at", "2018-03-30 18:38:58.368202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 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", "2018-03-30 18:38:58.380950"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 11ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-lpgwcb' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-lpgwcb to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1ggxo7z.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1ggxo7z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1fn17nk.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1fn17nk.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1ggxo7z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-r3uyit.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-r3uyit.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:58.412409"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:58.450362"], ["updated_at", "2018-03-30 18:38:58.450362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-ulvt4' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-ulvt4 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1w6rbho.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1w6rbho.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-h5yczu.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-h5yczu.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1w6rbho.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-j6bys4.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-j6bys4.csv' SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:58.491173"], ["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", "2018-03-30 18:38:58.532471"], ["updated_at", "2018-03-30 18:38:58.532471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-ycr35y' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-ycr35y to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1xlnknj.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1xlnknj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1bbczcj.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1bbczcj.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1xlnknj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-r72kgb.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-r72kgb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:58.588931"], ["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", "2018-03-30 18:38:58.630055"], ["updated_at", "2018-03-30 18:38:58.630055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-13bpc27' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-13bpc27 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-idfsr4.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-idfsr4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1pg1kdo.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-1pg1kdo.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-idfsr4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-21merp.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-21merp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 18:38:58.672665"], ["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", "2018-03-30 18:38:58.712416"], ["updated_at", "2018-03-30 18:38:58.712416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-11wsgud' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-46149-11wsgud to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-bysklq.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-bysklq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-fl0780.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-fl0780.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-bysklq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-umnhkv.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-46149-umnhkv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-03-30 18:38:58.750637"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 18:38:58.789815"], ["updated_at", "2018-03-30 18:38:58.789815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.0ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-mosy2g' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-mosy2g to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1pfbpfv.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1pfbpfv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1wcg9fq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1wcg9fq.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1pfbpfv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1fd9qsm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1fd9qsm.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:42.202300"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:42.275455"], ["updated_at", "2018-03-30 21:07:42.275455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20180330-61182-144dlca' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid.csv20180330-61182-144dlca to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-61182-khv80a.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-61182-khv80a.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-61182-r5aism.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-61182-r5aism.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-61182-khv80a.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-61182-1o0qf8n.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180330-61182-1o0qf8n.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:42.349560"], ["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", "2018-03-30 21:07:42.386976"], ["updated_at", "2018-03-30 21:07:42.386976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180330-61182-xyg2xk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67b278f5afd0ef1e7cedb4e4c2a4cd620180330-61182-1nl5kie.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180330-61182-xyg2xk.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67b278f5afd0ef1e7cedb4e4c2a4cd620180330-61182-1nl5kie.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67b278f5afd0ef1e7cedb4e4c2a4cd620180330-61182-13g6gkx.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67b278f5afd0ef1e7cedb4e4c2a4cd620180330-61182-13g6gkx.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67b278f5afd0ef1e7cedb4e4c2a4cd620180330-61182-1nl5kie.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67b278f5afd0ef1e7cedb4e4c2a4cd620180330-61182-19sjmds.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b67b278f5afd0ef1e7cedb4e4c2a4cd620180330-61182-19sjmds.csv' 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", "failures20180330-61182-xyg2xk.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2018-03-30 21:07:42.459050"], ["updated_at", "2018-03-30 21:07:42.500352"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-l872g6' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-l872g6 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-rwu7zf.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-rwu7zf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-qpbs43.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-qpbs43.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-rwu7zf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-or1vuz.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-or1vuz.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:42.582168"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:42.625221"], ["updated_at", "2018-03-30 21:07:42.625221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 17ms (Views: 16.7ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-10nh1p0' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-10nh1p0 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1gwbmwj.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1gwbmwj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-121avhs.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-121avhs.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1gwbmwj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1meyyrf.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1meyyrf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:42.683677"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:42.721831"], ["updated_at", "2018-03-30 21:07:42.721831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>nil, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 4ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-19e15lo' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-19e15lo to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-357mb7.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-357mb7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-jvg2ex.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-jvg2ex.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-357mb7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1x0lfgd.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1x0lfgd.csv' 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", "2018-03-30 21:07:42.780010"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2018-03-30 21:07:42.819770"], ["updated_at", "2018-03-30 21:07:42.819770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 72ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#>, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-wc8etb' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-wc8etb to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1quytkv.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1quytkv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-d6cx44.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-d6cx44.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1quytkv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-140j4x7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-140j4x7.csv' 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", "2018-03-30 21:07:42.860956"], ["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["parser", "company_parser"], ["created_at", "2018-03-30 21:07:42.894941"], ["updated_at", "2018-03-30 21:07:42.894941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 64ms (ActiveRecord: 0.3ms) Importer Load (0.4ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-bzc85i' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-bzc85i to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-noysyt.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-noysyt.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-suax5q.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-suax5q.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-noysyt.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1uxmiyo.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1uxmiyo.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:42.931071"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:42.964097"], ["updated_at", "2018-03-30 21:07:42.964097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-12zj03n' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-12zj03n to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lr511d.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lr511d.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-17kewjr.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-17kewjr.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lr511d.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ez95zp.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ez95zp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:42.998184"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:43.034218"], ["updated_at", "2018-03-30 21:07:43.034218"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-03-30 21:07:43.044670"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 13ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-4jzqwu' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-4jzqwu to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-pmzynr.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-pmzynr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1wam44y.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1wam44y.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-pmzynr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1899sk5.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1899sk5.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:43.080289"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:43.117966"], ["updated_at", "2018-03-30 21:07:43.117966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-03-30 21:07:43.129580"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 10ms (ActiveRecord: 0.2ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-rlx1au' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-rlx1au to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lzj6ez.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lzj6ez.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1qkqidf.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1qkqidf.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lzj6ez.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1dd0xdr.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1dd0xdr.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:43.162268"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:43.197635"], ["updated_at", "2018-03-30 21:07:43.197635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-03-30 21:07:43.233348"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-r0xadm' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-r0xadm to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-itijoj.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-itijoj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ese6kv.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ese6kv.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-itijoj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-5gfldm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-5gfldm.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:43.298566"], ["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", "2018-03-30 21:07:43.339651"], ["updated_at", "2018-03-30 21:07:43.339651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-9pygkz' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-9pygkz to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ji2iyw.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ji2iyw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-aiv8vo.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-aiv8vo.csv'  (0.4ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ji2iyw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-18or5hm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-18or5hm.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:43.383150"], ["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", "2018-03-30 21:07:43.422609"], ["updated_at", "2018-03-30 21:07:43.422609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "foo"]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT 1 [["user_id", 1], ["name", "bar"]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-o9u1vi' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-o9u1vi to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1p1mola.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1p1mola.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-19iheva.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-19iheva.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1p1mola.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lrvqlh.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lrvqlh.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "columns", "importable_type", "additional_data", "parser", "importable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-03-30 21:07:43.477156"], ["source", "company"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_type", "User"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:43.516108"], ["updated_at", "2018-03-30 21:07:43.516108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.0ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1m550f5' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1m550f5 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1rhm8tv.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1rhm8tv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1wtwybm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1wtwybm.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1rhm8tv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-vszigm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-vszigm.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:43.553920"], ["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", "2018-03-30 21:07:43.592031"], ["updated_at", "2018-03-30 21:07:43.592031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-xca57s' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-xca57s to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-13wprk0.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-13wprk0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1t9bzb5.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1t9bzb5.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-13wprk0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1nc42oy.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1nc42oy.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:43.629198"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "foo_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:43.666043"], ["updated_at", "2018-03-30 21:07:43.666043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-9p9yb4' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-9p9yb4 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1p9akke.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1p9akke.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-s3jtun.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-s3jtun.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1p9akke.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1i82nd9.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1i82nd9.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:43.692308"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:43.726786"], ["updated_at", "2018-03-30 21:07:43.726786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-11jvqx6' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-11jvqx6 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-3rtxce.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-3rtxce.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-19ck1zp.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-19ck1zp.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-3rtxce.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-12sldcf.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-12sldcf.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:43.752528"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:43.790780"], ["updated_at", "2018-03-30 21:07:43.790780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1pk7lkh' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1pk7lkh to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ssmuon.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ssmuon.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-67kre7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-67kre7.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ssmuon.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ms0m5e.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ms0m5e.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:43.817593"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:43.853465"], ["updated_at", "2018-03-30 21:07:43.853465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-sp7kfd' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-sp7kfd to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-8jg8x4.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-8jg8x4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-tmtv5p.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-tmtv5p.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-61182-a51iup' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-61182-a51iup to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-61182-ekv1ov [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-61182-a51iup to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180330-61182-10tc15p  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1vrrxw' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1vrrxw to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1uqcafr.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1uqcafr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-m82nir.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-m82nir.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-mmqiw5' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-mmqiw5 to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1kh2ykr.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1kh2ykr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-dk9xie.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-dk9xie.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1kh2ykr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1i7avzd.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1i7avzd.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1kei7lf' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1kei7lf to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ohteea.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ohteea.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1rb2x0f.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1rb2x0f.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-p8m1yo' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-p8m1yo to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ur9mu1.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ur9mu1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1idlcre.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1idlcre.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ur9mu1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1odg96r.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1odg96r.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ur9mu1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1x8jt7s.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1x8jt7s.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ur9mu1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1innbyc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1innbyc.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ur9mu1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1txx67z.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1txx67z.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ur9mu1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1y03vj2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1y03vj2.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1ur9mu1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-urgx57.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-urgx57.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1plxrng' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1plxrng to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-f8l85p.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-f8l85p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-14xc2fw.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-14xc2fw.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-f8l85p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-pnk2h2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-pnk2h2.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-f8l85p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1h58ehn.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1h58ehn.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-f8l85p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-rrrez5.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-rrrez5.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-f8l85p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-z85vpu.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-z85vpu.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-f8l85p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1dd8ypm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1dd8ypm.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-f8l85p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-r79iio.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-r79iio.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-m37eik' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-m37eik to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-xsym5z.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-xsym5z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-10bjiu3.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-10bjiu3.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-xsym5z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1xcsbdd.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1xcsbdd.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-xsym5z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-fudkfb.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-fudkfb.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-xsym5z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-15xed0r.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-15xed0r.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-xsym5z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-10dmjjz.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-10dmjjz.csv'  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1hi3wgy' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1hi3wgy to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1x9v614.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1x9v614.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-19got3q.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-19got3q.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1x9v614.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-zmrmbp.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-zmrmbp.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:44.496699"], ["source", "company"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:44.533738"], ["updated_at", "2018-03-30 21:07:44.533738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-a39jup' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-a39jup to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-jx904q.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-jx904q.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1h25ah.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1h25ah.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-jx904q.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-71ra6p.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-71ra6p.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1jadrzc' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1jadrzc to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1xl1fj3.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1xl1fj3.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1tnc7y6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1tnc7y6.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1xl1fj3.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1xz5f6y.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1xz5f6y.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1ncoybe' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-1ncoybe to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ghqv8p.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ghqv8p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-y473lt.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-y473lt.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-ghqv8p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-12w0vcw.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-12w0vcw.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:44.741227"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:44.785838"], ["updated_at", "2018-03-30 21:07:44.785838"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-wgkx1o' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies.csv20180330-61182-wgkx1o to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-2aqlm7.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-2aqlm7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lwboqr.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-1lwboqr.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-2aqlm7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-p1iaqb.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180330-61182-p1iaqb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] 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", "2018-03-30 21:07:44.815924"], ["source", "company"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_type", "User"], ["parser", "company_parser"], ["importable_id", 1], ["created_at", "2018-03-30 21:07:44.856357"], ["updated_at", "2018-03-30 21:07:44.856357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2018-03-30 21:07:44.864508"], ["id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (1.4ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.1ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1vvaiz7.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1vvaiz7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-e17xh3.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-e17xh3.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-19sgp84.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-19sgp84.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-e17xh3.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1lbbxpv.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1lbbxpv.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:18.058031"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:18.131341"], ["updated_at", "2018-04-18 18:08:18.131341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid20180418-48331-10509xy.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid20180418-48331-10509xy.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48331-1rlneoq.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48331-1rlneoq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48331-15x5v61.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48331-15x5v61.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48331-1rlneoq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48331-1f326yw.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48331-1f326yw.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2018-04-18 18:08:18.223392"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:18.263239"], ["updated_at", "2018-04-18 18:08:18.263239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180418-48331-1815bof.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a29a9d4e9013f5912c0690089430156620180418-48331-2ydr5z.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180418-48331-1815bof.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a29a9d4e9013f5912c0690089430156620180418-48331-2ydr5z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a29a9d4e9013f5912c0690089430156620180418-48331-1iv9u3t.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a29a9d4e9013f5912c0690089430156620180418-48331-1iv9u3t.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a29a9d4e9013f5912c0690089430156620180418-48331-2ydr5z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a29a9d4e9013f5912c0690089430156620180418-48331-1f4qzqj.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/a29a9d4e9013f5912c0690089430156620180418-48331-1f4qzqj.csv' SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20180418-48331-1815bof.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2018-04-18 18:08:18.343187"], ["updated_at", "2018-04-18 18:08:18.383165"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-10iu5vh.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-10iu5vh.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p88j35.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p88j35.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1ry6j3r.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1ry6j3r.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p88j35.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1wdd10h.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1wdd10h.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:18.434037"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:18.476597"], ["updated_at", "2018-04-18 18:08:18.476597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-5avax8.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-5avax8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-19wizvz.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-19wizvz.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-15mmtve.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-15mmtve.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-19wizvz.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-wdihq5.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-wdihq5.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:18.523885"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:18.563391"], ["updated_at", "2018-04-18 18:08:18.563391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2018-04-18 18:08:18.569329"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-tyml3k.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-tyml3k.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-beiea6.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-beiea6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1teudin.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1teudin.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-beiea6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-opm2ee.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-opm2ee.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:18.648818"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:18.692132"], ["updated_at", "2018-04-18 18:08:18.692132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>"", "importable_id"=>"1", "importable_type"=>"User", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#, @original_filename="companies.csv", @content_type="", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: \r\nContent-Length: 151\r\n">, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180418-48331-1xb56jq.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180418-48331-1xb56jq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-19atpyn.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-19atpyn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1txooha.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1txooha.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-19atpyn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1cliuqv.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1cliuqv.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:18.772135"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:18.811747"], ["updated_at", "2018-04-18 18:08:18.811747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 73ms (ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#, @original_filename="companies.csv", @content_type="", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: \r\nContent-Length: 151\r\n">, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180418-48331-ue7s90.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180418-48331-ue7s90.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1hjibb8.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1hjibb8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-dzqv9d.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-dzqv9d.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1hjibb8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-lz49k3.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-lz49k3.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:18.852653"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:18.890689"], ["updated_at", "2018-04-18 18:08:18.890689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 69ms (ActiveRecord: 0.5ms) Importer Load (0.4ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-2xdfl9.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-2xdfl9.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1ofwm3r.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1ofwm3r.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1qpd3ym.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1qpd3ym.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1ofwm3r.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1tk7sak.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1tk7sak.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:18.927992"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:18.966974"], ["updated_at", "2018-04-18 18:08:18.966974"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-11gaw0c.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-11gaw0c.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-our1ps.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-our1ps.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1gnjs3u.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1gnjs3u.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-our1ps.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yw6yri.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yw6yri.csv' SQL (1.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:19.008207"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:19.051479"], ["updated_at", "2018-04-18 18:08:19.051479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1hm3m1d.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1hm3m1d.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-11ixjdp.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-11ixjdp.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-szjxrq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-szjxrq.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-11ixjdp.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-zb7fru.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-zb7fru.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:19.101702"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:19.157858"], ["updated_at", "2018-04-18 18:08:19.157858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-04-18 18:08:19.164751"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 13ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-vdphfn.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-vdphfn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kjl3bc.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kjl3bc.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-vje32s.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-vje32s.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kjl3bc.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1er4vvm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1er4vvm.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:19.205551"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:19.248800"], ["updated_at", "2018-04-18 18:08:19.248800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-04-18 18:08:19.257480"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1er087m.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1er087m.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p896yt.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p896yt.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-4jkdyb.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-4jkdyb.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p896yt.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1wlomn8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1wlomn8.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:19.289401"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:19.330879"], ["updated_at", "2018-04-18 18:08:19.330879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-04-18 18:08:19.338443"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-ww848.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-ww848.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1a2dnjy.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1a2dnjy.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-gw8fn4.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-gw8fn4.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1a2dnjy.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1q1ft95.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1q1ft95.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at", "additional_data") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:19.384086"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:19.426626"], ["updated_at", "2018-04-18 18:08:19.426626"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1ncalaz.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1ncalaz.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ql0zy8.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ql0zy8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1n2bjhh.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1n2bjhh.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ql0zy8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ttnlwy.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ttnlwy.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:19.468786"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:19.512907"], ["updated_at", "2018-04-18 18:08:19.512907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1ucagqn.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1ucagqn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-4i1zlr.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-4i1zlr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-54jajn.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-54jajn.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-4i1zlr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-jnmusl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-jnmusl.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:19.560073"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:19.603492"], ["updated_at", "2018-04-18 18:08:19.603492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1r3xpu2.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1r3xpu2.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p785l8.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p785l8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-13ob2om.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-13ob2om.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p785l8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-j4tglb.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-j4tglb.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:19.656039"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:19.698074"], ["updated_at", "2018-04-18 18:08:19.698074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT ? [["user_id", 1], ["name", "foo"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT ? [["user_id", 1], ["name", "bar"], ["LIMIT", 1]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1yneqlb.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1yneqlb.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-fw88is.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-fw88is.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1w0qv16.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1w0qv16.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-fw88is.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-112cmr2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-112cmr2.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:19.757657"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:19.798329"], ["updated_at", "2018-04-18 18:08:19.798329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-2rrr3x.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-2rrr3x.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-jrbj7x.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-jrbj7x.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-dx5nh1.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-dx5nh1.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-jrbj7x.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1h4bm0l.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1h4bm0l.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-jrbj7x.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-rspn0.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-rspn0.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-jrbj7x.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1t2atfn.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1t2atfn.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-jrbj7x.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1vst7oo.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1vst7oo.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-6j80zs.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-6j80zs.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-10f80zc.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-10f80zc.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1ytsfds.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1ytsfds.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-cskojx.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-cskojx.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-2nkz89.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-2nkz89.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-xx5lb6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-xx5lb6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48331-x5rijy' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48331-x5rijy to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48331-1qletlm [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48331-x5rijy to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48331-3a1jzs  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-18wz2d0.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-18wz2d0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1dw1e9.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1dw1e9.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-7t85fo.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-7t85fo.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-vheuy6.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-vheuy6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1mor42o.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1mor42o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-lrge2b.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-lrge2b.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1mor42o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-m9kr0.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-m9kr0.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-230tow.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-230tow.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yi981w.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yi981w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-o9yw9c.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-o9yw9c.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yi981w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-vcfr9z.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-vcfr9z.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yi981w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-rskgpg.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-rskgpg.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yi981w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-dxrf4q.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-dxrf4q.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yi981w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-7zdqgl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-7zdqgl.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yi981w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yit0f2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yit0f2.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1yi981w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1l2q3qn.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1l2q3qn.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-ac1d3r.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-ac1d3r.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kpazk.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kpazk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1y95igx.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1y95igx.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kpazk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-15dytgc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-15dytgc.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kpazk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-opyog0.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-opyog0.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kpazk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-a0ylpr.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-a0ylpr.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kpazk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-11qntjh.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-11qntjh.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kpazk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1dciht7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1dciht7.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-kpazk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-479srm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-479srm.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1srgli7.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1srgli7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-10215hd.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-10215hd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-uhq1r1.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-uhq1r1.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-10215hd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-g6hrym.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-g6hrym.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1dovywg.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-1dovywg.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1bt2wuv.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1bt2wuv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1u91q67.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1u91q67.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1bt2wuv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-etkl99.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-etkl99.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-qoyvhi.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-qoyvhi.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ak19bq.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ak19bq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1g0jizm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1g0jizm.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ak19bq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ru3987.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-ru3987.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:20.664909"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:20.707985"], ["updated_at", "2018-04-18 18:08:20.707985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-ly35sl.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-ly35sl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-13ed2l7.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-13ed2l7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-liyva1.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-liyva1.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-13ed2l7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1ei5pmb.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1ei5pmb.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:20.746276"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:20.787644"], ["updated_at", "2018-04-18 18:08:20.787644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-y3slnp.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-y3slnp.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1wmvgs5.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1wmvgs5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1smmo1f.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1smmo1f.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1wmvgs5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p8wuq0.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-p8wuq0.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:20.823836"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:20.862872"], ["updated_at", "2018-04-18 18:08:20.862872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-v70exn.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48331-v70exn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1d7h5uv.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1d7h5uv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1f6oai2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1f6oai2.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-1d7h5uv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-fj0197.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48331-fj0197.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:20.896357"], ["source", "company"], ["parser", "foo_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:20.938199"], ["updated_at", "2018-04-18 18:08:20.938199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (1.0ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (1.0ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.7ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-17yycdy.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-17yycdy.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-j4xvk.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-j4xvk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-m3j6dx.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-m3j6dx.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-j4xvk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-laugjp.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-laugjp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:28.085657"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:28.157763"], ["updated_at", "2018-04-18 18:08:28.157763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-11i5jlh.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-11i5jlh.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-948wpj.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-948wpj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-15j1wgf.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-15j1wgf.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-948wpj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-4ozvz1.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-4ozvz1.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:28.202687"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:28.243566"], ["updated_at", "2018-04-18 18:08:28.243566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2018-04-18 18:08:28.276806"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1vpdalf.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1vpdalf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-lvvftw.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-lvvftw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-8wwqt7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-8wwqt7.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-lvvftw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1dmd0hp.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1dmd0hp.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:28.309788"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:28.351267"], ["updated_at", "2018-04-18 18:08:28.351267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-vnww8r.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-vnww8r.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1hdq8o.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1hdq8o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1knbmak.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1knbmak.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1hdq8o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1pktjst.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1pktjst.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-u2x0kc.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-u2x0kc.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1s7cf2u.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1s7cf2u.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-rx0vwl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-rx0vwl.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-qc0e7z.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-qc0e7z.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-587jx4.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-587jx4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-s3xx5n.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-s3xx5n.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-587jx4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1wso7rz.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1wso7rz.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-587jx4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1hvdufu.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1hvdufu.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-587jx4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1b5pvxu.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1b5pvxu.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-587jx4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-188swxy.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-188swxy.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-587jx4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-18p4ucd.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-18p4ucd.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-587jx4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-uoxwp7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-uoxwp7.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1ecownk.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1ecownk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1so5jzl.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1so5jzl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1p2l23g.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1p2l23g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48464-1akge7i' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48464-1akge7i to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48464-16wyteu [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48464-1akge7i to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180418-48464-szy27s  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1ybwq0d.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1ybwq0d.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ipfy0b.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ipfy0b.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1y78fyk.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1y78fyk.csv'  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-3yim5h.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-3yim5h.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-oaltug.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-oaltug.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ef4ox9.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ef4ox9.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-oaltug.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-dmfa8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-dmfa8.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-oaltug.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-16d5d1n.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-16d5d1n.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-oaltug.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-es2w3h.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-es2w3h.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-oaltug.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-kmjuiy.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-kmjuiy.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-71vk35.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-71vk35.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-59k849.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-59k849.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1j1qffp.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1j1qffp.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-59k849.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-ur24dn.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-ur24dn.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-59k849.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-m9xzi6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-m9xzi6.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-59k849.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-ogqljl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-ogqljl.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-59k849.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1scdqd9.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1scdqd9.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-59k849.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-14hjwri.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-14hjwri.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-59k849.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-m6vvp3.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-m6vvp3.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1yl5wqr.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1yl5wqr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-jfcita.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-jfcita.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1th4zkk.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1th4zkk.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-jfcita.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-ar9js0.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-ar9js0.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-wyar4q.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-wyar4q.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-vij0l5.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-vij0l5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-14e8zzm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-14e8zzm.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-vij0l5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1msp8w5.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1msp8w5.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-162x6qf.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-162x6qf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1pa8l6a.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1pa8l6a.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-d9lth2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-d9lth2.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1pa8l6a.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-11xb6tl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-11xb6tl.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:29.216297"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:29.258453"], ["updated_at", "2018-04-18 18:08:29.258453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1tf233b.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1tf233b.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-tczt5l.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-tczt5l.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1c3nkga.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1c3nkga.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-tczt5l.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-dawuuo.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-dawuuo.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:29.295762"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:29.339630"], ["updated_at", "2018-04-18 18:08:29.339630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1ctv8ca.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1ctv8ca.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-o1q3gj.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-o1q3gj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-17yn5p8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-17yn5p8.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-o1q3gj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1i8z5a2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1i8z5a2.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:29.375060"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:29.417150"], ["updated_at", "2018-04-18 18:08:29.417150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1artddl.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1artddl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-74pomm.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-74pomm.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ud2dvx.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ud2dvx.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-74pomm.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1008vy2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1008vy2.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:29.455477"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:29.498406"], ["updated_at", "2018-04-18 18:08:29.498406"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1iqvv5u.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1iqvv5u.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-cojxr1.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-cojxr1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-rxx83u.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-rxx83u.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-cojxr1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-4f9w86.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-4f9w86.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:29.531766"], ["source", "company"], ["parser", "foo_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:29.569150"], ["updated_at", "2018-04-18 18:08:29.569150"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1y6alr6.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1y6alr6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-fhfq2h.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-fhfq2h.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1qwecgt.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1qwecgt.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-fhfq2h.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-5e3p5b.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-5e3p5b.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:29.613978"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:29.655148"], ["updated_at", "2018-04-18 18:08:29.655148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT ? [["user_id", 1], ["name", "foo"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT ? [["user_id", 1], ["name", "bar"], ["LIMIT", 1]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-ew6rae.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-ew6rae.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-w72da1.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-w72da1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-36zwf7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-36zwf7.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-w72da1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1wlaa2l.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1wlaa2l.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:29.737976"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:29.779126"], ["updated_at", "2018-04-18 18:08:29.779126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-mxd7wd.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-mxd7wd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1xvnfit.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1xvnfit.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-y51ek1.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-y51ek1.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1xvnfit.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-3kegc8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-3kegc8.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:29.823571"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:29.865480"], ["updated_at", "2018-04-18 18:08:29.865480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-18hjtry.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-18hjtry.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-15ei5at.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-15ei5at.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1eo6gmk.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1eo6gmk.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-15ei5at.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-4mi7ls.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-4mi7ls.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at", "additional_data") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:29.908410"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:29.948313"], ["updated_at", "2018-04-18 18:08:29.948313"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#, @original_filename="companies.csv", @content_type="", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: \r\nContent-Length: 151\r\n">, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180418-48464-kjyv2u.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180418-48464-kjyv2u.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-15q6lez.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-15q6lez.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1izmlw0.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1izmlw0.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-15q6lez.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-19522ls.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-19522ls.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:30.009714"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:30.049384"], ["updated_at", "2018-04-18 18:08:30.049384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 74ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#, @original_filename="companies.csv", @content_type="", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: \r\nContent-Length: 151\r\n">, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180418-48464-1rehwkd.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180418-48464-1rehwkd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1bzxjgl.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1bzxjgl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-qy8usi.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-qy8usi.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1bzxjgl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ki6n56.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ki6n56.csv' SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:30.102759"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:30.144214"], ["updated_at", "2018-04-18 18:08:30.144214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 85ms (ActiveRecord: 0.5ms) Importer Load (0.4ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>"", "importable_id"=>"1", "importable_type"=>"User", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 2ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-a5g1jp.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-a5g1jp.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ajut2y.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ajut2y.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1r0it7w.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1r0it7w.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1ajut2y.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-17q841o.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-17q841o.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:30.191876"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:30.233148"], ["updated_at", "2018-04-18 18:08:30.233148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.5ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Completed 200 OK in 11ms (Views: 6.9ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-18zlb54.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-18zlb54.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-vsvhv1.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-vsvhv1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1qi8sng.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1qi8sng.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-vsvhv1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1decqxf.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1decqxf.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:30.283872"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:30.322768"], ["updated_at", "2018-04-18 18:08:30.322768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-04-18 18:08:30.331392"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-10qo5xi.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-10qo5xi.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-nyrnpe.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-nyrnpe.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-7kxx5r.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-7kxx5r.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-nyrnpe.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1akfzu2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1akfzu2.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:30.367199"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:30.410560"], ["updated_at", "2018-04-18 18:08:30.410560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-04-18 18:08:30.419997"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-18rh0nc.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-18rh0nc.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-cdjv47.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-cdjv47.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-qejf6p.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-qejf6p.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-cdjv47.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-ktycj9.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-ktycj9.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:30.455115"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:30.497868"], ["updated_at", "2018-04-18 18:08:30.497868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-04-18 18:08:30.505959"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.3ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-ile02.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-ile02.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-12t4u2y.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-12t4u2y.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1g9lshr.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1g9lshr.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-12t4u2y.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-42sesn.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-42sesn.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:30.540421"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:30.582886"], ["updated_at", "2018-04-18 18:08:30.582886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.2ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1ag8sks.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180418-48464-1ag8sks.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1r5rau0.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1r5rau0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-w6od7l.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-w6od7l.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-1r5rau0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-7pcaoc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180418-48464-7pcaoc.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-04-18 18:08:30.625633"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:30.667460"], ["updated_at", "2018-04-18 18:08:30.667460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid20180418-48464-ligrox.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid20180418-48464-ligrox.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48464-3vmi63.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48464-3vmi63.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48464-1uoejw1.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48464-1uoejw1.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48464-3vmi63.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48464-1wgbpwt.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180418-48464-1wgbpwt.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2018-04-18 18:08:30.829061"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-04-18 18:08:30.868661"], ["updated_at", "2018-04-18 18:08:30.868661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180418-48464-9motht.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/323e9d133fd698b12ec43a0ea06b83af20180418-48464-1w5rbl3.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180418-48464-9motht.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/323e9d133fd698b12ec43a0ea06b83af20180418-48464-1w5rbl3.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/323e9d133fd698b12ec43a0ea06b83af20180418-48464-vh2wme.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/323e9d133fd698b12ec43a0ea06b83af20180418-48464-vh2wme.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/323e9d133fd698b12ec43a0ea06b83af20180418-48464-1w5rbl3.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/323e9d133fd698b12ec43a0ea06b83af20180418-48464-164qv9a.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/323e9d133fd698b12ec43a0ea06b83af20180418-48464-164qv9a.csv' SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20180418-48464-9motht.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2018-04-18 18:08:30.911949"], ["updated_at", "2018-04-18 18:08:30.956162"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.6ms) rollback transaction  (1.5ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (1.2ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'companies';  (0.8ms) DELETE FROM "importers";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (0.8ms) DELETE FROM "users";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-yxv4wt.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-yxv4wt.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-m6ktrw.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-m6ktrw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9h4v2f.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9h4v2f.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-m6ktrw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-902j97.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-902j97.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:31.540759"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:31.624649"], ["updated_at", "2018-06-06 00:52:31.624649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-5qc76l.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-5qc76l.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1h8lbz2.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1h8lbz2.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1mlxhpe.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1mlxhpe.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1h8lbz2.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-15neghy.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-15neghy.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:31.703508"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:31.746513"], ["updated_at", "2018-06-06 00:52:31.746513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2018-06-06 00:52:31.789083"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1y2ffz0.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1y2ffz0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1k053z5.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1k053z5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1jm787v.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1jm787v.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1k053z5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-z73sna.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-z73sna.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:31.829294"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:31.874869"], ["updated_at", "2018-06-06 00:52:31.874869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid20180605-29207-do9edg.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid20180605-29207-do9edg.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180605-29207-veshvo.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180605-29207-veshvo.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180605-29207-d0nkzl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180605-29207-d0nkzl.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180605-29207-veshvo.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180605-29207-17aj3k6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320180605-29207-17aj3k6.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2018-06-06 00:52:31.920077"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:31.964192"], ["updated_at", "2018-06-06 00:52:31.964192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180605-29207-1708wim.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bd2e0a64df9b6b497a94a0d66f3cffb720180605-29207-chq6rq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20180605-29207-1708wim.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bd2e0a64df9b6b497a94a0d66f3cffb720180605-29207-chq6rq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bd2e0a64df9b6b497a94a0d66f3cffb720180605-29207-1lyz174.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bd2e0a64df9b6b497a94a0d66f3cffb720180605-29207-1lyz174.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bd2e0a64df9b6b497a94a0d66f3cffb720180605-29207-chq6rq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bd2e0a64df9b6b497a94a0d66f3cffb720180605-29207-dyohnm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/bd2e0a64df9b6b497a94a0d66f3cffb720180605-29207-dyohnm.csv' 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", "failures20180605-29207-1708wim.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2018-06-06 00:52:32.033357"], ["updated_at", "2018-06-06 00:52:32.075643"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>"", "importable_id"=>"1", "importable_type"=>"User", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 5ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#, @original_filename="companies.csv", @content_type="", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: \r\nContent-Length: 151\r\n">, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180605-29207-198cq0n.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180605-29207-198cq0n.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1j5o2g0.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1j5o2g0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-16m1btt.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-16m1btt.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1j5o2g0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9305y8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9305y8.csv' SQL (0.4ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:32.184666"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:32.226509"], ["updated_at", "2018-06-06 00:52:32.226509"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 87ms (ActiveRecord: 0.8ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#, @original_filename="companies.csv", @content_type="", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: \r\nContent-Length: 151\r\n">, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180605-29207-1ucsmf7.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20180605-29207-1ucsmf7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-16yqcw8.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-16yqcw8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-us7cs2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-us7cs2.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-16yqcw8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1t6ckdd.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1t6ckdd.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:32.278928"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:32.321660"], ["updated_at", "2018-06-06 00:52:32.321660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 85ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-k0esjk.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-k0esjk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-4hbsm3.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-4hbsm3.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-cvlpin.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-cvlpin.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-4hbsm3.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-dt5y3s.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-dt5y3s.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:32.371807"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:32.419202"], ["updated_at", "2018-06-06 00:52:32.419202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Completed 200 OK in 17ms (Views: 11.1ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1fzwk88.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1fzwk88.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-ikrixh.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-ikrixh.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-49bln7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-49bln7.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-ikrixh.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-ocnugi.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-ocnugi.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:32.486681"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:32.530056"], ["updated_at", "2018-06-06 00:52:32.530056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 7ms (Views: 1.0ms | ActiveRecord: 0.1ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1b1pzm0.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1b1pzm0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1tqlnet.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1tqlnet.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1j5ufgn.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1j5ufgn.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1tqlnet.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1m8noax.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1m8noax.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:32.586957"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:32.632231"], ["updated_at", "2018-06-06 00:52:32.632231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.1ms) Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.2ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1s84jzr.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1s84jzr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-111a57a.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-111a57a.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-nagzg4.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-nagzg4.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-111a57a.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1eoqphx.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1eoqphx.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:32.686529"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:32.730780"], ["updated_at", "2018-06-06 00:52:32.730780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-06-06 00:52:32.739877"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-5sfafx.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-5sfafx.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9kp8og.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9kp8og.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-ou46yl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-ou46yl.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9kp8og.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-vq2eu7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-vq2eu7.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:32.783399"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:32.825418"], ["updated_at", "2018-06-06 00:52:32.825418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-06-06 00:52:32.834147"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 19ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-16jwvqd.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-16jwvqd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1b3jnec.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1b3jnec.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1rznhmq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1rznhmq.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1b3jnec.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-j1w3m6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-j1w3m6.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:32.899681"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:32.945337"], ["updated_at", "2018-06-06 00:52:32.945337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2018-06-06 00:52:32.953904"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (16.3ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1xbpnrm.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1xbpnrm.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-7p349i.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-7p349i.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-123f4f6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-123f4f6.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-7p349i.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-tpv0ce.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-tpv0ce.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:33.022057"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:33.067314"], ["updated_at", "2018-06-06 00:52:33.067314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1b0eb9e.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1b0eb9e.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-qh7r2o.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-qh7r2o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-bv6h2f.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-bv6h2f.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-qh7r2o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-18iw80n.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-18iw80n.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at", "additional_data") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:33.122904"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:33.168471"], ["updated_at", "2018-06-06 00:52:33.168471"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.5ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-f9pmyz.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-f9pmyz.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1998kmz.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1998kmz.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-p88f8x.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-p88f8x.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1998kmz.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1y3er05.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1y3er05.csv' SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:33.222803"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:33.271344"], ["updated_at", "2018-06-06 00:52:33.271344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT ? [["user_id", 1], ["name", "foo"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT ? [["user_id", 1], ["name", "bar"], ["LIMIT", 1]] 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", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-3htav5.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-3htav5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1kwvrzt.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1kwvrzt.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-19u5c3j.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-19u5c3j.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1kwvrzt.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1gdbzzo.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1gdbzzo.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:33.351832"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:33.403368"], ["updated_at", "2018-06-06 00:52:33.403368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-6p6w3b.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-6p6w3b.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9fiueq.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9fiueq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-t9atn4.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-t9atn4.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9fiueq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1rhnh4a.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1rhnh4a.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:33.552930"], ["source", "company"], ["parser", "foo_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:33.601628"], ["updated_at", "2018-06-06 00:52:33.601628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-13midxg.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-13midxg.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-n9vzzf.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-n9vzzf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-y8xzxk.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-y8xzxk.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-n9vzzf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-7my7ae.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-7my7ae.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:33.646977"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:33.692579"], ["updated_at", "2018-06-06 00:52:33.692579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1d51jtu.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1d51jtu.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-uyxmre.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-uyxmre.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-znay6a.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-znay6a.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-uyxmre.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-12saljp.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-12saljp.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:33.736338"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:33.781167"], ["updated_at", "2018-06-06 00:52:33.781167"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-9saswf.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-9saswf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-16x09gr.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-16x09gr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-kerdaq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-kerdaq.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1ry5jdf.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1ry5jdf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-l41en0.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-l41en0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-2ggvle.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-2ggvle.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-l41en0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1rgq4n0.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1rgq4n0.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-l41en0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1775jwz.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1775jwz.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-l41en0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1ml3rn.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1ml3rn.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-l41en0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-16sjnpm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-16sjnpm.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-l41en0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1k0kmr1.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1k0kmr1.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-l41en0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-ka008x.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-ka008x.csv'  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1s0yonp.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1s0yonp.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1h0xj67.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1h0xj67.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9zp9p2.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9zp9p2.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1h0xj67.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-19w68as.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-19w68as.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1h0xj67.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-bz2jpb.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-bz2jpb.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1h0xj67.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-q6coh3.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-q6coh3.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1h0xj67.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-jazum7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-jazum7.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1fvi1fw.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1fvi1fw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-mwig70.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-mwig70.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-x63za.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-x63za.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-mwig70.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-d2t2ut.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-d2t2ut.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-142n73p.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-142n73p.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hj0zu6.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hj0zu6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-17neu1l.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-17neu1l.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hj0zu6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-cqvj5f.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-cqvj5f.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hj0zu6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-avtrom.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-avtrom.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hj0zu6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9vdu1u.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-9vdu1u.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hj0zu6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-17j6wng.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-17j6wng.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hj0zu6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1xwe1j6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1xwe1j6.csv' [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. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hj0zu6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-79y1tc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-79y1tc.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-18t9wl7.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-18t9wl7.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-v1kb42.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-v1kb42.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1c99nlw.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1c99nlw.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1d5xol8.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1d5xol8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1ui718l.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1ui718l.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-y0qpbc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-y0qpbc.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180605-29207-1hvigzz' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180605-29207-1hvigzz to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180605-29207-a0n5ew [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180605-29207-1hvigzz to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20180605-29207-f2t1v2  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-txrvja.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-txrvja.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-uxk6uf.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-uxk6uf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-19ja14n.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-19ja14n.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-uxk6uf.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hwb389.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-hwb389.csv' SQL (0.7ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:34.626730"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:34.672233"], ["updated_at", "2018-06-06 00:52:34.672233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1e7p5wr.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1e7p5wr.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-d3idfk.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-d3idfk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-18ji2su.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-18ji2su.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-d3idfk.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1xfmke9.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1xfmke9.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-16fzwxg.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-16fzwxg.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-gzsjb8.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-gzsjb8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1uvfk6d.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1uvfk6d.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-gzsjb8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1c19kan.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1c19kan.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1to9nfh.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20180605-29207-1to9nfh.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1f8uexv.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1f8uexv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-19insrq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-19insrq.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-1f8uexv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-mkgopl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20180605-29207-mkgopl.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2018-06-06 00:52:34.880119"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2018-06-06 00:52:34.924280"], ["updated_at", "2018-06-06 00:52:34.924280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]  (0.1ms) DROP TABLE IF EXISTS "companies"  (0.1ms) SELECT sqlite_version(*)  (1.9ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean, "one_additional_attribute" varchar, "other_additional_attribute" varchar)  (0.1ms) DROP TABLE IF EXISTS "importers"  (1.2ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "parser" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime, "additional_data" varchar)  (0.1ms) DROP TABLE IF EXISTS "users"  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20170505100034)  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES (20170111145652), (20170112125734), (20170405100034), (20170111145657);   (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-07-08 23:22:45.918432"], ["updated_at", "2019-07-08 23:22:45.918432"]]  (0.9ms) commit transaction ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (1.6ms) PRAGMA foreign_keys  (0.1ms) PRAGMA foreign_keys = OFF  (2.5ms) DELETE FROM "companies";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'companies';  (2.1ms) DELETE FROM "importers";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'importers';  (1.5ms) DELETE FROM "users";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';  (1.2ms) DELETE FROM "ar_internal_metadata";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'ar_internal_metadata';  (0.0ms) PRAGMA foreign_keys = 1  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-16zlrm2.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-16zlrm2.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1x8ygut.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1x8ygut.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-laev4.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-laev4.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1x8ygut.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-zs6v11.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-zs6v11.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:31.904419"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:31.988853"], ["updated_at", "2019-10-11 19:02:31.988853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1u24nji.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1u24nji.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-fj5mhl.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-fj5mhl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-59mls7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-59mls7.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-fj5mhl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1x6rhb9.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1x6rhb9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:32.040571"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:32.079919"], ["updated_at", "2019-10-11 19:02:32.079919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.1ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.1ms) SELECT "companies"."neighborhood" FROM "companies"  (0.1ms) SELECT "companies"."city" FROM "companies"  (0.1ms) SELECT "companies"."state" FROM "companies"  (0.1ms) SELECT "companies"."user_id" FROM "companies"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-leyig4.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-leyig4.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1utp3ub.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1utp3ub.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1qia0f6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1qia0f6.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1utp3ub.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1m1ippx.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1m1ippx.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:32.158683"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- ignore\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:32.198561"], ["updated_at", "2019-10-11 19:02:32.198561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.0ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.0ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1ul8j7f.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1ul8j7f.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-6i8k2o.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-6i8k2o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1mqy4uy.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1mqy4uy.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-6i8k2o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1je1mvg.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1je1mvg.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at", "additional_data") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:32.259027"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:32.299291"], ["updated_at", "2019-10-11 19:02:32.299291"], ["additional_data", "\"{\\\"one_additional_attribute\\\": \\\"importer-attr\\\", \\\"other_additional_attribute\\\": \\\"other-importer-attr\\\"}\""]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country", "one_additional_attribute", "other_additional_attribute") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", ""], ["one_additional_attribute", "importer-attr"], ["other_additional_attribute", "other-importer-attr"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."one_additional_attribute" FROM "companies"  (0.1ms) SELECT "companies"."other_additional_attribute" FROM "companies"  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies" Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-hlbbyl.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-hlbbyl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1rgh3dp.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1rgh3dp.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-106e576.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-106e576.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1rgh3dp.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-m0iizq.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-m0iizq.csv' SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.7ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:32.362978"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 2], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:32.402761"], ["updated_at", "2019-10-11 19:02:32.402761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT ? [["user_id", 1], ["name", "foo"], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."user_id" = ? AND "companies"."name" = ? LIMIT ? [["user_id", 1], ["name", "bar"], ["LIMIT", 1]] 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", ""]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "companies"  (0.1ms) SELECT "companies"."name" FROM "companies"  (0.0ms) SELECT "companies"."street" FROM "companies"  (0.1ms) SELECT "companies"."number" FROM "companies"  (0.0ms) SELECT "companies"."neighborhood" FROM "companies"  (0.0ms) SELECT "companies"."city" FROM "companies"  (0.0ms) SELECT "companies"."state" FROM "companies"  (0.0ms) SELECT "companies"."user_id" FROM "companies"  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid20191011-46598-9qpp69.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies_invalid20191011-46598-9qpp69.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320191011-46598-gd1z1e.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320191011-46598-gd1z1e.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320191011-46598-1ikf3mw.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320191011-46598-1ikf3mw.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320191011-46598-gd1z1e.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320191011-46598-jwal40.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320191011-46598-jwal40.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2019-10-11 19:02:32.487818"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- country\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:32.529550"], ["updated_at", "2019-10-11 19:02:32.529550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "foo"], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", ""]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT ? [["name", "bar"], ["LIMIT", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20191011-46598-1py1uvb.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e95f7e54a0aee2064e10b63274f515dc20191011-46598-181qwya.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20191011-46598-1py1uvb.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e95f7e54a0aee2064e10b63274f515dc20191011-46598-181qwya.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e95f7e54a0aee2064e10b63274f515dc20191011-46598-ogvwe8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e95f7e54a0aee2064e10b63274f515dc20191011-46598-ogvwe8.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e95f7e54a0aee2064e10b63274f515dc20191011-46598-181qwya.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e95f7e54a0aee2064e10b63274f515dc20191011-46598-17rv1uw.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/e95f7e54a0aee2064e10b63274f515dc20191011-46598-17rv1uw.csv' SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20191011-46598-1py1uvb.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 127], ["attachment_error_updated_at", "2019-10-11 19:02:32.603580"], ["updated_at", "2019-10-11 19:02:32.639997"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-kbasa.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-kbasa.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1sur5wu.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1sur5wu.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-fb6onx.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-fb6onx.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1sur5wu.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1qy8iqk.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1qy8iqk.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:32.756971"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:32.798207"], ["updated_at", "2019-10-11 19:02:32.798207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-brlhzs.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-brlhzs.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-mhhh3w.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-mhhh3w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-ecfdra.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-ecfdra.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-mhhh3w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hfcrgf.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hfcrgf.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:32.851875"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:32.891499"], ["updated_at", "2019-10-11 19:02:32.891499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-ir2c7d.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-ir2c7d.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1hoybjn.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1hoybjn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1pql44p.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1pql44p.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1hoybjn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-74wxk8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-74wxk8.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1hoybjn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1yz52pi.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1yz52pi.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1hoybjn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1apnnz4.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1apnnz4.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1hoybjn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-19notqd.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-19notqd.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-n4lp9v.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-n4lp9v.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-242dyd.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-242dyd.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-qku3iu.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-qku3iu.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1piy6bb.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1piy6bb.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hceq7o.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hceq7o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1j0u0fv.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1j0u0fv.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hceq7o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-8srpc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-8srpc.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hceq7o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1mcdgbb.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1mcdgbb.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hceq7o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-ku18b8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-ku18b8.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hceq7o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-90b1vl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-90b1vl.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hceq7o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-qsdp3g.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-qsdp3g.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hceq7o.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1reu49y.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1reu49y.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-dkmos6.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-dkmos6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-t4j9b6.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-t4j9b6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-15rd26o.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-15rd26o.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-t4j9b6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1pmxvrg.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1pmxvrg.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-t4j9b6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1kpcmlt.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1kpcmlt.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-t4j9b6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-x86iho.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-x86iho.csv' [paperclip] Content Type Spoof: Filename companies.csv (application/vnd.ms-excel from Headers, ["text/csv", "text/comma-separated-values"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-t4j9b6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-14xooj6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-14xooj6.csv' [paperclip] Content Type Spoof: Filename companies.csv (image/png from Headers, ["text/csv", "text/comma-separated-values"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-t4j9b6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-y4x63s.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-y4x63s.csv' [paperclip] Content Type Spoof: Filename companies.csv (image/gif from Headers, ["text/csv", "text/comma-separated-values"] from Extension), content type discovered from file command: text/plain. See documentation to allow this combination. [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-t4j9b6.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1yjyi3j.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1yjyi3j.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-ducrcs.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-ducrcs.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-5gbqr5.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-5gbqr5.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hdkpns.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-hdkpns.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20191011-46598-zl04ta' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20191011-46598-zl04ta to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20191011-46598-1fjvebt [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20191011-46598-zl04ta to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/8d777f385d3dfec8815d20f7496026dc20191011-46598-1dnmxze  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1o2qtpw.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1o2qtpw.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-9rwpoe.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-9rwpoe.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-a3wp44.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-a3wp44.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-9rwpoe.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1jtr5xw.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1jtr5xw.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-9rwpoe.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1elq3vz.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1elq3vz.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-16xmjqa.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-16xmjqa.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-144kjl2.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-144kjl2.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-wn5mcg.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-wn5mcg.csv'  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-52kxlg.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-52kxlg.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-x6bkds.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-x6bkds.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1p6v8xd.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1p6v8xd.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-x6bkds.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1akalvi.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1akalvi.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1gw67zn.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1gw67zn.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-161zvqi.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-161zvqi.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1vvzw5z.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1vvzw5z.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-161zvqi.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1e3fwfm.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1e3fwfm.csv'  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1j7j5ul.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1j7j5ul.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-gnvwal.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-gnvwal.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-x8jrr7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-x8jrr7.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-gnvwal.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1pqmkk0.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1pqmkk0.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:33.865218"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:33.903143"], ["updated_at", "2019-10-11 19:02:33.903143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1ue6tcl.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1ue6tcl.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-b4lmx8.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-b4lmx8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-157968d.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-157968d.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-b4lmx8.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1qlwv84.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1qlwv84.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:33.950405"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:33.989482"], ["updated_at", "2019-10-11 19:02:33.989482"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-9d59n9.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-9d59n9.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1gscxtq.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1gscxtq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-xxjxcc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-xxjxcc.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1gscxtq.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-5huk7g.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-5huk7g.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.033468"], ["source", "company"], ["parser", "foo_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.073079"], ["updated_at", "2019-10-11 19:02:34.073079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-qzwcu.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-qzwcu.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1krsqfx.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1krsqfx.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-eoiqpl.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-eoiqpl.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1krsqfx.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-11gvj69.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-11gvj69.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.115363"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.153298"], ["updated_at", "2019-10-11 19:02:34.153298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1e8qxf0.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1e8qxf0.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-59180t.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-59180t.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-14ini0s.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-14ini0s.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-59180t.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1esigm6.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1esigm6.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.196483"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.235655"], ["updated_at", "2019-10-11 19:02:34.235655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1x4bgxg.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1x4bgxg.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1ictytt.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1ictytt.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1v12ors.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1v12ors.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1ictytt.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-qsnrk9.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-qsnrk9.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.318075"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.357965"], ["updated_at", "2019-10-11 19:02:34.357965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2019-10-11 19:02:34.364030"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1e1zy5w.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1e1zy5w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1tfj7gp.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1tfj7gp.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-mrk4t.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-mrk4t.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1tfj7gp.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1i8fhpv.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1i8fhpv.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.406427"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.444531"], ["updated_at", "2019-10-11 19:02:34.444531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-l7hz5w.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-l7hz5w.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-rkz4dv.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-rkz4dv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-16btjk7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-16btjk7.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-rkz4dv.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-q6lq0q.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-q6lq0q.csv' SQL (0.6ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.551064"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.589947"], ["updated_at", "2019-10-11 19:02:34.589947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1ghzboz.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1ghzboz.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-187ihdi.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-187ihdi.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-j7n90j.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-j7n90j.csv'  (0.3ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-187ihdi.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-dkacev.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-dkacev.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.652254"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.691401"], ["updated_at", "2019-10-11 19:02:34.691401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (0.3ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-taril1.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-taril1.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-fbnixa.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-fbnixa.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1dyxkjc.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1dyxkjc.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-fbnixa.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-18zut0z.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-18zut0z.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.752657"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.793711"], ["updated_at", "2019-10-11 19:02:34.793711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 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", "2019-10-11 19:02:34.802735"], ["id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 7ms (ActiveRecord: 0.7ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-qknz5l.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-qknz5l.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1whrb9x.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1whrb9x.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1su9a11.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1su9a11.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1whrb9x.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-e6x790.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-e6x790.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.846529"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.885420"], ["updated_at", "2019-10-11 19:02:34.885420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 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", "2019-10-11 19:02:34.894448"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 9ms (ActiveRecord: 0.3ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1uu2j61.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-1uu2j61.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-152ofij.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-152ofij.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-vx119r.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-vx119r.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-152ofij.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-kr225q.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-kr225q.csv' SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.1ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:34.942907"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:34.982656"], ["updated_at", "2019-10-11 19:02:34.982656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"importer"=>{"columns"=>["neighborhood", "city", "cod", "state", "name", "number", "country", "street"]}, "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- neighborhood\n- city\n- cod\n- state\n- name\n- number\n- country\n- street\n"], ["updated_at", "2019-10-11 19:02:34.989809"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/csv_import_magic/importers/1 Completed 302 Found in 6ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-14sidax.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/companies20191011-46598-14sidax.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-g58lri.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-g58lri.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-a2hwsb.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-a2hwsb.csv'  (0.2ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-g58lri.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1f1hsn8.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1f1hsn8.csv' SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]] SQL (0.2ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "columns", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:35.036497"], ["source", "company"], ["parser", "company_parser"], ["columns", "---\n- name\n- number\n- city\n- state\n"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:35.078492"], ["updated_at", "2019-10-11 19:02:35.078492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary. Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#, @original_filename="companies.csv", @content_type="", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: \r\nContent-Length: 151\r\n">, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20191011-46598-1bpsalm.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20191011-46598-1bpsalm.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1444z5n.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1444z5n.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-11j761p.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-11j761p.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1444z5n.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-wgg9sy.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-wgg9sy.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:35.136515"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:35.172944"], ["updated_at", "2019-10-11 19:02:35.172944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 79ms (ActiveRecord: 0.6ms) Importer Load (0.3ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT ? [["LIMIT", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>#, @original_filename="companies.csv", @content_type="", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: \r\nContent-Length: 151\r\n">, "importable_type"=>"User", "importable_id"=>"1", "source"=>"company"}} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20191011-46598-10ujh0l.csv' [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20191011-46598-10ujh0l.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-2u8hcj.csv [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-2u8hcj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1wu20d7.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1wu20d7.csv'  (0.1ms) SAVEPOINT active_record_1 [paperclip] Trying to link /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-2u8hcj.csv to /var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1wbg4qa.csv Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20191011-46598-1wbg4qa.csv' SQL (0.3ms) INSERT INTO "importers" ("attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "source", "parser", "importable_id", "importable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2019-10-11 19:02:35.228196"], ["source", "company"], ["parser", "company_parser"], ["importable_id", 1], ["importable_type", "User"], ["created_at", "2019-10-11 19:02:35.265649"], ["updated_at", "2019-10-11 19:02:35.265649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Redirected to http://test.host/csv_import_magic/importers/1/edit Completed 302 Found in 79ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "importers"  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.com"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"importer"=>{"attachment"=>"", "importable_id"=>"1", "importable_type"=>"User", "source"=>"company"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Redirected to http://example.com Completed 302 Found in 3ms (ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction